Skip to content

Commit

Permalink
wand engraving bit (trunk only)
Browse files Browse the repository at this point in the history
     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.
  • Loading branch information
nethack.rankin committed Mar 7, 2008
1 parent 6e07a2f commit ba0d55c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engrave.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ba0d55c

Please sign in to comment.