50281 {
50282
50284 {
50285 if (Main.netMode == 1)
50286 {
50287 return;
50288 }
50294 for (
int j = 0;
j < 200;
j++)
50295 {
50296 if (Main.npc[
j].active && Main.npc[
j].type == 22)
50297 {
50298 int num2 = -Main.npc[
j].direction;
50299 if (Main.npc[
j].IsNPCValidForBestiaryKillCredit())
50300 {
50301 Main.BestiaryTracker.Kills.RegisterKill(Main.npc[
j]);
50302 }
50303 Main.npc[
j].StrikeNPCNoInteraction(9999, 10
f, -
num2);
50306 if (Main.netMode == 2)
50307 {
50308 NetMessage.SendData(28, -1, -1,
null,
j, 9999
f, 10
f, -
num2);
50309 }
50311 }
50312 }
50314 {
50316 for (
int k = 0;
k < 200;
k++)
50317 {
50319 {
50320 break;
50321 }
50323 if (
nPC.active &&
nPC.isLikeATownNPC)
50324 {
50326 }
50327 }
50328 while (
num > 0 && list.Count > 0)
50329 {
50330 int index = Main.rand.Next(list.Count);
50331 int num3 = list[index];
50332 list.RemoveAt(index);
50333 int num4 = -Main.npc[
num3].direction;
50334 if (Main.npc[
num3].IsNPCValidForBestiaryKillCredit())
50335 {
50336 Main.BestiaryTracker.Kills.RegisterKill(Main.npc[
num3]);
50337 }
50338 Main.npc[
num3].StrikeNPCNoInteraction(9999, 10
f, -
num4);
50340 if (Main.netMode == 2)
50341 {
50342 NetMessage.SendData(28, -1, -1,
null,
num3, 9999
f, 10
f, -
num4);
50343 }
50344 }
50345 }
50346 NetMessage.SendData(21, -1, -1, null, i);
50347 }
50349 {
50353 if (Main.netMode != 0)
50354 {
50355 NetMessage.SendData(21, -1, -1, null, i);
50356 }
50357 }
50358 }
Vector2 position
The position of this Entity in world coordinates.
bool active
If true, the Entity actually exists within the game world. Within the specific entity array,...
static bool[] IsLavaImmuneRegardlessOfRarity
If true for a given item type (F:Terraria.Item.type), then that item will not burn when dropped in la...
int stack
The current stack of the item. F:Terraria.Item.maxStack indicates the max possible stack.
int rare
Indicates the rarity of an item. Assign to a T:Terraria.ID.ItemRarityID value. Vanilla values range f...
int playerIndexTheItemIsReservedFor
int type
The Item ID of this item. The Item ID is a unique number assigned to each Item loaded into the game....