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

◆ GetAttackDamage_LerpBetweenFinalValuesFloat()

float Terraria.NPC.GetAttackDamage_LerpBetweenFinalValuesFloat ( float normalDamage,
float expertDamage )
inline

Definition at line 1871 of file NPC.cs.

1872 {
1873 float amount = (Main.expertMode ? 1 : 0);
1874 if (Main.GameModeInfo.IsJourneyMode)
1875 {
1876 amount = MathHelper.Clamp(strengthMultiplier - 1f, 0f, 1f);
1877 }
1878 return MathHelper.Lerp(normalDamage, expertDamage, amount);
1879 }
float strengthMultiplier
Definition NPC.cs:1172

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