mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-01 13:02:02 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user