From 8ec44f77b0540e889a083f3b215dd9d893454c3a Mon Sep 17 00:00:00 2001 From: "nethack.rankin" Date: Sun, 7 Jan 2007 05:22:31 +0000 Subject: [PATCH] wizard mode bit Wishing for a grave would say it made one even when it didn't. [How come graves aren't allowed at corridor locations?] --- src/objnam.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/objnam.c b/src/objnam.c index c56b4930e..7b93aa32e 100644 --- a/src/objnam.c +++ b/src/objnam.c @@ -1,4 +1,4 @@ -/* SCCS Id: @(#)objnam.c 3.5 2006/11/25 */ +/* SCCS Id: @(#)objnam.c 3.5 2007/01/06 */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* NetHack may be freely redistributed. See license for details. */ @@ -2784,7 +2784,8 @@ srch: if(!BSTRCMP(bp, p-5, "grave") || !BSTRCMP(bp, p-9, "headstone")) { make_grave(u.ux, u.uy, (char *) 0); - pline("A grave."); + pline("%s.", IS_GRAVE(levl[u.ux][u.uy].typ) ? "A grave" : + "Can't place a grave here"); newsym(u.ux, u.uy); return(&zeroobj); }