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 07:17:39 -05:00
committed by GitHub
parent 453ebfccf2
commit d280c9ccce
44 changed files with 233 additions and 218 deletions
@@ -244,9 +244,9 @@
return FALSE
/obj/machinery/bouldertech/item_interaction(mob/living/user, obj/item/tool, list/modifiers, is_right_clicking)
/obj/machinery/bouldertech/item_interaction(mob/living/user, obj/item/tool, list/modifiers)
if(panel_open || user.combat_mode)
return ..()
return NONE
if(istype(tool, /obj/item/boulder))
var/obj/item/boulder/my_boulder = tool
@@ -276,7 +276,7 @@
to_chat(user, span_notice("You claim [amount] mining points from \the [src] to [id_card]."))
return ITEM_INTERACT_SUCCESS
return ..()
return NONE
/obj/machinery/bouldertech/wrench_act(mob/living/user, obj/item/tool)
. = ITEM_INTERACT_BLOCKING