feat: increase BountyScore for additional stratos emblems earned
All checks were successful
Build / build (pull_request) Successful in 1m29s

This commit is contained in:
Sainan 2025-10-07 14:04:49 +02:00
parent f5c1b83598
commit 77b12d2209
3 changed files with 17 additions and 3 deletions

View File

@ -326,7 +326,15 @@ export const importInventory = (db: TInventoryDatabaseDocument, client: Partial<
"GiftsRemaining",
"ChallengesFixVersion",
"Founder",
"Guide"
"Guide",
"BountyScore",
"EntratiVaultCountLastPeriod",
"EntratiLabConquestUnlocked",
"EntratiLabConquestHardModeStatus",
"EntratiLabConquestCacheScoreMission",
"EchoesHexConquestUnlocked",
"EchoesHexConquestHardModeStatus",
"EchoesHexConquestCacheScoreMission"
] as const) {
if (client[key] !== undefined) {
db[key] = client[key];

View File

@ -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({

View File

@ -360,7 +360,7 @@ export interface IInventoryClient extends IDailyAffiliations, InventoryClientEqu
ThemeStyle: string;
ThemeBackground: string;
ThemeSounds: string;
BountyScore: number;
BountyScore?: number;
//ChallengeInstanceStates: IChallengeInstanceState[];
LoginMilestoneRewards: string[];
RecentVendorPurchases?: IRecentVendorPurchaseClient[];