From 537f8fb6c86ed2d1c43b4392dde0b47bebae6503 Mon Sep 17 00:00:00 2001 From: Erik Lunna Date: Thu, 26 Oct 2023 06:32:01 +0200 Subject: [PATCH] When transmogrifying or using the add property service, the same property will not ever be re-applied. You should always expect to see a different property as a result. --- src/read.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/read.c b/src/read.c index f5c761f5c..5d4269c23 100644 --- a/src/read.c +++ b/src/read.c @@ -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); @@ -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; }