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

ambushes on the sphere

This commit is contained in:
Zeno Rogue 2017-11-03 21:50:31 +01:00
parent 676520a8ec
commit 1d2adc3a0a

View File

@ -6192,6 +6192,12 @@ void ambush(cell *c, eItem what) {
cx->monst = moHunterDog; cx->monst = moHunterDog;
if(dh > d) c0 = cx, d = dh; if(dh > d) c0 = cx, d = dh;
} }
if(sphere) {
int dogs = ambushSize(c, what);
for(int i = cl.lst.size()-1; i>0 && dogs; i--)
if(!isPlayerOn(cl.lst[i]) && !cl.lst[i]->monst)
cl.lst[i]->monst = moHunterDog, dogs--;
}
vector<cell*> around; vector<cell*> around;
cell *clast = NULL; cell *clast = NULL;
cell *ccur = c0; cell *ccur = c0;