mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-29 18:40:42 +00:00
Weather has been refactored from a weather control machine on the lavaland z-level into a subsystem. All existing weather has been changed to accommodate this change, and their code has been optimized by using addtimer() instead of sleep(). The new subsystem also supports adding weather to any z-level; for instance, if you made a weather called /datum/weather/rain_storm and made it target z-level 3 with a 100% probability, the rain storm would occur as much as possible with 5-10 minute intermissions. These intermissions take into account the weather's duration.
16 lines
372 B
Plaintext
16 lines
372 B
Plaintext
/datum/round_event_control/wizard/lava //THE LEGEND NEVER DIES
|
|
name = "The Floor Is LAVA!"
|
|
weight = 2
|
|
typepath = /datum/round_event/wizard/lava/
|
|
max_occurrences = 3
|
|
earliest_start = 0
|
|
|
|
/datum/round_event/wizard/lava/
|
|
endWhen = 0
|
|
var/started = FALSE
|
|
|
|
/datum/round_event/wizard/lava/start()
|
|
if(!started)
|
|
started = TRUE
|
|
SSweather.run_weather("the floor is lava")
|