mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-03-13 23:18:16 +00:00
Mutant Ivy regrow
This commit is contained in:
parent
b53b98f0d5
commit
9fe2622043
@ -348,6 +348,7 @@ EX void bfs() {
|
||||
if(c2->land == laWhirlwind) havewhat |= HF_WHIRLWIND;
|
||||
if(c2->land == laWestWall) havewhat |= HF_WESTWALL;
|
||||
if(c2->land == laPrairie) havewhat |= HF_RIVER;
|
||||
if(c2->land == laClearing) havewhat |= HF_MUTANT;
|
||||
|
||||
if(c2->wall == waRose) havewhat |= HF_ROSE;
|
||||
|
||||
|
@ -1333,8 +1333,18 @@ EX void movehex_rest(bool mounted) {
|
||||
}
|
||||
|
||||
EX void movemutant() {
|
||||
manual_celllister mcells;
|
||||
for(cell *c: currentmap->allcells()) mcells.add(c);
|
||||
if(!bounded)
|
||||
for(int i=0; i<isize(mcells.lst); i++) {
|
||||
cell *c = mcells.lst[i];
|
||||
if(c->land == laClearing && c->monst != moMutant && !pseudohept(c))
|
||||
forCellEx(c2, c) forCellEx(c3, c2) if(celldistAlt(c3) < celldistAlt(c))
|
||||
mcells.add(c3);
|
||||
}
|
||||
|
||||
vector<cell*> young;
|
||||
for(cell *c: currentmap->allcells())
|
||||
for(cell *c: mcells.lst)
|
||||
if(c->monst == moMutant && c->stuntime == mutantphase)
|
||||
young.push_back(c);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user