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

◆ Damage

int Terraria.Player.HurtInfo.Damage
getset

The amount of damage received by the player. How much life the player will lose.
Is NOT capped at the player's current life.
Cannot be set to less than 1.

Definition at line 879 of file Player.cs.

880 {
881 readonly get
882 {
883 return _damage;
884 }
885 set
886 {
887 _damage = Math.Max(value, 1);
888 }
889 }

Referenced by Terraria.NetMessage.SendData().