Skip to content

holds beta ​

Function of @v12-engine/client

ts
export declare function holds(cut: Cut, condition: Condition | undefined, depth?: number): boolean;

Whether a clip's condition holds now: { param: 'hard' } (a param handed and not false; equals for a value), { ref: 'hero', alive: true } (the ref is an entity the screen sees, or not with alive: false), { any: [...] }, { all: [...] }, { not: {...} }, { hook: 'bossAwake' } (code of the game's answering), and the world's (CN2): { arrived: 'hero' } (nothing left to carry out, or gone), { dead: 'gate' } (gone from where the screen sees), { inRange: ['hero', 'gate', 6] } (within 6 cells; a ref may be a point)