Replace explicit z-level checks with defines (#33829)

* Replace explicit z-level checks with defines

* Rename turf_z_is_planet for consistency

* Use TRUE/FALSE in onSyndieBase
This commit is contained in:
Tad Hardesty
2017-12-29 14:40:06 -05:00
committed by ShizCalev
parent 555f2ce006
commit f2dbe5cf13
96 changed files with 174 additions and 165 deletions
+1 -1
View File
@@ -75,7 +75,7 @@
var/global/list/dumb_rev_heads = list()
/obj/machinery/computer/shuttle/mining/attack_hand(mob/user)
if((user.z in GLOB.station_z_levels) && user.mind && is_head_revolutionary(user) && !(user.mind in dumb_rev_heads))
if(is_station_level(user.z) && user.mind && is_head_revolutionary(user) && !(user.mind in dumb_rev_heads))
to_chat(user, "<span class='warning'>You get a feeling that leaving the station might be a REALLY dumb idea...</span>")
dumb_rev_heads += user.mind
return