burningPack beta
Function of @v12-engine/engine
export declare function burningPack(options?: BurningOptions): GamePack;Things that burn (BurningOptions): trees by default (what can be felled), any type that says burns (UnitTypeDef.burns: a wooden wall, a hut), or what the game decides in code. Set alight by setAlight, an ability ({ type: 'burn', act: 'light' }), the grass's fire (FoliageFire.lights) or one another (spread), a thing burns for its seconds and burns down: felled, burnt away, or leaving a thing of its own (a charred stump), with or without its wood. Put out with putOut. Its look says what plays on it while it burns (UnitLook.burning: fire by default, or a game's own effect for its own kind of burning, how). Off unless a game turns it on:
export const rules = ...myGame, packs: [burningPack( spread: chance: 0.2 , damage: 10 )]
What burns is not woken (world.wake): a forest costs nothing a tick while nothing in it burns