From c8825fb99b7e73b6e895f2f45382aee16703fd29 Mon Sep 17 00:00:00 2001 From: yuni Date: Mon, 17 Jun 2024 01:58:59 +0200 Subject: [PATCH] battery lasts 10x as long (for flashlight) --- src/actor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actor.rs b/src/actor.rs index d362937..fa33e1a 100644 --- a/src/actor.rs +++ b/src/actor.rs @@ -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));