Wizard-mode wishing for (melting) ice

This commit is contained in:
Pasi Kallinen
2022-02-25 16:42:08 +02:00
parent cb5ca657ed
commit 1cc79b7156
2 changed files with 12 additions and 1 deletions

View File

@@ -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

View File

@@ -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;