mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 00:29:02 +01:00
You can put defib paddles back into defibs using hotkeys (#94375)
Co-authored-by: Fghj240 <fakeemail@notrealemail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user