Replace hardcoded z-level numbers with a trait system (#34090)

* Add basic structure of z-level traits

* Restore space transitions and add z-level debug verb

* Restore proper ruin spawning and transit level creation

* Replace station_z_levels and related checks with traits

* Eliminate more uses of ZLEVEL_{STATION_PRIMARY,LAVALAND}
This commit is contained in:
Tad Hardesty
2018-01-11 12:05:49 -08:00
committed by oranges
parent 1d914f6a86
commit 827c4b3f99
23 changed files with 277 additions and 126 deletions
@@ -1,6 +1,6 @@
/datum/mapGenerator/lavaland
var/start_z = ZLEVEL_LAVALAND
var/start_z
var/min_x = 0
var/min_y = 0
var/max_x = 0
@@ -19,11 +19,9 @@
/datum/mapGeneratorModule/river
var/river_type = /turf/open/lava/smooth
var/river_nodes = 4
var/start_z = ZLEVEL_LAVALAND
/datum/mapGeneratorModule/river/generate()
var/datum/mapGenerator/lavaland/L = mother
if(!istype(L))
return
start_z = L.start_z
spawn_rivers(start_z, river_nodes, river_type, min_x = L.min_x, min_y = L.min_y, max_x = L.max_x, max_y = L.max_y)
spawn_rivers(L.start_z, river_nodes, river_type, min_x = L.min_x, min_y = L.min_y, max_x = L.max_x, max_y = L.max_y)