mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 11:34:19 +01:00
Fixes survival pods being used on station (#19256)
This commit is contained in:
@@ -42,16 +42,17 @@
|
||||
// Can't grab when capsule is New() because templates aren't loaded then
|
||||
get_template()
|
||||
if(used == FALSE)
|
||||
var/turf/UT = get_turf(usr)
|
||||
if((UT.z == level_name_to_num(MAIN_STATION)) && !emagged)
|
||||
to_chat(usr, "<span class='notice'>Error. Deployment was attempted on the station sector. Deployment aborted.</span>")
|
||||
playsound(usr, 'sound/machines/terminal_error.ogg', 15, TRUE)
|
||||
return
|
||||
loc.visible_message("<span class='warning'>[src] begins to shake. Stand back!</span>")
|
||||
used = TRUE
|
||||
sleep(50)
|
||||
var/turf/deploy_location = get_turf(src)
|
||||
var/status = template.check_deploy(deploy_location)
|
||||
var/turf/UT = get_turf(usr)
|
||||
if((UT.z == level_name_to_num(MAIN_STATION)) && !emagged)
|
||||
to_chat(usr, "<span class='notice'>Error. Deployment was attempted on the station sector. Deployment aborted.</span>")
|
||||
playsound(usr, 'sound/machines/terminal_error.ogg', 15, TRUE)
|
||||
used = FALSE
|
||||
return
|
||||
switch(status)
|
||||
if(SHELTER_DEPLOY_BAD_AREA)
|
||||
loc.visible_message("<span class='warning'>[src] will not function in this area.</span>")
|
||||
|
||||
Reference in New Issue
Block a user