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

fix: miscellaneous inaccuracies (#330)

Co-authored-by: Sainan <Sainan@users.noreply.github.com>

c9d47125
Sainan <sainan@calamity.gg>
提交于

代码差异

3 个文件 +15 -15
Modified src/models/inventoryModels/inventoryModel.ts +13 -10
@@ -161,14 +161,17 @@ const ItemConfigSchema = new Schema<IItemConfig>(
161 161 facial: colorSchema,
162 162 syancol: colorSchema,
163 163 Upgrades: [String],
164 Songs: [
165 {
166 m: String,
167 b: String,
168 p: String,
169 s: String
170 }
171 ],
164 Songs: {
165 type: [
166 {
167 m: String,
168 b: String,
169 p: String,
170 s: String
171 }
172 ],
173 default: undefined
174 },
172 175 Name: String,
173 176 AbilityOverride: abilityOverrideSchema,
174 177 PvpUpgrades: [String],
@@ -888,7 +891,7 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
888 891 ChallengesFixVersion: Number,
889 892 PlayedParkourTutorial: Boolean,
890 893 SubscribedToEmailsPersonalized: Number,
891 LastInventorySync: Schema.Types.Mixed,
894 LastInventorySync: Schema.Types.Mixed, // this should be Schema.Types.ObjectId, but older inventories may break with that.
892 895 ActiveLandscapeTraps: [Schema.Types.Mixed],
893 896 RepVotes: [Schema.Types.Mixed],
894 897 LeagueTickets: [Schema.Types.Mixed],
@@ -914,7 +917,7 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
914 917 //Grustag three
915 918 DeathSquadable: Boolean
916 919 },
917 { timestamps: { createdAt: "Created", updatedAt: "LastInventorySync" } }
920 { timestamps: { createdAt: "Created" } }
918 921 );
919 922
920 923 inventorySchema.set("toJSON", {
Modified src/types/inventoryTypes/inventoryTypes.ts +1 -1
@@ -170,7 +170,7 @@ export interface IInventoryResponse {
170 170 SpectreLoadouts: ISpectreLoadout[];
171 171 SentinelWeapons: IEquipmentDatabase[];
172 172 Sentinels: IEquipmentDatabase[];
173 EmailItems: ITypeXPItem[];
173 EmailItems: ITypeCount[];
174 174 CompletedSyndicates: string[];
175 175 FocusXP: IFocusXP;
176 176 Wishlist: string[];
Modified static/webui/script.js +1 -4
@@ -109,10 +109,7 @@ window.itemListPromise = new Promise(resolve => {
109 109 items.forEach(item => {
110 110 if (item.uniqueName in data.badItems) {
111 111 item.name += " (Imposter)";
112 } else if (
113 item.uniqueName.substr(0, 18) != "/Lotus/Types/Game/" &&
114 item.uniqueName.substr(0, 18) != "/Lotus/StoreItems/"
115 ) {
112 } else if (item.uniqueName.substr(0, 18) != "/Lotus/Types/Game/") {
116 113 const option = document.createElement("option");
117 114 option.setAttribute("data-key", item.uniqueName);
118 115 option.value = item.name;