v3.2.0: fixed rare crashes when selling thrown weps to shopkeepers
This commit is contained in:
@@ -267,7 +267,7 @@ public class Shopkeeper extends NPC {
|
||||
Dungeon.gold -= returned.value();
|
||||
Statistics.goldCollected -= returned.value();
|
||||
if (returned instanceof MissileWeapon && returned.isUpgradable()){
|
||||
Dungeon.hero.buff(MissileWeapon.UpgradedSetTracker.class).levelThresholds.put(((MissileWeapon) returned).setID, returned.level());
|
||||
Buff.affect(Dungeon.hero, MissileWeapon.UpgradedSetTracker.class).levelThresholds.put(((MissileWeapon) returned).setID, returned.level());
|
||||
}
|
||||
if (!returned.doPickUp(Dungeon.hero)){
|
||||
Dungeon.level.drop(returned, Dungeon.hero.pos);
|
||||
|
||||
Reference in New Issue
Block a user