fix broken party math again

This commit is contained in:
Snarling 2022-11-20 07:56:58 -05:00 committed by GitHub
parent 673c2d9f82
commit c929806307
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -135,7 +135,7 @@ export class OfficeSpace {
this.avgHap = this.maxHap; this.avgHap = this.maxHap;
} else { } else {
// Each 5% multiplier gives an extra flat +1 to morale and happiness to make recovering from low morale easier. // Each 5% multiplier gives an extra flat +1 to morale and happiness to make recovering from low morale easier.
const increase = this.partyMult > 1 ? (1 - this.partyMult) * 20 : 0; const increase = this.partyMult > 1 ? (this.partyMult - 1) * 20 : 0;
this.avgHap = ((this.avgHap - reduction) * perfMult + increase) * this.partyMult; this.avgHap = ((this.avgHap - reduction) * perfMult + increase) * this.partyMult;
this.avgMor = (this.avgMor * perfMult + increase) * this.partyMult; this.avgMor = (this.avgMor * perfMult + increase) * this.partyMult;
} }