This was SVN commit r15259.
This commit is contained in:
mimo 2014-06-01 12:49:34 +00:00
parent 8efc3b0241
commit ac925ed1b6

View File

@ -292,8 +292,8 @@ m.TradeManager.prototype.performBarter = function(gameState)
if (buy === "food")
continue;
var barterRateMin = 80;
if (available["buy"] < 5000 && available["food"] > 5000)
barterRateMin -= (20 - Math.floor(available["buy"]/250));
if (available[buy] < 5000 && available["food"] > 5000)
barterRateMin -= (20 - Math.floor(available[buy]/250));
var barterRate = getBarterRate(prices, buy, "food");
if (barterRate < barterRateMin)
continue;