1
0
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:
Zeno Rogue
2019-04-04 14:36:45 +02:00
parent e61c684bca
commit 57f2891826
8 changed files with 52 additions and 2 deletions

View File

@@ -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;