Cryogenics Fix (#9318)

Cryogenics no longer swallow the items that spawn in your hands if you spawn there.

Fixes #9280
This commit is contained in:
Geeves
2020-07-10 22:32:26 +03:00
committed by GitHub
parent e75e5ca76a
commit 01259dd3ac
4 changed files with 18 additions and 1 deletions
+3
View File
@@ -236,6 +236,9 @@ var/global/list/frozen_crew = list()
if(occupant)
to_chat(user, SPAN_NOTICE("<b>[occupant]</b> [gender_datums[occupant.gender].is] inside \the [src]."))
/obj/machinery/cryopod/can_hold_dropped_items()
return FALSE
/obj/machinery/cryopod/proc/find_control_computer(urgent=0)
for(var/obj/machinery/computer/cryopod/C in get_area(src))
control_computer = C
+4
View File
@@ -249,3 +249,7 @@
. = ..()
if((obj_flags & OBJ_FLAG_ROTATABLE) || (obj_flags & OBJ_FLAG_ROTATABLE_ANCHORED))
to_chat(user, SPAN_SUBTLE("Can be rotated with alt-click."))
// whether mobs can unequip and drop items into us or not
/obj/proc/can_hold_dropped_items()
return TRUE
+5 -1
View File
@@ -240,7 +240,11 @@ var/list/slot_equipment_priority = list( \
/mob/proc/canUnEquip(obj/item/I)
if(!I) //If there's nothing to drop, the drop is automatically successful.
return 1
return TRUE
if(istype(loc, /obj))
var/obj/O = loc
if(!O.can_hold_dropped_items())
return FALSE
var/slot = get_inventory_slot(I)
return slot && I.mob_can_unequip(src, slot)
+6
View File
@@ -0,0 +1,6 @@
author: Geeves
delete-after: True
changes:
- bugfix: "Cryogenics no longer swallow the items that spawn in your hands if you spawn there."