feat: increase BountyScore for additional stratos emblems earned (#2872)
Closes #2871 Reviewed-on: #2872 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
parent
e1563bf298
commit
0349c4a32c
@ -328,6 +328,7 @@ export const importInventory = (db: TInventoryDatabaseDocument, client: Partial<
|
||||
"ChallengesFixVersion",
|
||||
"Founder",
|
||||
"Guide",
|
||||
"BountyScore",
|
||||
"EntratiVaultCountLastPeriod",
|
||||
"EntratiLabConquestUnlocked",
|
||||
"EntratiLabConquestHardModeStatus",
|
||||
|
||||
@ -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({
|
||||
|
||||
@ -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[];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user