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:
Sparky
2024-05-31 21:19:34 +00:00
committed by GitHub
parent 1e2fc585e7
commit 0639362a79
4 changed files with 16 additions and 29 deletions
@@ -18,6 +18,10 @@
pickup_sound = 'sound/items/pickup/weldingtool.ogg'
recyclable = TRUE
/obj/item/surgery/Initialize(mapload, ...)
. = ..()
item_flags |= ITEM_FLAG_SURGERY
/*
* Retractor
*/