]> granicus.if.org Git - nethack/commitdiff
This adds <Someone> patch for enlightenment to show increase damage and
authorarromdee <arromdee>
Tue, 15 Jan 2002 03:26:09 +0000 (03:26 +0000)
committerarromdee <arromdee>
Tue, 15 Jan 2002 03:26:09 +0000 (03:26 +0000)
accuracy (only on death).  It's one of the 'insufficient discussion' patches,
but I doubt anyone will object to it.

src/cmd.c

index c82920a0bf528b7787a0cd68f11191b6962c1f41..3b1862a61adae8409491d955c465408b8863fe0d 100644 (file)
--- 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");