Merge pull request #5001 from Citadel-Station-13/upstream-merge-34633

[MIRROR] Refactor weather to use Z traits, assorted related cleanup
This commit is contained in:
deathride58
2018-01-21 22:42:53 +00:00
committed by GitHub
26 changed files with 114 additions and 122 deletions
+4 -2
View File
@@ -33,14 +33,16 @@
var/list/hostiles_spawn = list()
var/list/hostile_types = list()
var/number_of_hostiles
var/list/station_areas = list()
var/list/station_areas
var/mutable_appearance/storm
/datum/round_event/portal_storm/setup()
storm = mutable_appearance('icons/obj/tesla_engine/energy_ball.dmi', "energy_ball_fast", FLY_LAYER)
storm.color = "#00FF00"
station_areas = get_areas_in_z(ZLEVEL_STATION_PRIMARY)
station_areas = list()
for (var/z in SSmapping.levels_by_trait(ZTRAIT_STATION))
station_areas |= SSmapping.areas_in_z["[z]"]
number_of_bosses = 0
for(var/boss in boss_types)
+1 -1
View File
@@ -16,4 +16,4 @@
//sound not longer matches the text, but an audible warning is probably good
/datum/round_event/radiation_storm/start()
SSweather.run_weather("radiation storm",ZLEVEL_STATION_PRIMARY)
SSweather.run_weather(/datum/weather/rad_storm)
@@ -13,4 +13,4 @@
/datum/round_event/wizard/darkness/start()
if(!started)
started = TRUE
SSweather.run_weather("advanced darkness", ZLEVEL_STATION_PRIMARY)
SSweather.run_weather(/datum/weather/advanced_darkness)
+1 -1
View File
@@ -12,4 +12,4 @@
/datum/round_event/wizard/lava/start()
if(!started)
started = TRUE
SSweather.run_weather("the floor is lava", ZLEVEL_STATION_PRIMARY)
SSweather.run_weather(/datum/weather/floor_is_lava)