]> granicus.if.org Git - nethack/commitdiff
'fix' #K3716 - engraving with Fire Brand
authorPatR <rankin@nethack.org>
Thu, 22 Sep 2022 23:09:22 +0000 (16:09 -0700)
committerPatR <rankin@nethack.org>
Thu, 22 Sep 2022 23:09:22 +0000 (16:09 -0700)
Add a comment to the effect that engraving with Fire Brand doesn't
cause it to become dull.

[I'm not sure that is the behavior we really want.  It seems like an
unintended side-effect of changing Fire Brand's engrave type to BURN.]

src/engrave.c

index b76ed91b825b318ec4960fda120c8f30b6f24f4e..9232050c506d0a237d00bd4ce0193c930627fa4c 100644 (file)
@@ -842,9 +842,9 @@ doengrave(void)
         break;
 
     case WEAPON_CLASS:
-        if (is_art(otmp, ART_FIRE_BRAND))
-            type = BURN;
-        else if (is_blade(otmp)) {
+        if (is_art(otmp, ART_FIRE_BRAND)) {
+            type = BURN; /* doesn't dull weapon */
+        else if (is_blade(otmp)) {
             if ((int) otmp->spe > -3)
                 type = ENGRAVE;
             else
@@ -1140,7 +1140,7 @@ engrave(void)
                        || g.context.engraving.type == HEADSTONE);
     boolean dulling_wep, marker;
     char *endc; /* points at character 1 beyond the last character to engrave
-                   this action */
+                 * this action */
     int i, space_left;
 
     if (g.context.engraving.pos.x != u.ux
@@ -1387,7 +1387,11 @@ DISABLE_WARNING_FORMAT_NONLITERAL
 
 /* to support '#stats' wizard-mode command */
 void
-engr_stats(const char *hdrfmt, char *hdrbuf, long *count, long *size)
+engr_stats(
+    const char *hdrfmt,
+    char *hdrbuf,
+    long *count,
+    long *size)
 {
     struct engr *ep;