CORP: Revert mandatory coffeeparty (#333)

This commit is contained in:
David Walker 2023-01-27 05:15:54 -08:00 committed by GitHub
parent 707508a8cc
commit c1d3664955
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -112,10 +112,14 @@ export class OfficeSpace {
if (this.totalEmployees > 0) { if (this.totalEmployees > 0) {
/** Multiplier for employee morale/happiness/energy based on company performance */ /** Multiplier for employee morale/happiness/energy based on company performance */
const perfMult = Math.pow( const perfMult = Math.pow(
0.999 - (corporation.funds < 0 ? 0.002 : 0) - (industry.lastCycleRevenue < 0 ? 0.002 : 0), 1.002 -
(corporation.funds < 0 ? 0.002 : 0) -
(industry.lastCycleRevenue < industry.lastCycleExpenses ? 0.002 : 0),
marketCycles, marketCycles,
); );
/** Flat reduction per cycle */ // Flat reduction per cycle.
// This does not cause a noticable decrease (it's only -.001% per cycle), it only serves
// to make the numbers slightly different between Happiness and Morale.
const reduction = 0.001 * marketCycles; const reduction = 0.001 * marketCycles;
if (this.autoCoffee) { if (this.autoCoffee) {