1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-31 17:39:03 +00:00

ru:: attack effects now use the correct weapon for gfx

This commit is contained in:
Zeno Rogue
2025-12-22 14:28:46 +01:00
parent e83efe35fa
commit 0eba87676e

View File

@@ -252,7 +252,7 @@ void man::draw() {
for(auto& e: effects) {
ld t = gframeid - e.attack_when;
if(t < 50) {
auto col = find_power("dagger").get_color();
auto col = e.p->get_color();
auto& alpha = part(col, 0);
alpha = max<int> (0, alpha - 5 * t);
auto box = e.f(t);