mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-09 13:56:00 +00:00
bounded Minefield now works according to the standard Minesweeper rules
This commit is contained in:
@@ -304,6 +304,13 @@ eItem wanderingTreasure(cell *c) {
|
||||
}
|
||||
|
||||
void wandering() {
|
||||
if(bounded && specialland == laMinefield) {
|
||||
kills[moBomberbird] = 0;
|
||||
kills[moTameBomberbird] = 0;
|
||||
for(cell *c: currentmap->allcells()) if(c->wall == waMineUnknown) kills[moBomberbird]++;
|
||||
for(cell *c: currentmap->allcells()) if(among(c->wall, waMineMine, waMineUnknown) && mineMarked(c)) kills[moTameBomberbird]++;
|
||||
return;
|
||||
}
|
||||
if(!canmove) return;
|
||||
if(!gen_wandering) return;
|
||||
if(racing::on) return;
|
||||
|
Reference in New Issue
Block a user