v0.9.0: fixed shopkeepers buying items worth 0 gold

This commit is contained in:
Evan Debenham
2020-09-12 22:08:51 -04:00
parent 69f18e853e
commit 13f217a5d4
@@ -103,7 +103,7 @@ public class Shopkeeper extends NPC {
}
public static boolean willBuyItem( Item item ){
if (item.value() < 0) return false;
if (item.value() <= 0) return false;
if (item.unique && !item.stackable) return false;
if (item instanceof Armor && ((Armor) item).checkSeal() != null) return false;
if (item.isEquipped(Dungeon.hero) && item.cursed) return false;