forked from 0ad/0ad
parent
8efc3b0241
commit
ac925ed1b6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user