From 3322a4a9d65e67d5bb2f2c9b4e02d0139bd7aa02 Mon Sep 17 00:00:00 2001 From: warriorstar-orion Date: Sun, 23 Feb 2025 13:30:51 -0500 Subject: [PATCH] Attack chain migration: laz injector. --- code/modules/mining/equipment/lazarus_injector.dm | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/code/modules/mining/equipment/lazarus_injector.dm b/code/modules/mining/equipment/lazarus_injector.dm index 0156ba9fc58be..0ebd211169bf1 100644 --- a/code/modules/mining/equipment/lazarus_injector.dm +++ b/code/modules/mining/equipment/lazarus_injector.dm @@ -13,16 +13,17 @@ var/loaded = 1 var/malfunctioning = 0 var/revive_type = SENTIENCE_ORGANIC //So you can't revive boss monsters or robots with it + new_attack_chain = TRUE -/obj/item/lazarus_injector/afterattack__legacy__attackchain(atom/target, mob/user, proximity_flag) +/obj/item/lazarus_injector/interact_with_atom(atom/target, mob/living/user, list/modifiers) if(!loaded) - return - if(isliving(target) && proximity_flag) + return ITEM_INTERACT_COMPLETE + if(isliving(target)) if(isanimal(target)) var/mob/living/simple_animal/M = target if(M.sentience_type != revive_type) to_chat(user, "[src] does not work on this sort of creature.") - return + return ITEM_INTERACT_COMPLETE if(M.stat == DEAD) M.faction = list("neutral") M.revive() @@ -47,13 +48,13 @@ user.visible_message("[user] injects [M] with [src], reviving it.") playsound(src,'sound/effects/refill.ogg',50,1) icon_state = "lazarus_empty" - return + return ITEM_INTERACT_COMPLETE else to_chat(user, "[src] is only effective on the dead.") - return + return ITEM_INTERACT_COMPLETE else to_chat(user, "[src] is only effective on lesser beings.") - return + return ITEM_INTERACT_COMPLETE /obj/item/lazarus_injector/emag_act(mob/user) if(!malfunctioning)