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

🆑
fix: PDA flashlights wont cause the cell to constantly drain faster and
faster.
/🆑
This commit is contained in:
John Willard
2023-09-29 16:18:38 -04:00
committed by GitHub
parent 51784ca2db
commit 79e48dd7db
@@ -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)