ruin beta
Function of @v12-engine/engine
ts
export declare function ruin(world: World, layer: string, where: FoliageWhere, options: {
how: FoliageRuin;
by?: Entity;
}): number[];Ruins grass: cut to stubble (cut, state cut: a firebreak), crushed flat (crush, state flattened, as what tramples it does) or scorched black (scorch, state burnt: nothing left to burn) (FoliageRuin). What burns there goes out as it is ruined. It hides nobody and does not burn until it has grown back (regrow, or by itself after its style's regrows seconds, over its grows). A cell is left as it is where it is that already, or burnt (nothing to cut or crush), or cut (nothing to crush). Told (foliageRuined), by by where it says. Changes the state layer alone: the ways are not weighed again. Returns the cells ruined, in order