1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-14 05:57:37 +00:00

first version of the Land of Dice

This commit is contained in:
Zeno Rogue
2021-05-27 13:00:20 +02:00
parent b879682d82
commit 6a6ed4ea0d
11 changed files with 330 additions and 98 deletions

View File

@@ -2586,16 +2586,8 @@ EX void giantLandSwitch(cell *c, int d, cell *from) {
}
case laDice: {
if(fargen) {
int pct = hrand(100);
if(pct < 10)
c->wall = waDie;
// c->wall = pick(waNone, waNone, waStone, waNone, waNone, waStone, waNone, waNone, waStone, waBigStatue, waCrateCrate, waDie);
if(c->wall == waDie) {
if(ctof(c)) c->wall = waNone;
else dice::generate_on(c);
}
}
if(fargen && !ctof(c))
dice::generate_full(c, items[itDice] + yendor::hardness());
break;
}