42518 {
42519 bool flag = sItem.type == 3183 || sItem.type == 4821;
42520 for (
int i = 0;
i < 200;
i++)
42521 {
42522 if (!Main.npc[i].active || Main.npc[i].catchItem <= 0)
42523 {
42524 continue;
42525 }
42526 Rectangle value =
new Rectangle((
int)Main.npc[i].position.X, (
int)Main.npc[i].position.Y, Main.npc[i].width, Main.npc[i].height);
42528 {
42529 continue;
42530 }
42532 {
42534 {
42536 }
42537 }
42538 else if (Main.npc[i].type == 585 || Main.npc[i].type == 583 || Main.npc[i].type == 584)
42539 {
42540 if (Main.npc[i].ai[2] <= 1f)
42541 {
42543 }
42544 }
42545 else
42546 {
42548 }
42549 }
42551 }
static PlayerDeathReason ByNPC(int index)
double Hurt(PlayerDeathReason damageSource, int Damage, int hitDirection, bool pvp=false, bool quiet=false, bool Crit=false, int cooldownCounter=-1, bool dodgeable=true)
void AddBuff(int type, int timeToAdd, bool quiet=true, bool foodHack=false)