返回提交历史
Modified
src/services/importService.ts
+1
-0
Modified
src/services/inventoryService.ts
+7
-1
Modified
src/types/inventoryTypes/inventoryTypes.ts
+1
-1
XFEstudio/SpaceNinjaServer
feat: increase BountyScore for additional stratos emblems earned (#2872)
Closes #2871 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2872 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
0349c4a3
代码差异
3 个文件
+9
-2
@@ -328,6 +328,7 @@ export const importInventory = (db: TInventoryDatabaseDocument, client: Partial<
328
328
"ChallengesFixVersion",
329
329
"Founder",
330
330
"Guide",
331
"BountyScore",
331
332
"EntratiVaultCountLastPeriod",
332
333
"EntratiLabConquestUnlocked",
333
334
"EntratiLabConquestHardModeStatus",
@@ -1489,7 +1489,13 @@ export const addSkin = (
1489
1489
inventoryChanges: IInventoryChanges = {}
1490
1490
): IInventoryChanges => {
1491
1491
if (inventory.WeaponSkins.some(x => x.ItemType == typeName)) {
1492
logger.debug(`refusing to add WeaponSkin ${typeName} because account already owns it`);
1492
if (typeName == "/Lotus/Upgrades/Skins/Clan/BountyHunterBadgeItem") {
1493
logger.debug(`account already owns stratos emblem, increasing bounty score instead`);
1494
inventory.BountyScore ??= 0;
1495
inventory.BountyScore += 1;
1496
} else {
1497
logger.debug(`refusing to add WeaponSkin ${typeName} because account already owns it`);
1498
}
1493
1499
} else {
1494
1500
const index =
1495
1501
inventory.WeaponSkins.push({
@@ -362,7 +362,7 @@ export interface IInventoryClient extends IDailyAffiliations, InventoryClientEqu
362
362
ThemeStyle: string;
363
363
ThemeBackground: string;
364
364
ThemeSounds: string;
365
BountyScore: number;
365
BountyScore?: number;
366
366
//ChallengeInstanceStates: IChallengeInstanceState[];
367
367
LoginMilestoneRewards: string[];
368
368
RecentVendorPurchases?: IRecentVendorPurchaseClient[];