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 <moxian@users.noreply.github.com>

* Update code/game/mecha/mecha.dm

Co-authored-by: Farie82 <joepvelden@hotmail.com>

* Henks second request

Co-authored-by: moxian <moxian@users.noreply.github.com>
Co-authored-by: Farie82 <joepvelden@hotmail.com>
This commit is contained in:
Qwertytoforty
2020-11-25 23:52:19 -05:00
committed by GitHub
co-authored by moxian Farie82
parent 730060ee56
commit e8031d165e
+3
View File
@@ -840,6 +840,9 @@
if(repairing)
to_chat(user, "<span class='notice'>[src] is currently being repaired!</span>")
return
if(state == 0) // If maint protocols are not active, the state is zero
to_chat(user, "<span class='warning'>[src] can not be repaired without maintenance protocols active!</span>")
return
WELDER_ATTEMPT_REPAIR_MESSAGE
repairing = TRUE
if(I.use_tool(src, user, 15, volume = I.tool_volume))