wizard mode terrain wishing at drawbridge spot
When trying to reproduce the wand of striking "interesting effect (0)" report, I tried wishing for lava under the castle drawbridge. That wasn't handling drawbridges properly. This fixes wishing for moat, lava, ice, or floor at a drawbridge span location whether the bridge is currently open of closed. It also allows wishing for room or floor or ground at room spots; that hasn't had much testing. Wishing for furniture, pool|moat|water, or lava at an ice location wasn't cancelling any pending melt timer. ice_descr() was declared as returning const but returns its non-const output buffer argument. Change to 'char *' so that wizterrainwish() can capitilize that output without jumping through any hoops.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.7 pager.c $NHDT-Date: 1698264788 2023/10/25 20:13:08 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.252 $ */
|
||||
/* NetHack 3.7 pager.c $NHDT-Date: 1702349268 2023/12/12 02:47:48 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.266 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Robert Patrick Rankin, 2018. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -532,7 +532,7 @@ waterbody_name(coordxy x, coordxy y)
|
||||
return "water"; /* don't hallucinate this as some other liquid */
|
||||
}
|
||||
|
||||
const char *
|
||||
char *
|
||||
ice_descr(coordxy x, coordxy y, char *outbuf)
|
||||
{
|
||||
static const char *const icetyp[] = {
|
||||
|
||||
Reference in New Issue
Block a user