1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 01:00:25 +00:00

rollback Hunting Dog

This commit is contained in:
Zeno Rogue 2020-03-05 22:34:06 +01:00
parent c590532d3a
commit 8e0c066e33

View File

@ -2035,7 +2035,6 @@ EX void giantLandSwitch(cell *c, int d, cell *from) {
cellwalker cw1 = ci + bonus + wstep + revstep;
if(cw0.at->mpdist > 7)
if(cw1.at->mpdist > 7)
if(!next->monst || next->monst == moHunterGuard)
next.emplace_back(cw0.at, cw1.at);
}
if(isize(next)) {
@ -2052,7 +2051,7 @@ EX void giantLandSwitch(cell *c, int d, cell *from) {
c->item = itHunting;
cell *c3 = next[hrand(isize(next))];
vector<cell*> dogcells;
forCellEx(c4, c3) if(c4->mpdist > 7 && !isNeighbor(c4, c) && (c4->monst ==moHunterGuard || !c4->monst))
forCellEx(c4, c3) if(c4->mpdist > 7 && !isNeighbor(c4, c))
dogcells.push_back(c4);
if(items[itHunting] < 10 && isize(dogcells) >= 2) {
for(int t=0;; t++) {
@ -2079,7 +2078,7 @@ EX void giantLandSwitch(cell *c, int d, cell *from) {
else placeLocalSpecial(c, 10);
}
}
if(hrand_monster(5000) < items[itHunting]- 17 + yendor::hardness() && !c->monst)
if(hrand_monster(5000) < items[itHunting]- 17 + yendor::hardness())
c->monst = moHunterDog;
}
break;