mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-27 20:07:40 +00:00
monster added: Hag
This commit is contained in:
@@ -1874,6 +1874,28 @@ EX void specialMoves() {
|
||||
if(shot || dont_approach) c->stuntime = 1;
|
||||
}
|
||||
|
||||
else if(m == moHexer && c->item && (classflag(c->item) & IF_CURSE) && !peace::on) {
|
||||
bool shot = false;
|
||||
// bool dont_approach = false;
|
||||
// smaller range on the sphere
|
||||
int firerange = (sphere || getDistLimit() < 5) ? 2 : 4;
|
||||
|
||||
bool dont_approach;
|
||||
for(int i=0; i<isize(targets); i++) {
|
||||
cell *t = targets[i];
|
||||
|
||||
if(isPlayerOn(t) && celldistance(c,t) <= firerange) {
|
||||
addMessage(XLAT("%The1 curses you!", m));
|
||||
items[c->item] += orbcharges(c->item);
|
||||
c->item = itNone;
|
||||
c->stuntime = 1;
|
||||
}
|
||||
if(celldistance(c,t) == firerange+1) dont_approach = true;
|
||||
}
|
||||
|
||||
if(dont_approach) c->stuntime = 1;
|
||||
}
|
||||
|
||||
else if(m == moVampire) {
|
||||
for(int i=0; i<isize(targets); i++) {
|
||||
cell *t = targets[i];
|
||||
|
||||
Reference in New Issue
Block a user