ambushes on the sphere

This commit is contained in:
Zeno Rogue 2017-11-03 21:50:31 +01:00
parent 676520a8ec
commit 1d2adc3a0a
1 changed files with 6 additions and 0 deletions

View File

@ -6192,6 +6192,12 @@ void ambush(cell *c, eItem what) {
cx->monst = moHunterDog;
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;
cell *clast = NULL;
cell *ccur = c0;