CORPORATION: Fix additive value in party result message (#793) (#794)

This commit is contained in:
aschmider 2023-09-12 09:56:59 +02:00 committed by GitHub
parent c4482a70f9
commit a6ff0d3e14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

@ -96,7 +96,7 @@ export class OfficeSpace {
if (this.autoParty) {
this.avgMorale = this.maxMorale;
} else {
// Each 5% multiplier gives an extra flat +1 to morale to make recovering from low morale easier.
// Each 10% multiplier gives an extra flat +1 to morale to make recovering from low morale easier.
const increase = this.partyMult > 1 ? (this.partyMult - 1) * 10 : 0;
this.avgMorale = ((this.avgMorale - reduction * Math.random()) * perfMult + increase) * this.partyMult;
}

@ -38,8 +38,8 @@ export function ThrowPartyModal(props: IProps): React.ReactElement {
dialogBoxCreate("You don't have enough company funds to throw a party!");
} else {
const mult = ThrowParty(corp, props.office, cost);
// Each 5% multiplier gives an extra flat +1 to morale to make recovering from low morale easier.
const increase = mult > 1 ? (mult - 1) * 0.2 : 0;
// Each 10% multiplier gives an extra flat +1 to morale to make recovering from low morale easier.
const increase = mult > 1 ? (mult - 1) * 0.1 : 0;
if (mult > 0) {
dialogBoxCreate(