mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-06 15:47:52 +02:00
MISC: Cancel faction work instead of finishing it when creating gang (#2726)
This commit is contained in:
@@ -54,8 +54,9 @@ export function hasGangWith(this: PlayerObject, facName: FactionName): boolean {
|
||||
}
|
||||
|
||||
export function startGang(this: PlayerObject, factionName: FactionName, hacking: boolean): void {
|
||||
// isFactionWork handles null internally, finishWork might need to be run with true
|
||||
if (isFactionWork(this.currentWork) && this.currentWork.factionName === factionName) this.finishWork(false);
|
||||
if (isFactionWork(this.currentWork) && this.currentWork.factionName === factionName) {
|
||||
this.finishWork(true);
|
||||
}
|
||||
|
||||
this.gang = new Gang(factionName, hacking);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user