ignite beta
Function of @v12-engine/engine
ts
export declare function ignite(world: World, layer: string, where: FoliageWhere, options?: {
by?: Entity;
}): number[];Sets grass alight: the cells there that can burn start burning (foliageIgnite is asked of each), and the fire goes on from them. by: who lit it, whom its damage is dealt by. A cell catches where its style burns (flammable over 0), it stands whole or grows back, and it is not on water, a road (the game's road tile), what blocks the way or under a building. Past the most that may burn at once (FoliageFire.maxBurning), the rest wait their turn. Returns the cells that caught, in order; none in a game whose grass does not burn (fire: false)