wand engraving bit (trunk only)

Readability tweak; use `WAND_BACKFIRE_CHANCE'.  This code for giving
cursed wand a chance to explode when engraving is in the branch too, but
the macro wasn't added there.
This commit is contained in:
nethack.rankin
2008-03-07 03:01:51 +00:00
parent 6e07a2ffe1
commit ba0d55ce54

View File

@@ -613,7 +613,7 @@ doengrave()
case WAND_CLASS:
if (zappable(otmp)) {
check_unpaid(otmp);
if (otmp->cursed && !rn2(100)) { /* same as when zapping */
if (otmp->cursed && !rn2(WAND_BACKFIRE_CHANCE)) {
wand_explode(otmp, 0);
return 1;
}