From 8d0e40c438d88405a4b1cc693cd1d8d5fe939b43 Mon Sep 17 00:00:00 2001
From: Thesingleworstcoder
<76535113+Thesingleworstcoder@users.noreply.github.com>
Date: Sat, 23 Oct 2021 21:03:50 +0100
Subject: [PATCH] Lower power draw of flashlights (#9001)
It makes absolutely no sense why a power cell capable of sustaining a fucking BSA can't hack the output of a flashlight, so I've dropped the power draw of flashlights down a notch
---
modular_skyrat/modules/cell_component/code/flashlight.dm | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modular_skyrat/modules/cell_component/code/flashlight.dm b/modular_skyrat/modules/cell_component/code/flashlight.dm
index cf1c72f42f5..66322a2a6d7 100644
--- a/modular_skyrat/modules/cell_component/code/flashlight.dm
+++ b/modular_skyrat/modules/cell_component/code/flashlight.dm
@@ -4,7 +4,7 @@
/// Does this flashlight have a cell override?
var/cell_override
/// How much power(per process) does this flashlight use? If any.
- power_use_amount = POWER_CELL_USE_VERY_LOW
+ power_use_amount = POWER_CELL_USE_MINIMUM
/// Flashlight mode, 0 = low, 1 = med, 2 = high
var/flashlight_mode = 0
///Does this flashlight have modes?
@@ -36,21 +36,21 @@
if(has_modes)
switch(flashlight_mode)
if(0)
- power_use_amount = POWER_CELL_USE_VERY_LOW
+ power_use_amount = POWER_CELL_USE_MINIMUM
light_range = initial(light_range)
light_power = initial(light_power)
set_light_on(on)
flashlight_mode = 1
to_chat(user, "You set [src] to low.")
if(1)
- power_use_amount = POWER_CELL_USE_LOW
+ power_use_amount = POWER_CELL_USE_VERY_LOW
light_range = initial(light_range) + 2
light_power = initial(light_power) + 1
set_light_on(on)
flashlight_mode = 2
to_chat(user, "You set [src] to medium.")
if(2)
- power_use_amount = POWER_CELL_USE_NORMAL
+ power_use_amount = POWER_CELL_USE_LOW
light_range = initial(light_range) + 4
light_power = initial(light_power) + 2
set_light_on(on)