Minor bugfix
parent
d3195983ec
commit
de07e763c3
|
@ -113,10 +113,15 @@ fn event(state, event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn step(state) {
|
fn step(state) {
|
||||||
|
if state.player_ship().stat_shield_strength() == 0.0 {
|
||||||
|
radialbar::set_val("shield", 0.0);
|
||||||
|
} else {
|
||||||
radialbar::set_val("shield",
|
radialbar::set_val("shield",
|
||||||
state.player_ship().current_shields()
|
state.player_ship().current_shields()
|
||||||
/ state.player_ship().stat_shield_strength()
|
/ state.player_ship().stat_shield_strength()
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
radialbar::set_val("hull",
|
radialbar::set_val("hull",
|
||||||
state.player_ship().current_hull()
|
state.player_ship().current_hull()
|
||||||
/ state.player_ship().total_hull()
|
/ state.player_ship().total_hull()
|
||||||
|
|
Loading…
Reference in New Issue