diff --git a/dist/bundle.js b/dist/bundle.js index e81938346..89d28425e 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -41917,7 +41917,9 @@ Corporation.prototype.process = function(numCycles=1) { this.revenue = this.revenue.plus(ind.lastCycleRevenue); this.expenses = this.expenses.plus(ind.lastCycleExpenses); }); - this.funds = this.funds.plus(this.revenue.minus(this.expenses)); + var profit = this.revenue.minus(this.expenses); + var cycleProfit = profit.times(marketCycles * SecsPerMarketCycle); + this.funds = this.funds.plus(cycleProfit); this.updateSharePrice(); } this.state.nextState(); diff --git a/src/CompanyManagement.js b/src/CompanyManagement.js index 8b15ba94c..ef5430b20 100644 --- a/src/CompanyManagement.js +++ b/src/CompanyManagement.js @@ -2630,7 +2630,9 @@ Corporation.prototype.process = function(numCycles=1) { this.revenue = this.revenue.plus(ind.lastCycleRevenue); this.expenses = this.expenses.plus(ind.lastCycleExpenses); }); - this.funds = this.funds.plus(this.revenue.minus(this.expenses)); + var profit = this.revenue.minus(this.expenses); + var cycleProfit = profit.times(marketCycles * SecsPerMarketCycle); + this.funds = this.funds.plus(cycleProfit); this.updateSharePrice(); } this.state.nextState();