diff --git a/rogueviz/ru/globals.cpp b/rogueviz/ru/globals.cpp index cc0278bb..ce805f08 100644 --- a/rogueviz/ru/globals.cpp +++ b/rogueviz/ru/globals.cpp @@ -167,4 +167,6 @@ void revert_all(revert_stack& s); string parse_markup(string s); +struct power& find_power(string name); + } diff --git a/rogueviz/ru/render.cpp b/rogueviz/ru/render.cpp index d929d30a..9c8e4538 100644 --- a/rogueviz/ru/render.cpp +++ b/rogueviz/ru/render.cpp @@ -247,10 +247,13 @@ void man::draw() { if(t < 50) { auto af = attack_facing * (1 - t * 0.01); auto ds = dsiz(); + auto col = find_power("dagger").get_color(); + auto& alpha = part(col, 0); + alpha = max (0, alpha - 5 * t); asciiletter( where.x + af * ds.x - ds.x/2, where.y - ds.y/2, where.x + af * ds.x + ds.x/2, where.y + ds.y/2, - attack_facing == -1 ? "(" : ")", 0xFFFFFF00 + (255 - t * 5) + attack_facing == -1 ? "(" : ")", col ); } }