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

SpaceNinjaServer

A simple server for a small space ninja game

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

XFEstudio/SpaceNinjaServer

feat: handle WeaponSkins picked up in missions (#1854)

For sigils. Closes #1839 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1854 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

4a6a5ea9
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

2 个文件 +9 -1
Modified src/services/missionInventoryUpdateService.ts +6 -0
@@ -30,6 +30,7 @@ import {
30 30 addMods,
31 31 addRecipes,
32 32 addShipDecorations,
33 addSkin,
33 34 addStanding,
34 35 combineInventoryChanges,
35 36 generateRewardSeed,
@@ -411,6 +412,11 @@ export const addMissionInventoryUpdates = async (
411 412 upgrade.UpgradeFingerprint = clientUpgrade.UpgradeFingerprint; // primitive way to copy over the riven challenge progress
412 413 });
413 414 break;
415 case "WeaponSkins":
416 for (const item of value) {
417 addSkin(inventory, item.ItemType);
418 }
419 break;
414 420 case "Boosters":
415 421 value.forEach(booster => {
416 422 addBooster(booster.ItemType, booster.ExpiryDate, inventory);
Modified src/types/requestTypes.ts +3 -1
@@ -20,7 +20,8 @@ import {
20 20 IDiscoveredMarker,
21 21 ILockedWeaponGroupClient,
22 22 ILoadOutPresets,
23 IInvasionProgressClient
23 IInvasionProgressClient,
24 IWeaponSkinClient
24 25 } from "./inventoryTypes/inventoryTypes";
25 26 import { IGroup } from "./loginTypes";
26 27
@@ -101,6 +102,7 @@ export type IMissionInventoryUpdateRequest = {
101 102 }[];
102 103 CollectibleScans?: ICollectibleEntry[];
103 104 Upgrades?: IUpgradeClient[]; // riven challenge progress
105 WeaponSkins?: IWeaponSkinClient[];
104 106 StrippedItems?: {
105 107 DropTable: string;
106 108 DROP_MOD?: number[];