From: Pasi Kallinen Date: Sun, 26 Jan 2020 12:05:11 +0000 (+0200) Subject: Allow wizmode wishing for cloud terrain X-Git-Tag: NetHack-3.7.0_WIP~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae843bc10a5c8310534aa0dc6958273c0b30160d;p=nethack Allow wizmode wishing for cloud terrain --- diff --git a/doc/fixes37.0 b/doc/fixes37.0 index 0ab5454a3..fe3a7688e 100644 --- a/doc/fixes37.0 +++ b/doc/fixes37.0 @@ -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 diff --git a/src/objnam.c b/src/objnam.c index b2897c906..7da3e4982 100644 --- a/src/objnam.c +++ b/src/objnam.c @@ -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)) {