Skip to content

Commit

Permalink
When transmogrifying or using the add property service, the same prop…
Browse files Browse the repository at this point in the history
…erty will not ever be re-applied. You should always expect to see a different property as a result.
  • Loading branch information
elunna committed Oct 26, 2023
1 parent c9875d7 commit 537f8fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/read.c
Original file line number Diff line number Diff line change
Expand Up @@ -4307,6 +4307,7 @@ handle_new_property(otmp)
struct obj *otmp;
{
long old_wornmask = otmp->owornmask;
long old_oprops = otmp->oprops;
boolean was_twoweap = u.twoweap;

remove_worn_item(otmp, FALSE);
Expand All @@ -4316,7 +4317,7 @@ struct obj *otmp;
/* Do our best to add a property. */
for (int i = 0; i < 1000; i++) {
create_oprop(otmp, TRUE);
if (otmp->oprops)
if (otmp->oprops && otmp->oprops != old_oprops)
break;
}

Expand Down

0 comments on commit 537f8fb

Please sign in to comment.