shmup:: Canyon Hags work

This commit is contained in:
Zeno Rogue 2021-05-30 14:17:24 +02:00
parent ab92209778
commit 5c5a69b7b8
1 changed files with 8 additions and 0 deletions

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;
}
}
}