Skip to content

growOnTiles beta ​

Function of @v12-engine/engine

ts
export declare function growOnTiles(world: World, layer: string, tiles: readonly string[], value: number): number[];

Grass grown from the ground's paint made cells of a layer the rules see: every cell whose tile is one of tiles (by id) and that nothing of the layer is painted on is set to value (world.setCells: saved, told to the players, remembered through the fog). What a game calls once, as its world begins, for the grass the client grows on those tiles (FoliageLook.on) to hide and burn as value's style says: from then on they are cells as any painted, and a tile painted later grows nothing to the rules until it is called again. The cells set