mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 09:43:54 +01:00
Merge pull request #179 from danielyxie/dev
Fixed a serious bug with Corporation profit (forgot to multiple by se…
This commit is contained in:
commit
2ca7439ff2
4
dist/bundle.js
vendored
4
dist/bundle.js
vendored
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user