29079 {
29081 {
29082 return;
29083 }
29085 for (
int i = 0;
i < 200;
i++)
29086 {
29087 if (!Main.npc[i].active || Main.npc[i].friendly || Main.npc[i].damage <= 0)
29088 {
29089 continue;
29090 }
29092 switch (Main.npc[i].type)
29093 {
29094 case 396:
29095 case 397:
29096 case 398:
29097 case 400:
29098 case 401:
29100 break;
29101 case 636:
29103 if (Main.npc[i].ai[0] == 0f || Main.npc[i].ai[0] == 10f)
29104 {
29105 continue;
29106 }
29107 break;
29108 }
29110 {
29111 continue;
29112 }
29114 Main.npc[
i].position += Main.npc[
i].netOffset;
29115 Rectangle npcRect =
new Rectangle((
int)Main.npc[i].position.X, (
int)Main.npc[i].position.Y, Main.npc[i].width, Main.npc[i].height);
29118 {
29120 {
29121 continue;
29122 }
29123 bool flag = true;
29124 bool flag2 =
false;
29129 {
29131 }
29132 if (num)
29133 {
29136 flag = false;
29138 }
29140 if (Main.npc[i].position.X + (
float)(Main.npc[i].width / 2) <
position.
X + (
float)(
width / 2))
29141 {
29143 }
29145 int num5 =
Item.NPCtoBanner(Main.npc[i].BannerID());
29147 {
29149 }
29152 {
29154 }
29155 if (
whoAmI == Main.myPlayer &&
num2 > 0f &&
flag3 && !Main.npc[i].dontTakeDamage)
29156 {
29159 {
29161 }
29163 }
29165 {
29166 int damage = 15;
29167 if (Main.masterMode)
29168 {
29169 damage = 45;
29170 }
29171 else if (Main.expertMode)
29172 {
29173 damage = 30;
29174 }
29176 }
29178 {
29180 }
29182 {
29184 }
29185 if (num)
29186 {
29189 }
29190 }
29191 Main.npc[
i].position -= Main.npc[
i].netOffset;
29192 }
29193 }
static BannerEffect[] BannerStrength
bool HasNPCBannerBuff(int bannerType)
double Hurt(PlayerDeathReason damageSource, int Damage, int hitDirection, bool pvp=false, bool quiet=false, bool Crit=false, int cooldownCounter=-1, bool dodgeable=true)
void ApplyDamageToNPC(NPC npc, int damage, float knockback, int direction, bool crit)
void AddBuff(int type, int timeToAdd, bool quiet=true, bool foodHack=false)
bool CanParryAgainst(Rectangle blockingPlayerRect, Rectangle enemyRect, Vector2 enemyVelocity)
void StatusFromNPC(NPC npc)
void GiveImmuneTimeForCollisionAttack(int time)