forked from OpenWF/SpaceNinjaServer
fix: miscellaneous inaccuracies (#330)
Co-authored-by: Sainan <Sainan@users.noreply.github.com>
This commit is contained in:
parent
722a9aba5b
commit
c9d4712565
@ -161,14 +161,17 @@ const ItemConfigSchema = new Schema<IItemConfig>(
|
|||||||
facial: colorSchema,
|
facial: colorSchema,
|
||||||
syancol: colorSchema,
|
syancol: colorSchema,
|
||||||
Upgrades: [String],
|
Upgrades: [String],
|
||||||
Songs: [
|
Songs: {
|
||||||
{
|
type: [
|
||||||
m: String,
|
{
|
||||||
b: String,
|
m: String,
|
||||||
p: String,
|
b: String,
|
||||||
s: String
|
p: 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", {
|
||||||
|
@ -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[];
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user