Skip to content

Commit

Permalink
Potions of amnesia can remove properties.
Browse files Browse the repository at this point in the history
When not the players fault, this is the same as losing the fixed(erodeproof) status - 1 in 13. If you purposefully dip an object with a property into a potion of amnesia, it will always remove it. So you can use it to remove possibly harmful properties.
  • Loading branch information
elunna committed Sep 27, 2023
1 parent 27da814 commit 1a7e33f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/potion.c
Original file line number Diff line number Diff line change
Expand Up @@ -3104,6 +3104,12 @@ boolean ourfault;
targobj->oerodeproof = FALSE;
}

/* !ofAmnesia might strip away properties... */
if (targobj->oprops && (!rn2(13) || ourfault)) {
pre_downgrade_obj(targobj, &used);
targobj->oprops = 0;
}

if (targobj->cursed || targobj->blessed) {
if (targobj->blessed || targobj->otyp == POT_WATER)
pre_downgrade_obj(targobj, &used);
Expand Down

0 comments on commit 1a7e33f

Please sign in to comment.