Skip to content

UnitFight beta ​

Interface of @v12-engine/client

ts
export interface UnitFight

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

ts
flash?: Rgb;

The colour a unit hit flashes (stage.flash): a hurt red where left out

outcome ​

ts
outcome: FightOutcome;

How the fight ends: which of the two falls, flees or stands down (FightOutcome)

seconds ​

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

ts
target: string;

The unit it fights, by its name