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(inventory&loadouts): motorcycles (#580)

0dd98393
Master <master@orzsoft.com>
提交于

代码差异

4 个文件 +7 -1
Modified src/models/inventoryModels/inventoryModel.ts +3 -0
@@ -867,6 +867,8 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
867 867 //https://warframe.fandom.com/wiki/Parazon
868 868 DataKnives: [EquipmentSchema],
869 869
870 Motorcycles: [EquipmentSchema],
871
870 872 //CorpusLich or GrineerLich
871 873 NemesisAbandonedRewards: [String],
872 874 //CorpusLich\KuvaLich
@@ -974,6 +976,7 @@ type InventoryDocumentProps = {
974 976 MechSuits: Types.DocumentArray<IEquipmentDatabase>;
975 977 Scoops: Types.DocumentArray<IEquipmentDatabase>;
976 978 DataKnives: Types.DocumentArray<IEquipmentDatabase>;
979 Motorcycles: Types.DocumentArray<IEquipmentDatabase>;
977 980 DrifterMelee: Types.DocumentArray<IEquipmentDatabase>;
978 981 Sentinels: Types.DocumentArray<IEquipmentDatabase>;
979 982 Horses: Types.DocumentArray<IEquipmentDatabase>;
Modified src/services/saveLoadoutService.ts +2 -1
@@ -144,7 +144,8 @@ export const handleInventoryItemConfigChange = async (
144 144 case "Hoverboards":
145 145 case "MechSuits":
146 146 case "CrewShipHarnesses":
147 case "CrewShips": {
147 case "CrewShips":
148 case "Motorcycles": {
148 149 logger.debug(`general Item config saved of type ${equipmentName}`, { config: equipment });
149 150
150 151 const itemEntries = equipment as IItemEntry;
Modified src/types/inventoryTypes/inventoryTypes.ts +1 -0
@@ -245,6 +245,7 @@ export interface IInventoryResponse {
245 245 EquippedInstrument: string;
246 246 InvasionChainProgress: IInvasionChainProgress[];
247 247 DataKnives: IEquipmentDatabase[];
248 Motorcycles: IEquipmentDatabase[];
248 249 NemesisHistory: INemesisHistory[];
249 250 LastNemesisAllySpawnTime?: IMongoDate;
250 251 Settings: ISettings;
Modified src/types/saveLoadoutTypes.ts +1 -0
@@ -21,6 +21,7 @@ export interface ISaveLoadoutRequest {
21 21 MoaPets: IItemEntry;
22 22 Hoverboards: IItemEntry;
23 23 DataKnives: IItemEntry;
24 Motorcycles: IItemEntry;
24 25 MechSuits: IItemEntry;
25 26 CrewShipHarnesses: IItemEntry;
26 27 Horses: IItemEntry;