mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43:48 +01:00
Fixed a serious bug with Corporation profit (forgot to multiple by secsperCycle
This commit is contained in:
parent
f60fe597fb
commit
be17cff29e
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.revenue = this.revenue.plus(ind.lastCycleRevenue);
|
||||||
this.expenses = this.expenses.plus(ind.lastCycleExpenses);
|
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.updateSharePrice();
|
||||||
}
|
}
|
||||||
this.state.nextState();
|
this.state.nextState();
|
||||||
|
@ -2630,7 +2630,9 @@ Corporation.prototype.process = function(numCycles=1) {
|
|||||||
this.revenue = this.revenue.plus(ind.lastCycleRevenue);
|
this.revenue = this.revenue.plus(ind.lastCycleRevenue);
|
||||||
this.expenses = this.expenses.plus(ind.lastCycleExpenses);
|
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.updateSharePrice();
|
||||||
}
|
}
|
||||||
this.state.nextState();
|
this.state.nextState();
|
||||||
|
Loading…
Reference in New Issue
Block a user