Fixed company bug in v0.34.5

This commit is contained in:
danielyxie 2018-02-24 20:10:24 -06:00
parent 779ce25ae5
commit 0e6ef8b83f
2 changed files with 2 additions and 2 deletions

2
dist/bundle.js vendored

@ -41143,7 +41143,7 @@ Industry.prototype.processProduct = function(marketCycles=1, product, corporatio
//var businessFactor = 1 + (office.employeeProd[EmployeePositions.Business] / office.employeeProd["total"]);
var businessFactor = this.getBusinessFactor(office); //Business employee productivity
var advertisingFactor = this.getAdvertisingFactors()[0]; //Awareness + popularity
var getMarketFactor = this.getMarketFactor(product); //Competition + demand
var marketFactor = this.getMarketFactor(product); //Competition + demand
var maxSell = Math.pow(product.rat, 0.9) * marketFactor * corporation.getSalesMultiplier() *
markup * businessFactor * advertisingFactor;
var sellAmt;

@ -1372,7 +1372,7 @@ Industry.prototype.processProduct = function(marketCycles=1, product, corporatio
//var businessFactor = 1 + (office.employeeProd[EmployeePositions.Business] / office.employeeProd["total"]);
var businessFactor = this.getBusinessFactor(office); //Business employee productivity
var advertisingFactor = this.getAdvertisingFactors()[0]; //Awareness + popularity
var getMarketFactor = this.getMarketFactor(product); //Competition + demand
var marketFactor = this.getMarketFactor(product); //Competition + demand
var maxSell = Math.pow(product.rat, 0.9) * marketFactor * corporation.getSalesMultiplier() *
markup * businessFactor * advertisingFactor;
var sellAmt;