UnitFight beta
Interface of @v12-engine/client
export interface UnitFightA fight with a fixed outcome (CN4, UnitDoing.fight): the item's unit attacks target for about seconds, and it ends the way outcome says whatever the dice and the rules would have made of it. Both are invulnerable (director) while it lasts, so the numbers of the units do not decide it; what a player sees is the real fight, the units' own swings and clips. kill: the target dies on the attacker's first hit mark (the blow of its clip) from seconds less the swing's length on, the target's own death played as it falls; flee: at seconds the target runs away and the attacker stands down; draw: the two fight each other until seconds, then both stand down. On each blow, the one hit flashes. A stage that knows no marks (no model drawn) takes seconds for the blow
Members
flash
flash?: Rgb;The colour a unit hit flashes (stage.flash): a hurt red where left out
outcome
outcome: FightOutcome;How the fight ends: which of the two falls, flees or stands down (FightOutcome)
seconds
seconds: number;About how long the fight lasts: the blow that decides it is the first from this much less the swing's length on
target
target: string;The unit it fights, by its name