apply square-root scaling to oxygen meter
This commit is contained in:
parent
c1755b87bf
commit
406bd79877
1 changed files with 1 additions and 1 deletions
|
@ -670,7 +670,7 @@ fn update_gauges(
|
||||||
for (mut style, mut bg, gauge, len) in &mut q_gauges {
|
for (mut style, mut bg, gauge, len) in &mut q_gauges {
|
||||||
let value: f32 = match gauge {
|
let value: f32 = match gauge {
|
||||||
Gauge::Health => hp.current / hp.max,
|
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::Integrity => suit.integrity,
|
||||||
Gauge::Power => suit.power / suit.power_max,
|
Gauge::Power => suit.power / suit.power_max,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue