mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user