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

◆ GetAttackDamage_ForProjectiles_MultiLerp()

int Terraria.NPC.GetAttackDamage_ForProjectiles_MultiLerp ( float normalDamage,
float expertDamage,
float masterDamage )
inline

Definition at line 1901 of file NPC.cs.

1902 {
1903 float percent = (Main.masterMode ? 1f : (Main.expertMode ? 0.5f : 0f));
1904 if (Main.GameModeInfo.IsJourneyMode)
1905 {
1906 percent = MathHelper.Clamp(strengthMultiplier - 1f, 0f, 2f);
1907 percent /= 2f;
1908 }
1909 return (int)Utils.MultiLerp(percent, normalDamage, expertDamage, masterDamage);
1910 }
float strengthMultiplier
Definition NPC.cs:1172

References Terraria.Main.GameModeInfo, Terraria.Utils.MultiLerp(), and Terraria.NPC.strengthMultiplier.

Referenced by Terraria.NPC.AI_001_Slimes().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: