v3.2.0: transmuting a thrown set no longer repairs it
This commit is contained in:
@@ -262,6 +262,8 @@ public class ScrollOfTransmutation extends InventoryScroll {
|
||||
//technically a new set, ensure old one is destroyed (except for darts)
|
||||
if (w instanceof MissileWeapon && w.isUpgradable()){
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user