FoliageFire beta
Interface of @v12-engine/engine
export interface FoliageFireHow fire goes in a game's grass and bushes (FoliageOptions.fire): how often it spreads, what the wind and the slope do to it, how much may burn at once, what it does to who stands in it
Members
damage
damage?: number;Damage a second to units that stand in a burning cell, by whoever lit it: none when left out
damageType
damageType?: DamageType;The type that damage is dealt as: magic when left out
every
every?: number;How often a burning cell tries to light those beside it, in seconds: 0.25 when left out
jump
jump?: number;How strong a wind (0 to 1) has it jump a gap of one cell: never when left out
lasts
lasts?: number;Seconds after which a fire dies, whatever is left to burn: never when left out
lights
lights?: boolean;Whether a burning cell may set alight what burns and stands on it or on a cell next to it (trees, a wooden wall: grass does not burn under what stands), in a game with the burning pack too (burningPack): no when left out. It passes as fire does, not at once: at each of the cell's tries (every), by a chance of its own (0.05 for grass of fuel 1 in still, dry air, likelier downwind), asked of the game (burnStart, cause: 'foliage'), under the most that may burn there (BurningOptions.maxBurning). What caught is set alight at the end of the burning pack's turn, and tries nothing before its own next turn. The other way is that pack's to say (BurningOptions.lightsFoliage)
maxBurning
maxBurning?: number;The most cells that burn at once, over all the pack's layers: those past it wait their turn. 4000 when left out
slope
slope?: number;How much faster it goes uphill than down, 0 (the same) and up: 1 when left out
spread
spread?: boolean;Whether a burning cell lights those beside it: yes when left out. With false, only what is set alight burns
weather
weather?: boolean;Whether rain and snow damp it and put it out (MapEnvironment.weather): yes when left out
wet
wet?: number;How wet everything is, 0 (dry) to 1 (nothing catches): 0 when left out
wind
wind?: number;How much the wind decides which way it goes (MapEnvironment.wind), 0 (not at all) and up: 1 when left out