From e11d4c62a7558b692950e5c63caf82c3bcd3debf Mon Sep 17 00:00:00 2001 From: Heroman Date: Tue, 7 Dec 2021 20:21:08 +1000 Subject: [PATCH] Makes holodeck turn power on/off depending on state --- code/game/area/Space Station 13 areas.dm | 1 - code/modules/holodeck/HolodeckControl.dm | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/code/game/area/Space Station 13 areas.dm b/code/game/area/Space Station 13 areas.dm index 6da9f5c4612..9127b34e66d 100755 --- a/code/game/area/Space Station 13 areas.dm +++ b/code/game/area/Space Station 13 areas.dm @@ -1311,7 +1311,6 @@ NOTE: there are two lists of areas in the end of this file: centcom and station name = "\improper Holodeck" icon_state = "Holodeck" dynamic_lighting = 0 - requires_power = 0 sound_env = LARGE_ENCLOSED forbid_events = TRUE flags = AREA_FLAG_IS_NOT_PERSISTENT diff --git a/code/modules/holodeck/HolodeckControl.dm b/code/modules/holodeck/HolodeckControl.dm index f48ae1a26af..309971d5e24 100644 --- a/code/modules/holodeck/HolodeckControl.dm +++ b/code/modules/holodeck/HolodeckControl.dm @@ -332,6 +332,12 @@ linkedholodeck.sound_env = A.sound_env + if(prog == powerdown_program) + linkedholodeck.requires_power = TRUE + else + linkedholodeck.requires_power = FALSE + linkedholodeck.power_change() + spawn(30) for(var/obj/effect/landmark/L in linkedholodeck) if(L.name=="Atmospheric Test Start")