Skip to content

CoreStats beta ​

Interface of @v12-engine/engine

ts
export interface CoreStats

The 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 ​

ts
armor: number;

Against physical damage: 100 of it halve what arrives

attackDamage ​

ts
attackDamage: number;

What a basic attack deals, before the armor of the target

attackRange ​

ts
attackRange: number;

Measured between the edges of attacker and target

attackSpeed ​

ts
attackSpeed: number;

Attacks per second

health ​

ts
health: number;

The most health a unit has; the entity's maxHealth follows it

healthRegen ​

ts
healthRegen: number;

Per second

incomingDamage ​

ts
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 ​

ts
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 ​

ts
incomingMagicDamage: number;

The same, of magic damage only, on top of incomingDamage

incomingPhysicalDamage ​

ts
incomingPhysicalDamage: number;

The same, of physical damage only, on top of incomingDamage

incomingTrueDamage ​

ts
incomingTrueDamage: number;

The same, of true damage only, on top of incomingDamage

magicResist ​

ts
magicResist: number;

The same against magic damage

mana ​

ts
mana: number;

The most mana a unit has

manaRegen ​

ts
manaRegen: number;

Per second

moveSpeed ​

ts
moveSpeed: number;

Units per second. Who has none cannot move

outgoingDamage ​

ts
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 ​

ts
sight: number;

How far it sees. At night the unit type says how far that is