From a64ee889a24ec3784f85e0c61409ea4fe8341e4c Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Fri, 21 Nov 2025 20:48:23 +0100 Subject: [PATCH] fix: set BountyScore to 1 when earning first stratos emblem Some reading between the line on the wiki and profile page seems to indicate it's supposed to start 1 instead of 0. --- src/services/inventoryService.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/services/inventoryService.ts b/src/services/inventoryService.ts index d8e01639..3a544789 100644 --- a/src/services/inventoryService.ts +++ b/src/services/inventoryService.ts @@ -1591,14 +1591,13 @@ export const addSkin = ( typeName: string, inventoryChanges: IInventoryChanges = {} ): IInventoryChanges => { + if (typeName == "/Lotus/Upgrades/Skins/Clan/BountyHunterBadgeItem") { + logger.debug(`stratos emblem, increasing bounty score`); + inventory.BountyScore ??= 0; + inventory.BountyScore += 1; + } if (inventory.WeaponSkins.some(x => x.ItemType == typeName)) { - 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`); - } + logger.debug(`refusing to add WeaponSkin ${typeName} because account already owns it`); } else { const index = inventory.WeaponSkins.push({