From: vultur-cadens Date: Wed, 5 Jan 2022 02:31:53 +0000 (-0800) Subject: Fix single-character engraving not dulling the weapon. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=148bde849d181534cae234a2a82c87f602da8861;p=nethack Fix single-character engraving not dulling the weapon. --- diff --git a/src/engrave.c b/src/engrave.c index 68ffa0b81..a83275323 100644 --- a/src/engrave.c +++ b/src/engrave.c @@ -1205,7 +1205,8 @@ engrave(void) if (g.context.engraving.actionct % 2 == 1) { /* 1st, 3rd, ... action */ /* deduct a point on 1st, 3rd, 5th, ... turns, unless this is the * last character being engraved (a rather convoluted way to round - * down). + * down), but always deduct a point on the 1st turn to prevent + * zero-cost engravings. * Check for truncation *before* deducting a point - otherwise, * attempting to e.g. engrave 3 characters with a -2 weapon will * stop at the 1st. */ @@ -1214,7 +1215,7 @@ engrave(void) impossible("<= -3 weapon valid for engraving"); } truncate = TRUE; - } else if (*endc) { + } else if (*endc || g.context.engraving.actionct == 1) { stylus->spe -= 1; update_inventory(); }