Prevents Syndie Nukes from being moved without the NAD (#20128)

* syndie nukes are safer

* Farie review

Co-authored-by: Farie82 <farie82@users.noreply.github.com>

Co-authored-by: Farie82 <farie82@users.noreply.github.com>
This commit is contained in:
Coolrune206
2023-01-14 06:02:39 +10:00
committed by GitHub
parent d90b1a5f78
commit a4b0985551
@@ -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, "<span class='warning'>This device seems to have additional safeguards, and cannot be forcibly moved without using the NAD!</span>")
return
if(removal_stage == NUKE_INTACT)
visible_message("<span class='notice'>[user] starts cutting loose the anchoring bolt covers on [src].</span>",\
"<span class='notice'>You start cutting loose the anchoring bolt covers with [I]...</span>",\
@@ -380,6 +386,7 @@ GLOBAL_VAR(bomb_set)
if(anchored)
visible_message("<span class='warning'>With a steely snap, bolts slide out of [src] and anchor it to the flooring.</span>")
else
requires_NAD_to_unbolt = FALSE
visible_message("<span class='warning'>The anchoring bolts slide back into the depths of [src].</span>")
return