Allow wizmode wishing for cloud terrain

This commit is contained in:
Pasi Kallinen
2020-01-26 14:05:11 +02:00
parent 206e9668f1
commit ae843bc10a
2 changed files with 6 additions and 2 deletions

View File

@@ -112,8 +112,8 @@ when hallucinating, see hallucinated liquids when looking at water or lava
on the map
applying a spellbook hints about read charges left
wizard mode wishing for level topology can now create hidden doors (ask for
"secret door" when at a door or wall location) and hidden corridor
spots ("secret corridor" at a corridor location)
"secret door" when at a door or wall location), hidden corridor
spots ("secret corridor" at a corridor location), and clouds
tiny chance for randomly created spellbooks to be Discworld novels instead
of having only one in the first book or scroll shop created (won't
occur in hero's initial inventory or NPC priest inventory or be

View File

@@ -3046,6 +3046,10 @@ int locked, trapped;
lev->typ = IRONBARS;
pline("Iron bars.");
madeterrain = TRUE;
} else if (!BSTRCMPI(bp, p - 5, "cloud")) {
lev->typ = CLOUD;
pline("A cloud.");
madeterrain = TRUE;
} else if (!BSTRCMPI(bp, p - 11, "secret door")) {
if (lev->typ == DOOR
|| (IS_WALL(lev->typ) && lev->typ != DBWALL)) {