'fix' #K3716 - engraving with Fire Brand
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.]
This commit is contained in:
+9
-5
@@ -842,9 +842,9 @@ doengrave(void)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case WEAPON_CLASS:
|
case WEAPON_CLASS:
|
||||||
if (is_art(otmp, ART_FIRE_BRAND))
|
if (is_art(otmp, ART_FIRE_BRAND)) {
|
||||||
type = BURN;
|
type = BURN; /* doesn't dull weapon */
|
||||||
else if (is_blade(otmp)) {
|
} else if (is_blade(otmp)) {
|
||||||
if ((int) otmp->spe > -3)
|
if ((int) otmp->spe > -3)
|
||||||
type = ENGRAVE;
|
type = ENGRAVE;
|
||||||
else
|
else
|
||||||
@@ -1140,7 +1140,7 @@ engrave(void)
|
|||||||
|| g.context.engraving.type == HEADSTONE);
|
|| g.context.engraving.type == HEADSTONE);
|
||||||
boolean dulling_wep, marker;
|
boolean dulling_wep, marker;
|
||||||
char *endc; /* points at character 1 beyond the last character to engrave
|
char *endc; /* points at character 1 beyond the last character to engrave
|
||||||
this action */
|
* this action */
|
||||||
int i, space_left;
|
int i, space_left;
|
||||||
|
|
||||||
if (g.context.engraving.pos.x != u.ux
|
if (g.context.engraving.pos.x != u.ux
|
||||||
@@ -1387,7 +1387,11 @@ DISABLE_WARNING_FORMAT_NONLITERAL
|
|||||||
|
|
||||||
/* to support '#stats' wizard-mode command */
|
/* to support '#stats' wizard-mode command */
|
||||||
void
|
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;
|
struct engr *ep;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user