Fixed shops.. again

This commit is contained in:
dginovker
2019-10-04 16:56:36 -04:00
parent 61a0fc7f2b
commit d737aa398b
6 changed files with 22 additions and 0 deletions
@@ -113,6 +113,7 @@ public class ShopAssistant {
for (int i = 0; i < Constants.ITEM_LIMIT; i++) {
if (ItemDefinitions.getDef()[i] != null) {
ShopValue = ItemDefinitions.getDef()[ItemID].highAlch/3.0 *5.0 * sellingRatio;
ShopValue = ShopValue <= 0 ? 1 : ShopValue; //Don't let the value be 0
}
}