FloatMerge beta
Interface of @v12-engine/client
export interface FloatMergeHow 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
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
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
mode?: 'sum' | 'count' | 'max';The number merged: the amounts added (default), how many times it was hit, the largest
pulse
pulse?: FloatMotion | readonly FloatMotion[] | false;Played again from its start on every merge (a pop): none when left out
restart
restart?: boolean;Whether a merge starts the life over: yes when left out
window
window?: number;Seconds after the last one within which a new one joins it rather than starting its own: 0.8 when left out