mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 04:51:32 +01:00
Making certain SMES and Blast Doors be critical + remapping Tesla APC and SM blast doors (#5993)
This commit is contained in:
committed by
Werner
parent
7aba102b1d
commit
e7ff9f8931
@@ -4,7 +4,8 @@
|
||||
command_announcement.Announce("Abnormal activity detected in [station_name()]'s powernet. As a precautionary measure, the station's power will be shut off for an indeterminate duration.", "Critical Power Failure", new_sound = 'sound/AI/poweroff.ogg')
|
||||
|
||||
for(var/obj/machinery/power/smes/buildable/S in SSpower.smes_units)
|
||||
S.energy_fail(rand(15 * severity,30 * severity))
|
||||
if(!S.is_critical)
|
||||
S.energy_fail(rand(15 * severity,30 * severity))
|
||||
|
||||
|
||||
for(var/obj/machinery/power/apc/C in SSmachinery.processing_machines)
|
||||
|
||||
@@ -35,7 +35,8 @@
|
||||
var/_wifi_id
|
||||
var/datum/wifi/receiver/button/door/wifi_receiver
|
||||
|
||||
var/securitylock = 0
|
||||
var/securitylock = FALSE
|
||||
var/is_critical = FALSE
|
||||
|
||||
/obj/machinery/door/blast/Initialize()
|
||||
. = ..()
|
||||
@@ -182,14 +183,14 @@
|
||||
|
||||
/obj/machinery/door/blast/power_change()
|
||||
..()
|
||||
if(src.operating || (stat & BROKEN))
|
||||
if(src.operating || (stat & BROKEN) || is_critical)
|
||||
return
|
||||
if(stat & NOPOWER)
|
||||
INVOKE_ASYNC(src, /obj/machinery/door/blast/.proc/force_close)
|
||||
securitylock = 1
|
||||
securitylock = TRUE
|
||||
else if(securitylock)
|
||||
INVOKE_ASYNC(src, /obj/machinery/door/blast/.proc/force_open)
|
||||
securitylock = 0
|
||||
securitylock = FALSE
|
||||
|
||||
/obj/machinery/door/blast/attack_hand(mob/user as mob)
|
||||
return
|
||||
|
||||
@@ -55,6 +55,7 @@
|
||||
var/input_pulsed = 0
|
||||
var/output_cut = 0
|
||||
var/output_pulsed = 0
|
||||
var/is_critical = FALSE // Use by gridcheck event, if set to true we do not disable it
|
||||
var/failure_timer = 0 // Set by gridcheck event, temporarily disables the SMES.
|
||||
var/target_load = 0
|
||||
var/open_hatch = 0
|
||||
|
||||
Reference in New Issue
Block a user