From a4b09855518241bb33e7660eb80fbc79f1353d4e Mon Sep 17 00:00:00 2001 From: Coolrune206 <71326864+Coolrune206@users.noreply.github.com> Date: Sat, 14 Jan 2023 06:02:39 +1000 Subject: [PATCH] Prevents Syndie Nukes from being moved without the NAD (#20128) * syndie nukes are safer * Farie review Co-authored-by: Farie82 Co-authored-by: Farie82 --- code/game/gamemodes/nuclear/nuclearbomb.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/game/gamemodes/nuclear/nuclearbomb.dm b/code/game/gamemodes/nuclear/nuclearbomb.dm index b7b09aa65f6..0c6a9bd56bf 100644 --- a/code/game/gamemodes/nuclear/nuclearbomb.dm +++ b/code/game/gamemodes/nuclear/nuclearbomb.dm @@ -33,6 +33,8 @@ GLOBAL_VAR(bomb_set) var/obj/item/nuke_core/plutonium/core = null var/lastentered var/is_syndicate = FALSE + /// If this is true you cannot unbolt the NAD with tools, only the NAD + var/requires_NAD_to_unbolt = FALSE use_power = NO_POWER_USE var/previous_level = "" var/datum/wires/nuclearbomb/wires = null @@ -44,6 +46,7 @@ GLOBAL_VAR(bomb_set) /obj/machinery/nuclearbomb/syndicate is_syndicate = TRUE + requires_NAD_to_unbolt = TRUE /obj/machinery/nuclearbomb/undeployed extended = FALSE @@ -227,6 +230,9 @@ GLOBAL_VAR(bomb_set) . = TRUE if(!I.tool_use_check(user, 0)) return + if(requires_NAD_to_unbolt) + to_chat(user, "This device seems to have additional safeguards, and cannot be forcibly moved without using the NAD!") + return if(removal_stage == NUKE_INTACT) visible_message("[user] starts cutting loose the anchoring bolt covers on [src].",\ "You start cutting loose the anchoring bolt covers with [I]...",\ @@ -380,6 +386,7 @@ GLOBAL_VAR(bomb_set) if(anchored) visible_message("With a steely snap, bolts slide out of [src] and anchor it to the flooring.") else + requires_NAD_to_unbolt = FALSE visible_message("The anchoring bolts slide back into the depths of [src].") return