From 5c5a69b7b83e0095f294499b2943f727e035f090 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 30 May 2021 14:17:24 +0200 Subject: [PATCH] shmup:: Canyon Hags work --- shmup.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/shmup.cpp b/shmup.cpp index f1cc2dca..e00e5e99 100644 --- a/shmup.cpp +++ b/shmup.cpp @@ -2457,6 +2457,14 @@ void moveMonster(monster *m, int delta) { additional.push_back(bullet); break; } + for(int i=0; iisVirtual) + 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; + } } }