Fourth master: dwarves get their own side so the yellow AI works; yellow colours and texts; AI cores use the player's throne and heart in their colour

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Richard ZinkandClaude Opus 5.5 committed 2026-11-06 09:01:57 +01:00
1 parent 450e55d693
commit b29e312e6b
25 files changed
+136 -55

No files matched your search

+9 -7
View File
@@ -765,8 +765,13 @@ impl Ui {
}
// the soul cores of the rival masters
for rv in g.rivals.iter().filter(|r| r.alive) {
let col = if rv.side == 2 { Color::new(0.4, 0.95, 0.45, 1.0) } else { Color::new(0.45, 0.65, 1.0, 1.0) };
let key = if rv.side == 2 { "hud.rival1" } else { "hud.rival2" };
let c = crate::render3d::master_rgb(rv.side);
let col = Color::new(c.x, c.y, c.z, 1.0);
let key = match rv.side {
2 => "hud.rival1",
3 => "hud.rival2",
_ => "net.side4",
};
segs.insert(3, vec![txt(tr(key), col), Part::Gap, Part::Bar(rv.hp / crate::rival::RIVAL_CORE_HP, col)]);
}
if g.waves_on() {
@@ -995,11 +1000,8 @@ impl Ui {
} else if e.dwarf() {
Color::new(0.85, 0.55, 0.25, 1.0)
} else if e.rival() {
if e.side == 2 {
Color::new(0.3, 0.95, 0.4, 1.0)
} else {
Color::new(0.4, 0.6, 1.0, 1.0)
}
let c = crate::render3d::master_rgb(e.side);
Color::new(c.x, c.y, c.z, 1.0)
} else if e.kind == EK::Worker { Color::new(1.0, 0.6, 0.3, 1.0) } else { Color::new(1.0, 0.25, 0.25, 1.0) };
draw_rectangle((mrx + e.disp_x.floor() * ms).floor(), (mry + e.disp_y.floor() * ms).floor(), dot, dot, c);
}