CoreStats beta
Interface of @v12-engine/engine
export interface CoreStatsThe stats the engine reads: what a unit has of health, mana and their regeneration, how it moves, sees and attacks, and its armor and magic resist (the two kinds of damage there are besides true). Levels, items, buffs and research change them. A game adds stats of its own with Rules.stats, a pack its own (GamePack.stats: the MOBA stats of mobaStatsPack).
Members
armor
armor: number;Against physical damage: 100 of it halve what arrives
attackDamage
attackDamage: number;What a basic attack deals, before the armor of the target
attackRange
attackRange: number;Measured between the edges of attacker and target
attackSpeed
attackSpeed: number;Attacks per second
health
health: number;The most health a unit has; the entity's maxHealth follows it
healthRegen
healthRegen: number;Per second
incomingDamage
incomingDamage: number;Part by which the damage it takes is more or less, after armor or magic resist and before shields: -0.3 takes 30% less, 0.2 a fifth more. Added up with the part of the damage's own type (below), and never below none
incomingHealing
incomingHealing: number;Part by which the healing it gets is more or less: -0.4 heals 40% less (an anti-heal). Never below none
incomingMagicDamage
incomingMagicDamage: number;The same, of magic damage only, on top of incomingDamage
incomingPhysicalDamage
incomingPhysicalDamage: number;The same, of physical damage only, on top of incomingDamage
incomingTrueDamage
incomingTrueDamage: number;The same, of true damage only, on top of incomingDamage
magicResist
magicResist: number;The same against magic damage
mana
mana: number;The most mana a unit has
manaRegen
manaRegen: number;Per second
moveSpeed
moveSpeed: number;Units per second. Who has none cannot move
outgoingDamage
outgoingDamage: number;Part by which all the damage it deals, of attacks and abilities, is more or less: -0.35 deals 35% less. Never below none
sight
sight: number;How far it sees. At night the unit type says how far that is