mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 21:40:55 +01:00
Fixes attempting surgery firing instead of normal actions (#19287)
Fixes surgery code from hijacking any attempt to use an item while someone is on a bed. Rather than checking for a few allowed items, it will now check for if the tool is meant for surgery, and only say "You don't know what you can do" if so.
This commit is contained in:
@@ -18,6 +18,10 @@
|
||||
pickup_sound = 'sound/items/pickup/weldingtool.ogg'
|
||||
recyclable = TRUE
|
||||
|
||||
/obj/item/surgery/Initialize(mapload, ...)
|
||||
. = ..()
|
||||
item_flags |= ITEM_FLAG_SURGERY
|
||||
|
||||
/*
|
||||
* Retractor
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user