Weather above ground: rain puts out fires, fog shortens sight, storms strike with lightning
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f98f05f0d2
commit
3e17bdf52d
27 files changed
+555
-5
No files matched your search
@@ -809,6 +809,13 @@ impl Ui {
|
||||
};
|
||||
segs.insert(3, vec![txt(tr(key), col), Part::Gap, Part::Bar(rv.hp / crate::rival::RIVAL_CORE_HP, col)]);
|
||||
}
|
||||
// the weather above ground (maps with land above ground only)
|
||||
if g.has_sky() {
|
||||
let w = &g.weather;
|
||||
let k = if w.level > 0.05 { w.shown } else { crate::weather::FAIR };
|
||||
let col = [GOLD, Color::new(0.55, 0.7, 1.0, 1.0), Color::new(0.75, 0.78, 0.8, 1.0), Color::new(0.75, 0.6, 1.0, 1.0)][k as usize];
|
||||
segs.push(vec![txt(tr(crate::weather::NAMES[k as usize]), col)]);
|
||||
}
|
||||
if g.waves_on() {
|
||||
segs.push(vec![txt(trf("hud.wave", &[(g.wave + 1).to_string()]), wave_col), Part::Gap, txt(mmss(g.wave_timer), TXT)]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user