XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFESpaceNinjaServer

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
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

3 个文件 +9 -2
Modified src/services/importService.ts +1 -0
@@ -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",
Modified src/services/inventoryService.ts +7 -1
@@ -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({
Modified src/types/inventoryTypes/inventoryTypes.ts +1 -1
@@ -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[];