From a6ff0d3e149bbdf10859d55ea81ffdf4643610a9 Mon Sep 17 00:00:00 2001 From: aschmider <26329811+aschmider@users.noreply.github.com> Date: Tue, 12 Sep 2023 09:56:59 +0200 Subject: [PATCH] CORPORATION: Fix additive value in party result message (#793) (#794) --- src/Corporation/OfficeSpace.ts | 2 +- src/Corporation/ui/modals/ThrowPartyModal.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Corporation/OfficeSpace.ts b/src/Corporation/OfficeSpace.ts index efaee169d..98031f5b6 100644 --- a/src/Corporation/OfficeSpace.ts +++ b/src/Corporation/OfficeSpace.ts @@ -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; } diff --git a/src/Corporation/ui/modals/ThrowPartyModal.tsx b/src/Corporation/ui/modals/ThrowPartyModal.tsx index 164357663..529f97140 100644 --- a/src/Corporation/ui/modals/ThrowPartyModal.tsx +++ b/src/Corporation/ui/modals/ThrowPartyModal.tsx @@ -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(