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.
This commit is contained in:
Ebb-Real
2022-03-11 23:48:52 +00:00
committed by GitHub
parent da6c1c3b25
commit dcb1e2ed2e
+4
View File
@@ -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