apply square-root scaling to oxygen meter
This commit is contained in:
parent
c1755b87bf
commit
406bd79877
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue