Skip to content

FloatMerge beta ​

Interface of @v12-engine/client

ts
export interface FloatMerge

How several floats of the same key become one (a hit every tenth of a second: one number that grows), counted up as it grows

Members ​

countUp ​

ts
countUp?: number | false;

Seconds over which the number shown runs from what it says to the new one, by whole numbers (50, 51, … 55); 0.25 when left out; false to show the new one at once

key ​

ts
key?: 'entity' | 'entity+kind' | 'source' | ((input: FloatInput) => string | undefined);

What makes two floats one: the entity they are over (default), the entity and the kind, who did it, or a key of the game's own. Floats of different defs are never one

mode ​

ts
mode?: 'sum' | 'count' | 'max';

The number merged: the amounts added (default), how many times it was hit, the largest

pulse ​

ts
pulse?: FloatMotion | readonly FloatMotion[] | false;

Played again from its start on every merge (a pop): none when left out

restart ​

ts
restart?: boolean;

Whether a merge starts the life over: yes when left out

window ​

ts
window?: number;

Seconds after the last one within which a new one joins it rather than starting its own: 0.8 when left out