mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 01:20:37 +00:00
ambushes on the sphere
This commit is contained in:
parent
676520a8ec
commit
1d2adc3a0a
6
game.cpp
6
game.cpp
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user