apply square-root scaling to oxygen meter

This commit is contained in:
yuni 2024-05-08 01:18:09 +02:00
parent c1755b87bf
commit 406bd79877

View file

@ -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,
};