Increased price of items in short supply on islands.

This commit is contained in:
Robbie Antenesse 2016-04-13 23:16:59 -06:00
parent f80775702a
commit 434d7e411e
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ pr_island.AdjustPrices = function () {
if (this.inventory[i] > 10) {
this.priceDifferences[i] = -Math.round(this.inventory[i] * Math.randomRange(1, 3));
} else if (this.inventory[i] < 5) {
this.priceDifferences[i] = Math.round(this.inventory[i] * Math.randomRange(1, 3));
this.priceDifferences[i] = Math.round((10 - this.inventory[i]) * Math.randomRange(1, 3));
} else {
this.priceDifferences[i] = 0;
}