Fixes medical grippers not being usable in surgery (#26311)

* Fixes medical grippers not being usable in surgery

* Adds a new trait for tools that behave like an open hand  in surgery. uses that instead of a typecheck.
This commit is contained in:
Migratingcocofruit
2024-08-07 03:02:03 +03:00
committed by GitHub
parent 5c32524456
commit a0308e048a
4 changed files with 15 additions and 6 deletions
@@ -99,7 +99,7 @@
I.forceMove(src)
gripped_item = I
return
to_chat(user, "<span class='warning'>You hold your gripper over [target], but no matter how hard you try, you cannot make yourself grab it.</span>")
return
@@ -181,6 +181,10 @@
can_help_up = TRUE
can_hold_all_items = TRUE
/obj/item/gripper/universal/Initialize(mapload)
. = ..()
ADD_TRAIT(src,TRAIT_SURGICAL_OPEN_HAND, ROUNDSTART_TRAIT)
////////////////////////////////
// MARK: MEDICAL GRIPPER
////////////////////////////////
@@ -194,6 +198,10 @@
// REMOVE actions_types from here if you add a can_hold list for this gripper!
actions_types = list()
/obj/item/gripper/medical/Initialize(mapload)
. = ..()
ADD_TRAIT(src,TRAIT_SURGICAL_OPEN_HAND, ROUNDSTART_TRAIT)
////////////////////////////////
// MARK: SERVICE GRIPPER
////////////////////////////////