v0.9.0: fixed shopkeepers buying items worth 0 gold
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user