wishing for water terrain
Allow a wizard mode wish for "wall of water" to create WATER terrain. Previously there was no way to do that. Wishing for "pool" and "moat" work but "water" for terrain isn't supported because it yields a potion.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.7 do_name.c $NHDT-Date: 1625885761 2021/07/10 02:56:01 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.213 $ */
|
||||
/* NetHack 3.7 do_name.c $NHDT-Date: 1644347168 2022/02/08 19:06:08 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.231 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Pasi Kallinen, 2018. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -2341,7 +2341,9 @@ const char *
|
||||
hliquid(
|
||||
const char *liquidpref) /* use as-is when not hallucintg (unless empty) */
|
||||
{
|
||||
if (Hallucination || !liquidpref || !*liquidpref) {
|
||||
boolean hallucinate = Hallucination && !g.program_state.gameover;
|
||||
|
||||
if (hallucinate || !liquidpref || !*liquidpref) {
|
||||
int indx, count = SIZE(hliquids);
|
||||
|
||||
/* if we have a non-hallucinatory default value, include it
|
||||
|
||||
Reference in New Issue
Block a user