From 1cc79b71567f5f05bc0b67df73c821a143a5a899 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Fri, 25 Feb 2022 16:42:08 +0200 Subject: [PATCH] Wizard-mode wishing for (melting) ice --- doc/fixes3-7-0.txt | 3 ++- src/objnam.c | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index efb0f3bb4..6e197ab7b 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -1327,7 +1327,8 @@ when hallucinating, see hallucinated liquids when looking at water or lava 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), hidden corridor - spots ("secret corridor" at a corridor location), clouds and walls + spots ("secret corridor" at a corridor location), clouds, walls, + and (melting) ice 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 9e093bc64..d342fff05 100644 --- a/src/objnam.c +++ b/src/objnam.c @@ -3198,6 +3198,16 @@ wizterrainwish(struct _readobjnam_data *d) if (!(Levitation || Flying)) pooleffects(FALSE); madeterrain = TRUE; + } else if (!BSTRCMPI(bp, p - 3, "ice")) { + lev->typ = ICE; + lev->flags = 0; + del_engr_at(x, y); + + if (!strncmpi(bp, "melting ", 8)) + start_melt_ice_timeout(x, y, 0L); + + pline("Ice."); + madeterrain = TRUE; } else if (!BSTRCMPI(bp, p - 5, "altar")) { aligntyp al; -- 2.50.1