From 406bd79877fa8528b694277e47f30a3565171827 Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 8 May 2024 01:18:09 +0200 Subject: [PATCH] apply square-root scaling to oxygen meter --- src/hud.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hud.rs b/src/hud.rs index 85d9d13..db477e2 100644 --- a/src/hud.rs +++ b/src/hud.rs @@ -670,7 +670,7 @@ fn update_gauges( for (mut style, mut bg, gauge, len) in &mut q_gauges { let value: f32 = match gauge { Gauge::Health => hp.current / hp.max, - Gauge::Oxygen => suit.oxygen / suit.oxygen_max, + Gauge::Oxygen => (suit.oxygen / suit.oxygen_max).powf(0.5), Gauge::Integrity => suit.integrity, Gauge::Power => suit.power / suit.power_max, };