AnimalStateDamage Property |
Provides the absolute amount of damage an organism has sustained. Normally PercentInjured is more useful for determining how badly hurt your creature is, but this absolute number can be used for different types of calculations.
Some useful applications include examining the damage taken each tick, determining which creature has the MOST damage, not the highest percentage of damage. Determining if your creature can sustain a hit from another creature without dying. Determining a creature's statistical chance of winning a fight, along with updating this chance each round. Each of these can be done using the Damage property, but not the PercentInjured property.
Namespace: Terrarium.Sdk.Classes.State