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

View File

@@ -133,7 +133,7 @@
if(y > maxy)
y -= maxy
move_zy += 1
var/datum/space_level/S = GLOB.z_levels_list["[z]"]
var/datum/space_level/S = SSmapping.get_level(z)
if(move_zx != 0)
var/datum/space_level/L = S.neigbours["[move_zx < 0? WEST : EAST]"]
z = L.z_value