mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-28 22:47:59 +01:00
Adds SSD for Silicons (#31205)
* Silicon SSD * Tied everything with a bow * Update code/modules/mob/living/silicon/robot/robot_logout.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> Signed-off-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com> * Update robot_mob.dm * Apply suggestions from code review Co-authored-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com> Signed-off-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com> --------- Signed-off-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com> Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> Co-authored-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
This commit is contained in:
co-authored by
Luc
PollardTheDragon
parent
670202be06
commit
8703edf492
@@ -713,10 +713,11 @@
|
||||
|
||||
return ..()
|
||||
|
||||
|
||||
/// Teleport an SSD human inside a cryopod, or a robot to a robot storage unit, but do not despawn them.
|
||||
/proc/cryo_ssd(mob/living/person_to_cryo)
|
||||
if(istype(person_to_cryo.loc, /obj/machinery/cryopod))
|
||||
return FALSE
|
||||
|
||||
if(isobj(person_to_cryo.loc))
|
||||
var/obj/O = person_to_cryo.loc
|
||||
O.force_eject_occupant(person_to_cryo)
|
||||
@@ -735,11 +736,14 @@
|
||||
SP.name = "NT SSD Teleportation Portal"
|
||||
target_cryopod.take_occupant(person_to_cryo, 1)
|
||||
return TRUE
|
||||
|
||||
return FALSE
|
||||
|
||||
/proc/force_cryo_human(mob/living/carbon/person_to_cryo)
|
||||
if(!istype(person_to_cryo))
|
||||
/// Immeditely teleport a human or robot to cryo and then despawn them.
|
||||
/proc/force_cryo(mob/living/person_to_cryo)
|
||||
if(!ishuman(person_to_cryo) && !isrobot(person_to_cryo))
|
||||
return
|
||||
|
||||
if(!istype(person_to_cryo.loc, /obj/machinery/cryopod))
|
||||
cryo_ssd(person_to_cryo)
|
||||
if(istype(person_to_cryo.loc, /obj/machinery/cryopod))
|
||||
|
||||
Reference in New Issue
Block a user