mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
Converts autosurgeons/robot bodyparts/dissection notes to item_interaction (#95401)
## About The Pull Request I'm just going by categories and bundling up whichever ones are relevant, more attackby()s gone ## Changelog 🆑 refactor: Converted autosurgeons/robot bodyparts/dissection notes to item_interaction /🆑
This commit is contained in:
@@ -122,11 +122,11 @@
|
||||
add_fingerprint(user)
|
||||
use_autosurgeon(target, user, 8 SECONDS)
|
||||
|
||||
/obj/item/autosurgeon/attackby(obj/item/attacking_item, mob/user, list/modifiers, list/attack_modifiers)
|
||||
if(isorgan(attacking_item))
|
||||
load_organ(attacking_item, user)
|
||||
else
|
||||
return ..()
|
||||
/obj/item/autosurgeon/item_interaction(mob/living/user, obj/item/tool, list/modifiers)
|
||||
if(isorgan(tool))
|
||||
load_organ(tool, user)
|
||||
return ITEM_INTERACT_SUCCESS
|
||||
return NONE
|
||||
|
||||
/obj/item/autosurgeon/screwdriver_act(mob/living/user, obj/item/screwtool)
|
||||
if(..())
|
||||
|
||||
Reference in New Issue
Block a user