From d1735d705ef670b3dceea2504ba8e7a90b09bb6f Mon Sep 17 00:00:00 2001 From: FalloutFalcon Date: Sun, 9 Jun 2024 02:46:35 -0500 Subject: [PATCH] fixes mecha do_afters --- code/game/mecha/equipment/mecha_equipment.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/mecha/equipment/mecha_equipment.dm b/code/game/mecha/equipment/mecha_equipment.dm index 3882fe8d5a6f..63d308f69558 100644 --- a/code/game/mecha/equipment/mecha_equipment.dm +++ b/code/game/mecha/equipment/mecha_equipment.dm @@ -101,13 +101,13 @@ chassis.use_power(energy_drain) addtimer(CALLBACK(src, PROC_REF(set_ready_state), 1), equip_cooldown) -/obj/item/mecha_parts/mecha_equipment/proc/do_after_cooldown(atom/target, mob/user, interaction_key) +/obj/item/mecha_parts/mecha_equipment/proc/do_after_cooldown(atom/target) if(!chassis) return var/C = chassis.loc set_ready_state(0) chassis.use_power(energy_drain) - . = do_after(user, equip_cooldown, target=target, interaction_key = interaction_key) + . = do_after(chassis.occupant, equip_cooldown, target=target) set_ready_state(1) if(!chassis || chassis.loc != C || src != chassis.selected || !(get_dir(chassis, target)&chassis.dir)) return 0