From 4bc5a3e32aab4c07fb55d052da6092104a5d73eb Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 8 Dec 2025 17:43:35 +0100 Subject: [PATCH] eye/hair colors are now used by Thief powers --- rogueviz/ru/classes.cpp | 2 +- rogueviz/ru/render.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rogueviz/ru/classes.cpp b/rogueviz/ru/classes.cpp index 0e703205..13775987 100644 --- a/rogueviz/ru/classes.cpp +++ b/rogueviz/ru/classes.cpp @@ -626,7 +626,7 @@ struct snake : public enemy { }; struct disnake : public snake { - color_t color() override { return 0x2020F0FF; } + color_t color() override { return m.hair.col; } void act() override; bool is_disarmer() override { return true; } string get_name() override { return "hairsnake"; } diff --git a/rogueviz/ru/render.cpp b/rogueviz/ru/render.cpp index 7e60fe2f..a65d1568 100644 --- a/rogueviz/ru/render.cpp +++ b/rogueviz/ru/render.cpp @@ -271,7 +271,7 @@ void man::draw() { curvepoint(eupush(h.x, h.y) * C0); } vid.linewidth *= 3; - queuecurve(scrm, 0x800080, 0, PPR::LINE); + queuecurve(scrm, m.eye.col, 0, PPR::LINE); vid.linewidth /= 3; current_room->bfs(xy_to_block(m.where), [&] (intxy xy) { if(hdist(h0, block_to_hyper(xy)) > r) return false; @@ -307,7 +307,7 @@ void man::draw() { curvepoint(eupush(h.x, h.y) * C0); } vid.linewidth *= 3; - queuecurve(scrm, 0xFF000080, 0, PPR::LINE); + queuecurve(scrm, m.eye.col, 0, PPR::LINE); vid.linewidth /= 3; } } @@ -330,7 +330,7 @@ void man::draw() { if(!(walls[what].flags & W_TRANS)) break; } vid.linewidth *= 3; - queuecurve(scrm, 0x800080, 0, PPR::LINE); + queuecurve(scrm, m.eye.col, 0, PPR::LINE); vid.linewidth /= 3; } }