From 1fe473951a4e72fe1deb9682ba7d9cea3b85bdd1 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Tue, 7 Oct 2025 14:04:49 +0200 Subject: [PATCH] feat: increase BountyScore for additional stratos emblems earned --- src/services/importService.ts | 1 + src/services/inventoryService.ts | 8 +++++++- src/types/inventoryTypes/inventoryTypes.ts | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/services/importService.ts b/src/services/importService.ts index 5b57f43a..c949a953 100644 --- a/src/services/importService.ts +++ b/src/services/importService.ts @@ -328,6 +328,7 @@ export const importInventory = (db: TInventoryDatabaseDocument, client: Partial< "ChallengesFixVersion", "Founder", "Guide", + "BountyScore", "EntratiVaultCountLastPeriod", "EntratiLabConquestUnlocked", "EntratiLabConquestHardModeStatus", diff --git a/src/services/inventoryService.ts b/src/services/inventoryService.ts index eeb411f7..37ab764d 100644 --- a/src/services/inventoryService.ts +++ b/src/services/inventoryService.ts @@ -1489,7 +1489,13 @@ export const addSkin = ( inventoryChanges: IInventoryChanges = {} ): IInventoryChanges => { if (inventory.WeaponSkins.some(x => x.ItemType == typeName)) { - logger.debug(`refusing to add WeaponSkin ${typeName} because account already owns it`); + if (typeName == "/Lotus/Upgrades/Skins/Clan/BountyHunterBadgeItem") { + logger.debug(`account already owns stratos emblem, increasing bounty score instead`); + inventory.BountyScore ??= 0; + inventory.BountyScore += 1; + } else { + logger.debug(`refusing to add WeaponSkin ${typeName} because account already owns it`); + } } else { const index = inventory.WeaponSkins.push({ diff --git a/src/types/inventoryTypes/inventoryTypes.ts b/src/types/inventoryTypes/inventoryTypes.ts index 99be7dd2..ffbec905 100644 --- a/src/types/inventoryTypes/inventoryTypes.ts +++ b/src/types/inventoryTypes/inventoryTypes.ts @@ -362,7 +362,7 @@ export interface IInventoryClient extends IDailyAffiliations, InventoryClientEqu ThemeStyle: string; ThemeBackground: string; ThemeSounds: string; - BountyScore: number; + BountyScore?: number; //ChallengeInstanceStates: IChallengeInstanceState[]; LoginMilestoneRewards: string[]; RecentVendorPurchases?: IRecentVendorPurchaseClient[]; -- 2.47.2