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: earning intrinsics (#872)

aca0b0fe
Sainan <sainan@calamity.inc>
提交于

代码差异

2 个文件 +8 -1
Modified src/services/missionInventoryUpdateService.ts +5 -0
@@ -150,6 +150,11 @@ export const addMissionInventoryUpdates = (
150 150 addFocusXpIncreases(inventory, value);
151 151 break;
152 152 }
153 case "PlayerSkillGains": {
154 inventory.PlayerSkills.LPP_SPACE += value.LPP_SPACE;
155 inventory.PlayerSkills.LPP_DRIFTER += value.LPP_DRIFTER;
156 break;
157 }
153 158 default:
154 159 // Equipment XP updates
155 160 if (equipmentKeys.includes(key as TEquipmentKey)) {
Modified src/types/requestTypes.ts +3 -1
@@ -11,7 +11,8 @@ import {
11 11 TSolarMapRegion,
12 12 TEquipmentKey,
13 13 IFusionTreasure,
14 IQuestKeyClient
14 IQuestKeyClient,
15 IPlayerSkills
15 16 } from "./inventoryTypes/inventoryTypes";
16 17
17 18 export interface IThemeUpdateRequest {
@@ -73,6 +74,7 @@ export type IMissionInventoryUpdateRequest = {
73 74 FpsSamples: number;
74 75 EvolutionProgress?: IEvolutionProgress[];
75 76 FocusXpIncreases?: number[];
77 PlayerSkillGains: IPlayerSkills;
76 78 } & {
77 79 [K in TEquipmentKey]?: IEquipmentClient[];
78 80 };