From dcb1e2ed2eb3374db99311057f58e7c77d48e1c8 Mon Sep 17 00:00:00 2001 From: Ebb-Real <95765134+Ebb-Real@users.noreply.github.com> Date: Sat, 12 Mar 2022 00:48:52 +0100 Subject: [PATCH] Fixes RCD not being able to be put in containers by click (#65249) If you click a bag with an RCD nothing happends, this fixes it. Not sure if this is the best way to fix it since im not that experienced but i playtested it and it works. Tell me if i need to change anything. --- code/game/objects/items/RCD.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/game/objects/items/RCD.dm b/code/game/objects/items/RCD.dm index 70de22a709e..8b8286507f1 100644 --- a/code/game/objects/items/RCD.dm +++ b/code/game/objects/items/RCD.dm @@ -755,12 +755,16 @@ GLOBAL_VAR_INIT(icon_holographic_window, init_holographic_window()) /obj/item/construction/rcd/pre_attack(atom/A, mob/user, params) . = ..() mode = construction_mode + if(!A.rcd_vals(user, src)) + return rcd_create(A, user) return TRUE /obj/item/construction/rcd/pre_attack_secondary(atom/target, mob/living/user, params) . = ..() mode = RCD_DECONSTRUCT + if(!target.rcd_vals(user, src)) + return rcd_create(target, user) return SECONDARY_ATTACK_CANCEL_ATTACK_CHAIN