mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 09:33:49 +01:00
Fix broken partyMult default
This commit is contained in:
parent
c669e473d1
commit
673c2d9f82
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user