B13001 mild buzz

feel a mild buzz only if energy or maxenergy increased
This commit is contained in:
nethack.allison
2002-10-03 00:44:16 +00:00
parent 075425a9ac
commit 4430f8f652

View File

@@ -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: