fix: miscellaneous inaccuracies (#330)

Co-authored-by: Sainan <Sainan@users.noreply.github.com>
This commit is contained in:
Sainan 2024-06-20 11:48:12 +02:00 committed by GitHub
parent 722a9aba5b
commit c9d4712565
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 15 additions and 15 deletions

View File

@ -161,7 +161,8 @@ const ItemConfigSchema = new Schema<IItemConfig>(
facial: colorSchema, facial: colorSchema,
syancol: colorSchema, syancol: colorSchema,
Upgrades: [String], Upgrades: [String],
Songs: [ Songs: {
type: [
{ {
m: String, m: String,
b: String, b: String,
@ -169,6 +170,8 @@ const ItemConfigSchema = new Schema<IItemConfig>(
s: String s: String
} }
], ],
default: undefined
},
Name: String, Name: String,
AbilityOverride: abilityOverrideSchema, AbilityOverride: abilityOverrideSchema,
PvpUpgrades: [String], PvpUpgrades: [String],
@ -888,7 +891,7 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
ChallengesFixVersion: Number, ChallengesFixVersion: Number,
PlayedParkourTutorial: Boolean, PlayedParkourTutorial: Boolean,
SubscribedToEmailsPersonalized: Number, SubscribedToEmailsPersonalized: Number,
LastInventorySync: Schema.Types.Mixed, LastInventorySync: Schema.Types.Mixed, // this should be Schema.Types.ObjectId, but older inventories may break with that.
ActiveLandscapeTraps: [Schema.Types.Mixed], ActiveLandscapeTraps: [Schema.Types.Mixed],
RepVotes: [Schema.Types.Mixed], RepVotes: [Schema.Types.Mixed],
LeagueTickets: [Schema.Types.Mixed], LeagueTickets: [Schema.Types.Mixed],
@ -914,7 +917,7 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
//Grustag three //Grustag three
DeathSquadable: Boolean DeathSquadable: Boolean
}, },
{ timestamps: { createdAt: "Created", updatedAt: "LastInventorySync" } } { timestamps: { createdAt: "Created" } }
); );
inventorySchema.set("toJSON", { inventorySchema.set("toJSON", {

View File

@ -170,7 +170,7 @@ export interface IInventoryResponse {
SpectreLoadouts: ISpectreLoadout[]; SpectreLoadouts: ISpectreLoadout[];
SentinelWeapons: IEquipmentDatabase[]; SentinelWeapons: IEquipmentDatabase[];
Sentinels: IEquipmentDatabase[]; Sentinels: IEquipmentDatabase[];
EmailItems: ITypeXPItem[]; EmailItems: ITypeCount[];
CompletedSyndicates: string[]; CompletedSyndicates: string[];
FocusXP: IFocusXP; FocusXP: IFocusXP;
Wishlist: string[]; Wishlist: string[];

View File

@ -109,10 +109,7 @@ window.itemListPromise = new Promise(resolve => {
items.forEach(item => { items.forEach(item => {
if (item.uniqueName in data.badItems) { if (item.uniqueName in data.badItems) {
item.name += " (Imposter)"; item.name += " (Imposter)";
} else if ( } else if (item.uniqueName.substr(0, 18) != "/Lotus/Types/Game/") {
item.uniqueName.substr(0, 18) != "/Lotus/Types/Game/" &&
item.uniqueName.substr(0, 18) != "/Lotus/StoreItems/"
) {
const option = document.createElement("option"); const option = document.createElement("option");
option.setAttribute("data-key", item.uniqueName); option.setAttribute("data-key", item.uniqueName);
option.value = item.name; option.value = item.name;