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
@@ -358,6 +358,9 @@
return
var/obj/item/thing = get_active_held_item()
var/obj/item/equipped_item = get_item_by_slot(slot_type)
var/thing_reject = NONE
if(thing)
thing_reject = SEND_SIGNAL(thing, COMSIG_HUMAN_NON_STORAGE_HOTKEY, src, equipped_item)
if(!equipped_item) // We also let you equip an item like this
if(!thing)
to_chat(src, span_warning("You have no [slot_item_name] to take something out of!"))
@@ -370,6 +373,8 @@
if(!thing)
equipped_item.attack_hand(src)
else
if(thing_reject & COMPONENT_STORAGE_HOTKEY_HANDLED)
return
to_chat(src, span_warning("You can't fit [thing] into your [equipped_item.name]!"))
return
if(!storage.supports_smart_equip)