Skip to content

five-on-it / packages/sim/src/pumps

packages/sim/src/pumps ​

The petrol station chain (GAME_DESIGN §12, chaos event E5): a level's petrol pumps (@foi/world's spots of kind pump, a petrol station's) catch fire from a blast beside them or a burning car at them, burn for PUMP.fuseSeconds and blow up, each blast as big as PUMP_BLAST; a pump blowing up sets the others of its forecourt off within moments, one after another: the big boom. A pump blown up fills nobody up again.

Part of the fire (fire.ts' fireSystem steps it), so it runs in the server's world alone (the vehicleFire rule); the clients draw what the room's chaos message tells of the pumps and the blasts the events carry. The state is SimWorld.pumps (a pump's fuse in ticks while it burns, PUMP_FINE or PUMP_OUT), by the pump's index among the level's pumps, hashed with the rest.

Variables ​

Functions ​