Creature equipment: the forge makes iron, steel and rune gear for the strongest creatures
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
82dd8c73e1
commit
4c440fb97f
25 files changed
+215
-4
No files matched your search
@@ -1741,6 +1741,14 @@ impl R3d {
|
||||
if e.guard {
|
||||
gfx.glyph('☼', head.x - (GW * small * 0.5).floor(), head.y - 2.0 * GH * small, small, Color::from_rgba(255, 220, 90, 255));
|
||||
}
|
||||
// equipment from the forge: a little mark right of the health bar
|
||||
if e.gear > 0 && px_per_tile >= 20.0 * F() as f32 {
|
||||
let k = 2.0 * F() as f32;
|
||||
let x = head.x + (cols as f32 * cw * 0.5).ceil() + 2.0 * k;
|
||||
let c = [Color::from_rgba(170, 170, 180, 255), Color::from_rgba(110, 160, 255, 255), Color::from_rgba(90, 240, 255, 255)][(e.gear as usize - 1).min(2)];
|
||||
draw_rectangle(x, head.y - GH * small, 3.0 * k, 4.0 * k, Color::from_rgba(20, 16, 20, 255));
|
||||
draw_rectangle(x + k * 0.5, head.y - GH * small + k * 0.5, 2.0 * k, 3.0 * k, c);
|
||||
}
|
||||
// rank badge left of the health bar
|
||||
if e.level > 1 && px_per_tile >= 20.0 * F() as f32 {
|
||||
let k = 2.0 * F() as f32;
|
||||
|
||||
Reference in new issue
Block a user