]> granicus.if.org Git - nethack/commitdiff
B13001 mild buzz
authornethack.allison <nethack.allison>
Thu, 3 Oct 2002 00:44:16 +0000 (00:44 +0000)
committernethack.allison <nethack.allison>
Thu, 3 Oct 2002 00:44:16 +0000 (00:44 +0000)
feel a mild buzz only if energy or maxenergy increased

src/eat.c

index fcf857c852ed2453380d81ee7d7422d1596d6ffd..6ac56f807b27783ff82ef39c4ffd8f94c1131f10 100644 (file)
--- a/src/eat.c
+++ b/src/eat.c
@@ -779,13 +779,16 @@ register int pm;
            case PM_NEWT:
                /* MRKR: "eye of newt" may give small magical energy boost */
                if (rn2(3) || 3 * u.uen <= 2 * u.uenmax) {
-                   You_feel("a mild buzz.");
+                   int old_uen = u.uen;
                    u.uen += rnd(3);
                    if (u.uen > u.uenmax) {
                        if (!rn2(3)) u.uenmax++;
                        u.uen = u.uenmax;
                    }
-                   flags.botl = 1;
+                   if (old_uen != u.uen) {
+                           You_feel("a mild buzz.");
+                           flags.botl = 1;
+                   }
                }
                break;
            case PM_WRAITH: