]> granicus.if.org Git - nethack/commitdiff
#tipping empty bag of tricks bit (trunk only)
authornethack.rankin <nethack.rankin>
Sun, 18 Feb 2007 05:29:21 +0000 (05:29 +0000)
committernethack.rankin <nethack.rankin>
Sun, 18 Feb 2007 05:29:21 +0000 (05:29 +0000)
     Check in something from a month ago before I manage to lose it.

src/makemon.c

index dfdbfd45ed4d364a95ff520b26fd31063aec6fda..b3f1f6f2a1ee7f01e55b95e028bf94f6fd8f723a 100644 (file)
@@ -1,4 +1,4 @@
-/*     SCCS Id: @(#)makemon.c  3.5     2006/12/15      */
+/*     SCCS Id: @(#)makemon.c  3.5     2007/01/19      */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -1831,7 +1831,8 @@ int *seencount;   /* secondary output */
     if (!bag || bag->otyp != BAG_OF_TRICKS) {
        impossible("bad bag o' tricks");
     } else if (bag->spe < 1) {
-       pline(nothing_happens);
+       /* if tipping known empty bag, give normal empty container message */
+       pline((tipping && bag->cknown) ? "It's empty." : nothing_happens);
        /* now known to be empty if sufficiently discovered */
        if (bag->dknown && objects[bag->otyp].oc_name_known) bag->cknown = 1;
     } else {