From 956ecf310975ace2a104f840bf1e7df62e76b6ef Mon Sep 17 00:00:00 2001 From: DGamerL <108773801+DGamerL@users.noreply.github.com> Date: Sun, 12 Jan 2025 11:15:38 +0100 Subject: [PATCH] Makes night shift actually save power like it should (#27770) * Makes night shift actually save power * Update code/modules/power/lights.dm Co-authored-by: Mikhail G. Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com> * Bit more power use --------- Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Co-authored-by: Mikhail G. --- code/modules/power/lights.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/modules/power/lights.dm b/code/modules/power/lights.dm index 83f45592f34..bf048012cb6 100644 --- a/code/modules/power/lights.dm +++ b/code/modules/power/lights.dm @@ -235,7 +235,7 @@ layer = FLY_LAYER max_integrity = 100 power_state = ACTIVE_POWER_USE - idle_power_consumption = 2 //when in low power mode + idle_power_consumption = 10 //when in low power mode active_power_consumption = 20 //when in full power mode power_channel = PW_CHANNEL_LIGHTING //Lights are calc'd via area so they dont need to be in the machine list var/base_state = "tube" // Base description and icon_state @@ -553,7 +553,8 @@ burnout() return - change_power_mode(ACTIVE_POWER_USE) + change_power_mode(nightshift_enabled ? IDLE_POWER_USE : ACTIVE_POWER_USE) + update_icon() set_light(BR, PO, CO) if(play_sound)