Makes it EVEN EASIER to work with atom item interactions ft. "Leaf and Branch" & "Death to Chains" (#82625)

This commit is contained in:
MrMelbert
2024-04-18 05:17:39 -07:00
committed by GitHub
parent 453ebfccf2
commit d280c9ccce
44 changed files with 233 additions and 218 deletions
@@ -80,14 +80,11 @@
diode = null
return TRUE
/obj/item/laser_pointer/item_interaction(mob/living/user, obj/item/tool, list/modifiers, is_right_clicking)
. = ..()
if(. & ITEM_INTERACT_ANY_BLOCKER)
return .
/obj/item/laser_pointer/item_interaction(mob/living/user, obj/item/tool, list/modifiers)
if(isnull(crystal_lens))
return .
return NONE
if(tool_behaviour != TOOL_WIRECUTTER && tool_behaviour != TOOL_HEMOSTAT)
return .
return NONE
tool.play_tool_sound(src)
balloon_alert(user, "removed crystal lens")
crystal_lens.forceMove(drop_location())