From 79e48dd7db28110083fa4106349644b7c5e05e24 Mon Sep 17 00:00:00 2001 From: John Willard <53777086+JohnFulpWillard@users.noreply.github.com> Date: Fri, 29 Sep 2023 20:18:38 +0000 Subject: [PATCH] Flashlights wont cause your pda to drain faster endlessly (#78655) ## About The Pull Request Changed the PDA's base var rather than the one we're supposed to actually use sorry lol ## Why It's Good For The Game Closes https://github.com/tgstation/tgstation/issues/78658 ## Changelog :cl: fix: PDA flashlights wont cause the cell to constantly drain faster and faster. /:cl: --- .../modular_computers/computers/item/computer_power.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/modular_computers/computers/item/computer_power.dm b/code/modules/modular_computers/computers/item/computer_power.dm index 0c3672352d0..69244ccc244 100644 --- a/code/modules/modular_computers/computers/item/computer_power.dm +++ b/code/modules/modular_computers/computers/item/computer_power.dm @@ -1,5 +1,5 @@ ///The multiplier given to the base overtime charge drain value if its flashlight is on. -#define FLASHLIGHT_DRAIN_MULTIPLIER 1.25 +#define FLASHLIGHT_DRAIN_MULTIPLIER 1.1 // Tries to draw power from charger or, if no operational charger is present, from power cell. /obj/item/modular_computer/proc/use_power(amount = 0) @@ -42,7 +42,7 @@ /obj/item/modular_computer/proc/handle_power(seconds_per_tick) var/power_usage = screen_on ? base_active_power_usage : base_idle_power_usage if(light_on) - base_active_power_usage *= FLASHLIGHT_DRAIN_MULTIPLIER + power_usage *= FLASHLIGHT_DRAIN_MULTIPLIER if(active_program) power_usage += active_program.power_cell_use for(var/datum/computer_file/program/open_programs as anything in idle_threads)