DamageOptions beta
Interface of @v12-engine/engine
ts
export interface DamageOptionsHow a blow is described to world.damage: its type, whether it is an attack or crit, its ability, tags and how it kills
Members
ability
ts
ability?: string;The ability that dealt it, by id: for "immune to Ice Storm", or a kill feed. Left out for a basic attack
attack
ts
attack?: boolean;A basic attack: life steal works on it
crit
ts
crit?: boolean;It struck critically. The amount is what it is, this is for whoever is watching
damageType
ts
damageType?: DamageType;Physical when left out
how
ts
how?: string;How what this blow kills dies, for the screen ('burnt'): the death's how (AttackDef.how, AbilityDef.how)
tags
ts
tags?: string[];Words of the game's own about it ('fire', 'explosive'), for hooks and the screen to decide on