more readable g force display

This commit is contained in:
yuni 2024-04-08 03:05:46 +02:00
parent b72a596559
commit 0b0fd5664d

View file

@ -515,7 +515,7 @@ fn update_hud(
text.sections[11].value = format!("{adrenaline:.0}pg/mL");
let vitals = 100.0 * hp.current / hp.max;
let gforce = gforce.gforce;
text.sections[13].value = format!("{vitals:.0}% [{gforce}g]");
text.sections[13].value = format!("{vitals:.0}% [{gforce:.1}g]");
let all_actors = query_all_actors.iter().len();
text.sections[15].value = format!("{all_actors:.0}");
let integrity = suit.integrity * 100.0;