Dental Implant fix (#23985)

* Dental runtime fix

Fixes dental runtime

* endlineOops
This commit is contained in:
tristan1333
2024-02-06 20:07:51 +00:00
committed by GitHub
parent 68ee5a9f00
commit 0c3b2b3c71
+4 -5
View File
@@ -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, "<span class='caution'>You grit your teeth and burst the implanted [target]!</span>")
add_attack_logs(owner, owner, "Swallowed implanted [target]")
@@ -59,3 +57,4 @@
Remove(owner)
qdel(target)
return TRUE