mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	Mutant Ivy regrow
This commit is contained in:
		| @@ -348,6 +348,7 @@ EX void bfs() { | |||||||
|         if(c2->land == laWhirlwind) havewhat |= HF_WHIRLWIND; |         if(c2->land == laWhirlwind) havewhat |= HF_WHIRLWIND; | ||||||
|         if(c2->land == laWestWall) havewhat |= HF_WESTWALL; |         if(c2->land == laWestWall) havewhat |= HF_WESTWALL; | ||||||
|         if(c2->land == laPrairie) havewhat |= HF_RIVER; |         if(c2->land == laPrairie) havewhat |= HF_RIVER; | ||||||
|  |         if(c2->land == laClearing) havewhat |= HF_MUTANT; | ||||||
|  |  | ||||||
|         if(c2->wall == waRose) havewhat |= HF_ROSE; |         if(c2->wall == waRose) havewhat |= HF_ROSE; | ||||||
|          |          | ||||||
|   | |||||||
| @@ -1333,8 +1333,18 @@ EX void movehex_rest(bool mounted) { | |||||||
|   } |   } | ||||||
|  |  | ||||||
| EX void movemutant() { | 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; |   vector<cell*> young; | ||||||
|   for(cell *c: currentmap->allcells()) |   for(cell *c: mcells.lst) | ||||||
|     if(c->monst == moMutant && c->stuntime == mutantphase) |     if(c->monst == moMutant && c->stuntime == mutantphase) | ||||||
|       young.push_back(c); |       young.push_back(c); | ||||||
|    |    | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue