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

◆ SetMaxDamage()

void Terraria.Player.HurtModifiers.SetMaxDamage ( int limit)
inline

Sets an inclusive upper bound on the final damage of the hit.
Can be set by multiple mods, in which case the lowest limit will be used.
Cannot be set to less than 1.

Definition at line 727 of file Player.cs.

728 {
729 _damageLimit = Math.Min(_damageLimit, Math.Max(limit, 1));
730 }

References Terraria.Player.HurtModifiers._damageLimit.