48638 {
48640 {
48641 if (Main.netMode == 1)
48642 {
48643 return;
48644 }
48649 bool flag = false;
48650 for (
int j = 0;
j < 200;
j++)
48651 {
48652 if (Main.npc[
j].active && Main.npc[
j].type == 22)
48653 {
48654 int num2 = -Main.npc[
j].direction;
48655 if (Main.npc[
j].IsNPCValidForBestiaryKillCredit())
48656 {
48657 Main.BestiaryTracker.Kills.RegisterKill(Main.npc[
j]);
48658 }
48659 Main.npc[
j].StrikeNPCNoInteraction(9999, 10f, -
num2);
48660 num--;
48661 flag = true;
48662 if (Main.netMode == 2)
48663 {
48664 NetMessage.SendData(28, -1, -1,
null,
j, 9999f, 10f, -
num2);
48665 }
48667 }
48668 }
48669 if (flag)
48670 {
48672 for (
int k = 0;
k < 200;
k++)
48673 {
48674 if (num <= 0)
48675 {
48676 break;
48677 }
48679 if (
nPC.active &&
nPC.isLikeATownNPC)
48680 {
48682 }
48683 }
48684 while (num > 0 &&
list.Count > 0)
48685 {
48686 int index = Main.rand.Next(
list.Count);
48689 int num4 = -Main.npc[
num3].direction;
48690 if (Main.npc[
num3].IsNPCValidForBestiaryKillCredit())
48691 {
48692 Main.BestiaryTracker.Kills.RegisterKill(Main.npc[
num3]);
48693 }
48694 Main.npc[
num3].StrikeNPCNoInteraction(9999, 10f, -
num4);
48695 num--;
48696 if (Main.netMode == 2)
48697 {
48698 NetMessage.SendData(28, -1, -1,
null,
num3, 9999f, 10f, -
num4);
48699 }
48700 }
48701 }
48702 NetMessage.SendData(21, -1, -1, null, i);
48703 }
48705 {
48709 if (Main.netMode != 0)
48710 {
48711 NetMessage.SendData(21, -1, -1, null, i);
48712 }
48713 }
48714 }
void Add(TKey key, TValue value)
static bool[] IsLavaImmuneRegardlessOfRarity
static readonly short Count
int playerIndexTheItemIsReservedFor