[s] Adds a centcom level check to launchpad. (#37120)
* Adds a centcom level check to launchpad * Account for space americans
This commit is contained in:
committed by
CitadelStationBot
parent
4063781baf
commit
b6396256db
@@ -56,6 +56,12 @@
|
||||
if(teleporting)
|
||||
to_chat(user, "<span class='warning'>ERROR: Launchpad busy.</span>")
|
||||
return
|
||||
|
||||
var/turf/dest = get_turf(src)
|
||||
|
||||
if(dest && is_centcom_level(dest.z))
|
||||
to_chat(user, "<span class='warning'>ERROR: Launchpad not operative. Heavy area shielding makes teleporting impossible.</span>")
|
||||
return
|
||||
|
||||
var/target_x = x + x_offset
|
||||
var/target_y = y + y_offset
|
||||
@@ -78,7 +84,6 @@
|
||||
use_power(1000)
|
||||
|
||||
var/turf/source = target
|
||||
var/turf/dest = get_turf(src)
|
||||
var/list/log_msg = list()
|
||||
log_msg += ": [key_name(user)] has teleported "
|
||||
|
||||
|
||||
Reference in New Issue
Block a user