v3.2.0: transmuting a thrown set no longer repairs it

This commit is contained in:
Evan Debenham
2025-07-28 12:55:30 -04:00
parent 5c3fc8c9e9
commit dd328bc259

View File

@@ -262,6 +262,8 @@ public class ScrollOfTransmutation extends InventoryScroll {
//technically a new set, ensure old one is destroyed (except for darts) //technically a new set, ensure old one is destroyed (except for darts)
if (w instanceof MissileWeapon && w.isUpgradable()){ if (w instanceof MissileWeapon && w.isUpgradable()){
Buff.affect(Dungeon.hero, MissileWeapon.UpgradedSetTracker.class).levelThresholds.put(((MissileWeapon) w).setID, Integer.MAX_VALUE); Buff.affect(Dungeon.hero, MissileWeapon.UpgradedSetTracker.class).levelThresholds.put(((MissileWeapon) w).setID, Integer.MAX_VALUE);
//also extra missile weapon properties
((MissileWeapon) n).damage(100 - ((MissileWeapon)w).durabilityLeft());
} }
return n; return n;