From 0c3b2b3c711cb9914c851395ecf9fb2241f04d8e Mon Sep 17 00:00:00 2001 From: tristan1333 Date: Wed, 7 Feb 2024 07:07:51 +1100 Subject: [PATCH] Dental Implant fix (#23985) * Dental runtime fix Fixes dental runtime * endlineOops --- code/modules/surgery/dental_implant.dm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/code/modules/surgery/dental_implant.dm b/code/modules/surgery/dental_implant.dm index 93eeeed91e9..8a1bed115b7 100644 --- a/code/modules/surgery/dental_implant.dm +++ b/code/modules/surgery/dental_implant.dm @@ -36,9 +36,7 @@ user.drop_item() tool.forceMove(target) - var/datum/action/item_action/hands_free/activate_pill/P = new - P.button_icon_state = tool.icon_state - P.target = tool + var/datum/action/item_action/hands_free/activate_pill/P = new(tool, tool.icon, tool.icon_state) P.name = "Activate Pill ([tool.name])" P.Grant(target) @@ -48,8 +46,8 @@ /datum/action/item_action/hands_free/activate_pill name = "Activate Pill" -/datum/action/item_action/hands_free/activate_pill/Trigger(left_click) - if(!..()) +/datum/action/item_action/hands_free/activate_pill/Trigger(left_click = TRUE) + if(!..(left_click, FALSE)) return to_chat(owner, "You grit your teeth and burst the implanted [target]!") add_attack_logs(owner, owner, "Swallowed implanted [target]") @@ -59,3 +57,4 @@ Remove(owner) qdel(target) return TRUE +