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

◆ GetAttackDamage_LerpBetweenFinalValues()

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

Definition at line 1881 of file NPC.cs.

1882 {
1883 float amount = (Main.expertMode ? 1 : 0);
1884 if (Main.GameModeInfo.IsJourneyMode)
1885 {
1886 amount = MathHelper.Clamp(strengthMultiplier - 1f, 0f, 1f);
1887 }
1888 return (int)MathHelper.Lerp(normalDamage, expertDamage, amount);
1889 }
float strengthMultiplier
Definition NPC.cs:1172

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

Referenced by Terraria.NPC.VanillaAI_Inner().

+ Here is the caller graph for this function: