mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 21:48:21 +01:00
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:
co-authored by
moxian
Farie82
parent
730060ee56
commit
e8031d165e
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user