feat: increase BountyScore for additional stratos emblems earned #2872
@ -328,6 +328,7 @@ export const importInventory = (db: TInventoryDatabaseDocument, client: Partial<
 | 
				
			|||||||
        "ChallengesFixVersion",
 | 
					        "ChallengesFixVersion",
 | 
				
			||||||
        "Founder",
 | 
					        "Founder",
 | 
				
			||||||
        "Guide",
 | 
					        "Guide",
 | 
				
			||||||
 | 
					        "BountyScore",
 | 
				
			||||||
        "EntratiVaultCountLastPeriod",
 | 
					        "EntratiVaultCountLastPeriod",
 | 
				
			||||||
        "EntratiLabConquestUnlocked",
 | 
					        "EntratiLabConquestUnlocked",
 | 
				
			||||||
        "EntratiLabConquestHardModeStatus",
 | 
					        "EntratiLabConquestHardModeStatus",
 | 
				
			||||||
 | 
				
			|||||||
@ -1489,7 +1489,13 @@ export const addSkin = (
 | 
				
			|||||||
    inventoryChanges: IInventoryChanges = {}
 | 
					    inventoryChanges: IInventoryChanges = {}
 | 
				
			||||||
): IInventoryChanges => {
 | 
					): IInventoryChanges => {
 | 
				
			||||||
    if (inventory.WeaponSkins.some(x => x.ItemType == typeName)) {
 | 
					    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 {
 | 
					    } else {
 | 
				
			||||||
        const index =
 | 
					        const index =
 | 
				
			||||||
            inventory.WeaponSkins.push({
 | 
					            inventory.WeaponSkins.push({
 | 
				
			||||||
 | 
				
			|||||||
@ -362,7 +362,7 @@ export interface IInventoryClient extends IDailyAffiliations, InventoryClientEqu
 | 
				
			|||||||
    ThemeStyle: string;
 | 
					    ThemeStyle: string;
 | 
				
			||||||
    ThemeBackground: string;
 | 
					    ThemeBackground: string;
 | 
				
			||||||
    ThemeSounds: string;
 | 
					    ThemeSounds: string;
 | 
				
			||||||
    BountyScore: number;
 | 
					    BountyScore?: number;
 | 
				
			||||||
    //ChallengeInstanceStates: IChallengeInstanceState[];
 | 
					    //ChallengeInstanceStates: IChallengeInstanceState[];
 | 
				
			||||||
    LoginMilestoneRewards: string[];
 | 
					    LoginMilestoneRewards: string[];
 | 
				
			||||||
    RecentVendorPurchases?: IRecentVendorPurchaseClient[];
 | 
					    RecentVendorPurchases?: IRecentVendorPurchaseClient[];
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user