Constructors
constructor
- new Defense(base: number): Defense
-
Properties
base
base: number
resist
vulnerable
Methods
copy
- copy(): Defense
-
equals
- equals(defense: Defense): boolean
-
Returns boolean
setImmunity
- setImmunity(damageTypes: DamageType): Defense
-
setRegen
- setRegen(damageTypes: DamageType): Defense
-
setResistance
- setResistance(damageTypes: DamageType, amount: number): Defense
-
setVulnerability
- setVulnerability(damageTypes: DamageType, amount: number): Defense
-