v3.0.0: unique artifacts can no longer be transmuted

This commit is contained in:
Evan Debenham
2025-01-02 15:00:31 -05:00
parent 2ba4495512
commit 296d8c8466

View File

@@ -80,14 +80,17 @@ public class ScrollOfTransmutation extends InventoryScroll {
return !(item instanceof Elixir || item instanceof Brew);
//all regular or exotic scrolls, except itself (unless un-ided, in which case it was already consumed)
} else if (item instanceof Scroll){
} else if (item instanceof Scroll) {
return item != this || item.quantity() > 1 || identifiedByUse;
//all rings, wands, artifacts, trinkets, seeds, and runestones
//all non-unique artifacts (no holy tome or cloak of shadows, basically)
} else if (item instanceof Artifact) {
return !item.unique;
//all rings, wands, trinkets, seeds, and runestones
} else {
return item instanceof Ring || item instanceof Wand || item instanceof Artifact
|| item instanceof Trinket || item instanceof Plant.Seed
|| item instanceof Runestone;
return item instanceof Ring || item instanceof Wand || item instanceof Trinket
|| item instanceof Plant.Seed || item instanceof Runestone;
}
}