42077 {
42080 {
42082 {
42084 }
42085 }
42086 else
42087 {
42089 {
42090 return;
42091 }
42096 {
42101 }
42103 {
42104 return;
42105 }
42106 int num = originalDamage;
42107 bool flag3 =
false;
42110 {
42112 }
42115 {
42117 }
42119 {
42120 num *= 5;
42123 }
42124 if (
sItem.type == 426 && (
float)
nPC.life >= (
float)
nPC.lifeMax * 0.9f)
42125 {
42126 num = (int)((float)num * 2.5f);
42127 }
42128 if (
sItem.type == 5096)
42129 {
42132 {
42134 }
42136 {
42138 }
42140 {
42142 }
42143 float num4 = 1f + 0.05f * (float)
num3;
42144 num = (int)((
float)num *
num4);
42145 }
42146 if (
sItem.type == 671)
42147 {
42148 float t = (float)
nPC.life / (
float)
nPC.lifeMax;
42151 num = (int)((
float)num * (1f +
num5));
42155 {
42158 }
42159 int num6 = Main.DamageVar(num,
luck);
42161 if (
sItem.type == 5129 &&
nPC.isLikeATownNPC)
42162 {
42164 if (
nPC.type == 18)
42165 {
42167 }
42168 }
42169 if (
sItem.type == 3258)
42170 {
42172 particleOrchestraSettings.PositionInWorld =
nPC.Center;
42175 }
42176 if (
sItem.type == 5382)
42177 {
42179 particleOrchestraSettings.PositionInWorld =
nPC.Center;
42182 }
42183 if (
sItem.type == 5129)
42184 {
42186 particleOrchestraSettings.PositionInWorld =
nPC.Center;
42189 }
42192 {
42194 }
42201 {
42203 }
42204 if (Main.netMode != 0)
42205 {
42207 {
42209 }
42210 else
42211 {
42213 }
42214 }
42216 {
42218 }
42221 {
42223 }
42225 }
42226 }
static void RequestParticleSpawn(bool clientOnly, ParticleOrchestraType type, ParticleOrchestraSettings settings, int? overrideInvokingPlayerIndex=null)
static BannerEffect[] BannerStrength
static bool[] ZappingJellyfish
bool HasNPCBannerBuff(int bannerType)
void TakeDamageFromJellyfish(int npcIndex)
void SetMeleeHitCooldown(int npcIndex, int timeInFrames)
void ApplyAttackCooldown()
void StatusToNPC(int type, int i)
bool CanNPCBeHitByPlayerOrPlayerProjectile(NPC npc, Projectile projectile=null)
int FindBuffIndex(int type)
void GetPointOnSwungItemPath(float spriteWidth, float spriteHeight, float normalizedPointOnPath, float itemScale, out Vector2 location, out Vector2 outwardDirection)
int GetWeaponCrit(Item sItem)
float GetAdjustedItemScale(Item item)
void OnKillNPC(ref NPCKillAttempt attempt, object externalKillingBlowSource)
void ApplyNPCOnHitEffects(Item sItem, Rectangle itemRectangle, int damage, float knockBack, int npcIndex, int dmgRandomized, int dmgDone)
void OnHit(float x, float y, Entity victim)
bool _spawnVolcanoExplosion