battery lasts 10x as long (for flashlight)

This commit is contained in:
yuni 2024-06-17 01:58:59 +02:00
parent c5d744b280
commit c8825fb99b

View file

@ -271,7 +271,7 @@ pub fn update_power(
let d = time.delta_seconds();
for (mut battery, player) in &mut q_battery {
if player.is_some() && settings.flashlight_active {
battery.power -= 4000000.0 * d;
battery.power -= 2400000.0 * d;
if battery.power <= 0.0 {
settings.flashlight_active = false;
ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Switch));