From 2ef68d31ae46c03847dd5d6abea8b4717285e7ac Mon Sep 17 00:00:00 2001 From: catloversg <152669316+catloversg@users.noreply.github.com> Date: Tue, 5 May 2026 05:24:08 +0700 Subject: [PATCH] MISC: Cancel faction work instead of finishing it when creating gang (#2726) --- src/PersonObjects/Player/PlayerObjectGangMethods.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/PersonObjects/Player/PlayerObjectGangMethods.ts b/src/PersonObjects/Player/PlayerObjectGangMethods.ts index 7cdd00086..b60a2ffdf 100644 --- a/src/PersonObjects/Player/PlayerObjectGangMethods.ts +++ b/src/PersonObjects/Player/PlayerObjectGangMethods.ts @@ -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);