enabling Halloween in infinite geometries now produces something that makes sense

This commit is contained in:
Zeno Rogue 2024-03-14 19:34:51 +01:00
parent 26e61783b2
commit 9cc370a2d2
2 changed files with 8 additions and 0 deletions

View File

@ -1308,6 +1308,12 @@ EX void giantLandSwitch(cell *c, int d, cell *from) {
break;
case laHalloween:
if(!closed_or_bounded) {
ONEMPTY {
if(hrand(1000) < PT(20, 20)) c->item = itTreat;
if(hrand(1000) < 20) c->wall = waChasm;
}
}
break;
case laWildWest:

View File

@ -562,6 +562,8 @@ EX eLand getNewLand(eLand old) {
tab[cnt++] = laDocks;
}
tab[cnt++] = laHalloween;
// the advanced lands
if(all_unlocked || gold() >= R60) {
tab[cnt++] = laCrossroads;