Fix broken partyMult default

This commit is contained in:
omuretsu 2022-11-19 22:42:34 -05:00
parent c669e473d1
commit 673c2d9f82
2 changed files with 5 additions and 5 deletions

@ -38,7 +38,7 @@ export class OfficeSpace {
autoCoffee = false;
autoParty = false;
coffeePending = false;
partyMult = 0;
partyMult = 1;
employeeProd: Record<EmployeePositions | "total", number> = {
[EmployeePositions.Operations]: 0,
@ -145,7 +145,7 @@ export class OfficeSpace {
this.avgHap = Math.max(Math.min(this.avgHap, this.maxHap), this.minHap);
this.coffeePending = false;
this.partyMult = 0;
this.partyMult = 1;
}
// Get experience increase; unassigned employees do not contribute, employees in training contribute 5x
@ -259,7 +259,7 @@ export class OfficeSpace {
}
setParty(mult: number): boolean {
if (mult > 1 && this.partyMult === 0 && !this.autoParty && this.totalEmployees > 0) {
if (mult > 1 && this.partyMult === 1 && !this.autoParty && this.totalEmployees > 0) {
this.partyMult = mult;
return true;
}

@ -341,10 +341,10 @@ export function IndustryOffice(props: IProps): React.ReactElement {
>
<span>
<Button
disabled={corp.funds < 0 || props.office.partyMult > 0}
disabled={corp.funds < 0 || props.office.partyMult > 1}
onClick={() => setThrowPartyOpen(true)}
>
{props.office.partyMult > 0 ? "Throwing Party..." : "Throw Party"}
{props.office.partyMult > 1 ? "Throwing Party..." : "Throw Party"}
</Button>
</span>
</Tooltip>