mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
Fix broken partyMult default
This commit is contained in:
parent
c669e473d1
commit
673c2d9f82
@ -38,7 +38,7 @@ export class OfficeSpace {
|
|||||||
autoCoffee = false;
|
autoCoffee = false;
|
||||||
autoParty = false;
|
autoParty = false;
|
||||||
coffeePending = false;
|
coffeePending = false;
|
||||||
partyMult = 0;
|
partyMult = 1;
|
||||||
|
|
||||||
employeeProd: Record<EmployeePositions | "total", number> = {
|
employeeProd: Record<EmployeePositions | "total", number> = {
|
||||||
[EmployeePositions.Operations]: 0,
|
[EmployeePositions.Operations]: 0,
|
||||||
@ -145,7 +145,7 @@ export class OfficeSpace {
|
|||||||
this.avgHap = Math.max(Math.min(this.avgHap, this.maxHap), this.minHap);
|
this.avgHap = Math.max(Math.min(this.avgHap, this.maxHap), this.minHap);
|
||||||
|
|
||||||
this.coffeePending = false;
|
this.coffeePending = false;
|
||||||
this.partyMult = 0;
|
this.partyMult = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get experience increase; unassigned employees do not contribute, employees in training contribute 5x
|
// Get experience increase; unassigned employees do not contribute, employees in training contribute 5x
|
||||||
@ -259,7 +259,7 @@ export class OfficeSpace {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setParty(mult: number): boolean {
|
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;
|
this.partyMult = mult;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -341,10 +341,10 @@ export function IndustryOffice(props: IProps): React.ReactElement {
|
|||||||
>
|
>
|
||||||
<span>
|
<span>
|
||||||
<Button
|
<Button
|
||||||
disabled={corp.funds < 0 || props.office.partyMult > 0}
|
disabled={corp.funds < 0 || props.office.partyMult > 1}
|
||||||
onClick={() => setThrowPartyOpen(true)}
|
onClick={() => setThrowPartyOpen(true)}
|
||||||
>
|
>
|
||||||
{props.office.partyMult > 0 ? "Throwing Party..." : "Throw Party"}
|
{props.office.partyMult > 1 ? "Throwing Party..." : "Throw Party"}
|
||||||
</Button>
|
</Button>
|
||||||
</span>
|
</span>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
Loading…
Reference in New Issue
Block a user