From 5530b90d535fbf35877974830c7a06e9ddbb40a2 Mon Sep 17 00:00:00 2001 From: Casey Date: Wed, 8 Dec 2021 04:17:54 -0500 Subject: [PATCH] Merge pull request #11970 from Heroman3003/holopower Makes holodeck turn power on/off depending on state --- code/modules/holodeck/HolodeckControl.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/modules/holodeck/HolodeckControl.dm b/code/modules/holodeck/HolodeckControl.dm index f48ae1a26a..309971d5e2 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")