From 052ea35dd7fef7e6df9da5973e07c9b27aa6d41b Mon Sep 17 00:00:00 2001
From: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com>
Date: Mon, 6 Jun 2022 16:51:38 -0400
Subject: [PATCH] Requires the nuclear codes to unanchor an armed nuke (#17879)
---
code/game/gamemodes/nuclear/nuclearbomb.dm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/code/game/gamemodes/nuclear/nuclearbomb.dm b/code/game/gamemodes/nuclear/nuclearbomb.dm
index 658333bebb4..41361640698 100644
--- a/code/game/gamemodes/nuclear/nuclearbomb.dm
+++ b/code/game/gamemodes/nuclear/nuclearbomb.dm
@@ -362,6 +362,9 @@ GLOBAL_VAR(bomb_set)
to_chat(usr, "There is nothing to anchor to!")
return FALSE
else
+ if(!yes_code && anchored && timing)
+ to_chat(usr, "The code is required to unanchor [src] when armed!")
+ return
anchored = !(anchored)
if(anchored)
visible_message("With a steely snap, bolts slide out of [src] and anchor it to the flooring.")