mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-12 16:44:43 +01:00
Weather
This commit is contained in:
@@ -7,8 +7,11 @@
|
||||
|
||||
/datum/round_event/wizard/darkness
|
||||
endWhen = 0
|
||||
var/started = FALSE
|
||||
|
||||
|
||||
/datum/round_event/wizard/darkness/start()
|
||||
var/datum/weather/advanced_darkness/darkness = new
|
||||
darkness.weather_start_up()
|
||||
return
|
||||
if(!started)
|
||||
started = TRUE
|
||||
var/datum/weather/advanced_darkness/darkness = new
|
||||
darkness.weather_start_up()
|
||||
|
||||
@@ -7,8 +7,10 @@
|
||||
|
||||
/datum/round_event/wizard/lava/
|
||||
endWhen = 0
|
||||
var/started = FALSE
|
||||
|
||||
/datum/round_event/wizard/lava/start()
|
||||
var/datum/weather/floor_is_lava/LAVA = new /datum/weather/floor_is_lava
|
||||
LAVA.weather_start_up()
|
||||
return
|
||||
if(!started)
|
||||
started = TRUE
|
||||
var/datum/weather/floor_is_lava/LAVA = new /datum/weather/floor_is_lava
|
||||
LAVA.weather_start_up()
|
||||
|
||||
@@ -36,9 +36,9 @@
|
||||
if(M.z == target_z)
|
||||
M << start_up_message
|
||||
|
||||
spawn(start_up_time)
|
||||
stage = MAIN_STAGE
|
||||
weather_main()
|
||||
sleep(start_up_time)
|
||||
stage = MAIN_STAGE
|
||||
weather_main()
|
||||
|
||||
|
||||
/datum/weather/proc/weather_main()
|
||||
|
||||
@@ -52,6 +52,9 @@
|
||||
if(stage == MAIN_STAGE)
|
||||
A.invisibility = 0
|
||||
A.opacity = 1
|
||||
A.layer = overlay_layer
|
||||
A.icon = 'icons/effects/weather_effects.dmi'
|
||||
A.icon_state = start_up_overlay
|
||||
else
|
||||
A.invisibility = 100
|
||||
A.opacity = 0
|
||||
|
||||
Reference in New Issue
Block a user