Z-Level Compatibility

Now possible to configure 3 different kind of Z-levels.
Station levels: Which Z-levels the station exists on.
Contact levels: Which Z-levels are typically affected by, for example, Code Red which alters the visual state of fire alarms.
Player levels: Which Z-levels a character can typically reach.
This commit is contained in:
PsiOmega
2014-10-30 14:24:59 +01:00
parent 67fbe9a66e
commit bf1e6af508
27 changed files with 77 additions and 48 deletions

View File

@@ -528,7 +528,7 @@ Doing this because FindTurfs() isn't even used
src << "Only administrators may use this command."
return
for(var/turf/T in world)
if(prob(4) && T.z == 1 && istype(T,/turf/station/floor))
if(prob(4) && T.z in station_levels && istype(T,/turf/station/floor))
spawn(50+rand(0,3000))
var/obj/item/weapon/tank/plasmatank/pt = new /obj/item/weapon/tank/plasmatank( T )
pt.gas.temperature = 400+T0C