Allow modular computers to be attacked (#55629)

You will now attack modular computers if you are not in help intent, rather than opening up their menu.
Why It's Good For The Game

i died here as nightmare because i couldnt attack the computer
This commit is contained in:
Jared-Fogle
2020-12-21 10:29:40 +13:00
committed by GitHub
parent 483f8c3ea9
commit 3bbc86c95c
@@ -116,7 +116,7 @@
return cpu.screwdriver_act(user, tool)
/obj/machinery/modular_computer/attackby(obj/item/W as obj, mob/user)
if(cpu && !(flags_1 & NODECONSTRUCT_1))
if (user.a_intent == INTENT_HELP && cpu && !(flags_1 & NODECONSTRUCT_1))
return cpu.attackby(W, user)
return ..()