TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ GetAttackDamage_ForProjectiles()

int Terraria.NPC.GetAttackDamage_ForProjectiles ( float normalDamage,
float expertDamage )
inline

Definition at line 1891 of file NPC.cs.

1892 {
1893 float amount = (Main.expertMode ? 1 : 0);
1894 if (Main.GameModeInfo.IsJourneyMode)
1895 {
1896 amount = MathHelper.Clamp(strengthMultiplier - 1f, 0f, 1f);
1897 }
1898 return (int)MathHelper.Lerp(normalDamage, expertDamage, amount);
1899 }
float strengthMultiplier
Definition NPC.cs:1172

References Terraria.Main.GameModeInfo, and Terraria.NPC.strengthMultiplier.

Referenced by Terraria.NPC.AI_001_Slimes(), Terraria.NPC.AI_003_Fighters(), Terraria.NPC.AI_005_EaterOfSouls(), Terraria.NPC.AI_026_Unicorns(), Terraria.NPC.AI_037_Destroyer(), Terraria.NPC.AI_084_LunaticCultist(), Terraria.NPC.AI_107_ImprovedWalkers(), Terraria.NPC.AI_117_BloodNautilus(), Terraria.NPC.AI_120_HallowBoss(), and Terraria.NPC.VanillaAI_Inner().

+ Here is the caller graph for this function: