1
0
forked from 0ad/0ad

add some missing semicolon from b88f63b699

This was SVN commit r18109.
This commit is contained in:
mimo 2016-04-29 19:56:58 +00:00
parent b88f63b699
commit d420717eba
3 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ Market.prototype.RemoveTrader = function(ent)
Market.prototype.GetInternationalBonus = function()
{
return ApplyValueModificationsToEntity("Market/InternationalBonus", +this.template.InternationalBonus, this.entity);
}
};
Market.prototype.HasType = function(type)
{

View File

@ -135,7 +135,7 @@ Trader.prototype.GetSecondMarket = function()
Trader.prototype.GetTraderGainMultiplier = function()
{
return ApplyValueModificationsToEntity("Trader/GainMultiplier", +this.template.GainMultiplier, this.entity);
}
};
Trader.prototype.HasBothMarkets = function()
{

View File

@ -40,7 +40,7 @@ function CalculateTraderGain(firstMarket, secondMarket, traderTemplate, trader)
let distanceSq = firstMarketPosition.distanceToSquared(secondMarketPosition);
// We calculate gain as square of distance to encourage trading between remote markets
// and gainMultiplier corresponds to the gain for a 100m distance
gain.traderGain = distanceSq * gainMultiplier / 10000;
gain.traderGain = gainMultiplier * distanceSq / 10000;
gain.market1Owner = cmpMarket1Player.GetPlayerID();
gain.market2Owner = cmpMarket2Player.GetPlayerID();