You can put defib paddles back into defibs using hotkeys (#94375)

Co-authored-by: Fghj240 <fakeemail@notrealemail.com>
This commit is contained in:
Fghj240
2025-12-09 09:45:44 +01:00
committed by GitHub
co-authored by Fghj240
parent 0cc7144f90
commit ca2e8dd8b2
3 changed files with 18 additions and 0 deletions
+8
View File
@@ -340,6 +340,7 @@
. = ..()
AddElement(/datum/element/update_icon_updates_onmob, ITEM_SLOT_BACK)
AddComponent(/datum/component/two_handed, force_unwielded=8, force_wielded=12)
RegisterSignal(src, COMSIG_HUMAN_NON_STORAGE_HOTKEY, PROC_REF(on_non_storage_hotkey))
/obj/item/shockpaddles/Destroy()
defib = null
@@ -668,6 +669,13 @@
/obj/item/shockpaddles/proc/is_wielded()
return HAS_TRAIT(src, TRAIT_WIELDED)
/obj/item/shockpaddles/proc/on_non_storage_hotkey(datum/source, mob/living/carbon/human/user, obj/item/possible_storage)
SIGNAL_HANDLER
if(possible_storage == defib)
user.dropItemToGround(src)
return COMPONENT_STORAGE_HOTKEY_HANDLED
return NONE
/obj/item/shockpaddles/cyborg
name = "cyborg defibrillator paddles"
icon = 'icons/obj/medical/defib.dmi'