From: arromdee Date: Tue, 15 Jan 2002 03:26:09 +0000 (+0000) Subject: This adds patch for enlightenment to show increase damage and X-Git-Tag: MOVE2GIT~3473 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6bfebccbedf1bb634db41a1e12805d77e529a3e9;p=nethack This adds patch for enlightenment to show increase damage and accuracy (only on death). It's one of the 'insufficient discussion' patches, but I doubt anyone will object to it. --- diff --git a/src/cmd.c b/src/cmd.c index c82920a0b..3b1862a61 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -773,6 +773,18 @@ int final; /* 0 => still in progress; 1 => over, survived; 2 => dead */ if (u.usick_type & SICK_NONVOMITABLE) you_are("sick from illness"); } + /* added by JDS */ + if (u.uhitinc) { + Sprintf(buf, "%s%i %s to hit", u.uhitinc > 0 ? "+" : "", + u.uhitinc, u.uhitinc > 0 ? "bonus" : "penalty"); + you_have(buf); + + } + if (u.udaminc) { + Sprintf(buf, "%s%i %s to damage", u.udaminc > 0 ? "+" : "", + u.udaminc, u.udaminc > 0 ? "bonus" : "penalty"); + you_have(buf); + } /* end JDS portion */ } if (Stoned) you_are("turning to stone"); if (Slimed) you_are("turning into slime");