mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-03-21 17:52:30 +01:00
Fixes 1918 Reputation Carry Over Bug
fixes #1918 add a check that stops current work if you apply to a new job as an employee at a different company
This commit is contained in:
@ -1874,8 +1874,10 @@ export function applyForEmployeeJob(this: IPlayer, sing = false): boolean {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (this.isQualified(company, CompanyPositions[position])) {
|
if (this.isQualified(company, CompanyPositions[position])) {
|
||||||
this.companyName = company.name;
|
|
||||||
this.jobs[company.name] = position;
|
this.jobs[company.name] = position;
|
||||||
|
if (!this.focus && this.isWorking && this.companyName !== company.name) this.resetWorkStatus();
|
||||||
|
this.companyName = company.name;
|
||||||
|
|
||||||
if (!sing) {
|
if (!sing) {
|
||||||
dialogBoxCreate("Congratulations, you are now employed at " + this.location);
|
dialogBoxCreate("Congratulations, you are now employed at " + this.location);
|
||||||
}
|
}
|
||||||
@ -1899,6 +1901,8 @@ export function applyForPartTimeEmployeeJob(this: IPlayer, sing = false): boolea
|
|||||||
}
|
}
|
||||||
if (this.isQualified(company, CompanyPositions[position])) {
|
if (this.isQualified(company, CompanyPositions[position])) {
|
||||||
this.jobs[company.name] = position;
|
this.jobs[company.name] = position;
|
||||||
|
if (!this.focus && this.isWorking && this.companyName !== company.name) this.resetWorkStatus();
|
||||||
|
this.companyName = company.name;
|
||||||
if (!sing) {
|
if (!sing) {
|
||||||
dialogBoxCreate("Congratulations, you are now employed part-time at " + this.location);
|
dialogBoxCreate("Congratulations, you are now employed part-time at " + this.location);
|
||||||
}
|
}
|
||||||
@ -1921,8 +1925,9 @@ export function applyForWaiterJob(this: IPlayer, sing = false): boolean {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (this.isQualified(company, CompanyPositions[position])) {
|
if (this.isQualified(company, CompanyPositions[position])) {
|
||||||
this.companyName = company.name;
|
|
||||||
this.jobs[company.name] = position;
|
this.jobs[company.name] = position;
|
||||||
|
if (!this.focus && this.isWorking && this.companyName !== company.name) this.resetWorkStatus();
|
||||||
|
this.companyName = company.name;
|
||||||
if (!sing) {
|
if (!sing) {
|
||||||
dialogBoxCreate("Congratulations, you are now employed as a waiter at " + this.location);
|
dialogBoxCreate("Congratulations, you are now employed as a waiter at " + this.location);
|
||||||
}
|
}
|
||||||
@ -1943,8 +1948,9 @@ export function applyForPartTimeWaiterJob(this: IPlayer, sing = false): boolean
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (this.isQualified(company, CompanyPositions[position])) {
|
if (this.isQualified(company, CompanyPositions[position])) {
|
||||||
this.companyName = company.name;
|
|
||||||
this.jobs[company.name] = position;
|
this.jobs[company.name] = position;
|
||||||
|
if (!this.focus && this.isWorking && this.companyName !== company.name) this.resetWorkStatus();
|
||||||
|
this.companyName = company.name;
|
||||||
if (!sing) {
|
if (!sing) {
|
||||||
dialogBoxCreate("Congratulations, you are now employed as a part-time waiter at " + this.location);
|
dialogBoxCreate("Congratulations, you are now employed as a part-time waiter at " + this.location);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user