|
TModLoader v1.4.4.9
TModLoader source code documentation
|
Collaboration diagram for Terraria.Player.HurtInfo:Public Member Functions | |
| HurtInfo () | |
Public Attributes | |
| PlayerDeathReason | DamageSource |
| bool | PvP |
| int | CooldownCounter |
| bool | Dodgeable |
| int | HitDirection |
| float | Knockback |
| The amount of knockback to apply. Should always be >= 0. | |
| bool | DustDisabled |
| If true, dust will not spawn. | |
| bool | SoundDisabled |
| If true, sound will not play. | |
Properties | |
| int | SourceDamage [get, set] |
| The amount of damage 'dealt' to the player, before incoming damage multipliers, armor, damage reduction. Use this to trigger effects which scale based on how 'hard' the player was hit rather than how much life was lost. Cannot be set to less than 1. Using this instead of P:Terraria.Player.HurtInfo.Damage can prevent diminishing returns damage mitigation, when adding beneficial effects like retaliatory damage. | |
| int | Damage [get, set] |
| 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. | |
Private Attributes | |
| int | _sourceDamage |
| int | _damage |