mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user