mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 19:44:09 +01:00
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:
committed by
GitHub
parent
5c32524456
commit
a0308e048a
@@ -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
|
||||
////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user