1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-25 10:57:59 +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

@@ -1954,7 +1954,8 @@ void giantLandSwitch(cell *c, int d, cell *from) {
break;
case laMinefield:
if(d == 7) {
if(d == 7 && bounded) c->wall = waMineUnknown;
else if(d == 7) {
c->wall = waMineUnknown;
// 250: rare mines
// 1250: at 25
@@ -1985,7 +1986,7 @@ void giantLandSwitch(cell *c, int d, cell *from) {
c->monst = moBomberbird;
else placeLocalSpecial(c, 500);
}
if(d == 3 && safety && (c->wall == waMineMine || c->wall == waMineUnknown))
if(d == 3 && safety && (c->wall == waMineMine || c->wall == waMineUnknown) && !bounded)
c->wall = waMineOpen;
break;