1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-18 15:00:26 +00:00

shmup:: Canyon Hags work

This commit is contained in:
Zeno Rogue 2021-05-30 14:17:24 +02:00
parent ab92209778
commit 5c5a69b7b8

View File

@ -2457,6 +2457,14 @@ void moveMonster(monster *m, int delta) {
additional.push_back(bullet);
break;
}
for(int i=0; i<players; i++) if(!pc[i]->isVirtual)
if(m->type == moHexer && m->base->item && (classflag(m->base->item) & IF_CURSE) && sqdist(m->pat*C0, pc[i]->pat*C0) < SCALE2 * 2) {
addMessage(XLAT("%The1 curses you with %the2!", m->type, m->base->item));
items[m->base->item] += orbcharges(m->base->item);
m->base->item = itNone;
m->stunoff = curtime + 250;
break;
}
}
}