From e8031d165e930d0ad95127cbc814fbc0028d4b62 Mon Sep 17 00:00:00 2001 From: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com> Date: Wed, 25 Nov 2020 23:52:19 -0500 Subject: [PATCH] Mechs must now have maint protocols active to be repaired. (#14972) * maint protocols now needed * Update code/game/mecha/mecha.dm Co-authored-by: moxian * Update code/game/mecha/mecha.dm Co-authored-by: Farie82 * Henks second request Co-authored-by: moxian Co-authored-by: Farie82 --- code/game/mecha/mecha.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/game/mecha/mecha.dm b/code/game/mecha/mecha.dm index 7e0101b891e..d01f8fd856b 100644 --- a/code/game/mecha/mecha.dm +++ b/code/game/mecha/mecha.dm @@ -840,6 +840,9 @@ if(repairing) to_chat(user, "[src] is currently being repaired!") return + if(state == 0) // If maint protocols are not active, the state is zero + to_chat(user, "[src] can not be repaired without maintenance protocols active!") + return WELDER_ATTEMPT_REPAIR_MESSAGE repairing = TRUE if(I.use_tool(src, user, 15, volume = I.tool_volume))