Merge pull request #14289 from Dovixx/SSD-portal

Makes the list SSDs and AFKs panel spawn the NT SSD teleportation portal
This commit is contained in:
variableundefined
2020-09-15 19:37:24 -04:00
committed by GitHub
2 changed files with 4 additions and 3 deletions
+3
View File
@@ -784,6 +784,9 @@
if(free_cryopods.len)
target_cryopod = safepick(free_cryopods)
if(target_cryopod.check_occupant_allowed(person_to_cryo))
var/turf/T = get_turf(person_to_cryo)
var/obj/effect/portal/SP = new /obj/effect/portal(T, null, null, 40)
SP.name = "NT SSD Teleportation Portal"
target_cryopod.take_occupant(person_to_cryo, 1)
return 1
return 0
+1 -3
View File
@@ -66,9 +66,7 @@
if(!is_station_level(T.z))
return
var/area/A = get_area(src)
if(cryo_ssd(src))
var/obj/effect/portal/P = new /obj/effect/portal(T, null, null, 40)
P.name = "NT SSD Teleportation Portal"
cryo_ssd(src)
if(A.fast_despawn)
force_cryo_human(src)