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,7 +161,8 @@ const ItemConfigSchema = new Schema<IItemConfig>(
 | 
			
		||||
        facial: colorSchema,
 | 
			
		||||
        syancol: colorSchema,
 | 
			
		||||
        Upgrades: [String],
 | 
			
		||||
        Songs: [
 | 
			
		||||
        Songs: {
 | 
			
		||||
            type: [
 | 
			
		||||
                {
 | 
			
		||||
                    m: String,
 | 
			
		||||
                    b: String,
 | 
			
		||||
@ -169,6 +170,8 @@ const ItemConfigSchema = new Schema<IItemConfig>(
 | 
			
		||||
                    s: String
 | 
			
		||||
                }
 | 
			
		||||
            ],
 | 
			
		||||
            default: undefined
 | 
			
		||||
        },
 | 
			
		||||
        Name: String,
 | 
			
		||||
        AbilityOverride: abilityOverrideSchema,
 | 
			
		||||
        PvpUpgrades: [String],
 | 
			
		||||
@ -888,7 +891,7 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
 | 
			
		||||
        ChallengesFixVersion: Number,
 | 
			
		||||
        PlayedParkourTutorial: Boolean,
 | 
			
		||||
        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],
 | 
			
		||||
        RepVotes: [Schema.Types.Mixed],
 | 
			
		||||
        LeagueTickets: [Schema.Types.Mixed],
 | 
			
		||||
@ -914,7 +917,7 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
 | 
			
		||||
        //Grustag three
 | 
			
		||||
        DeathSquadable: Boolean
 | 
			
		||||
    },
 | 
			
		||||
    { timestamps: { createdAt: "Created", updatedAt: "LastInventorySync" } }
 | 
			
		||||
    { timestamps: { createdAt: "Created" } }
 | 
			
		||||
);
 | 
			
		||||
 | 
			
		||||
inventorySchema.set("toJSON", {
 | 
			
		||||
 | 
			
		||||
@ -170,7 +170,7 @@ export interface IInventoryResponse {
 | 
			
		||||
    SpectreLoadouts: ISpectreLoadout[];
 | 
			
		||||
    SentinelWeapons: IEquipmentDatabase[];
 | 
			
		||||
    Sentinels: IEquipmentDatabase[];
 | 
			
		||||
    EmailItems: ITypeXPItem[];
 | 
			
		||||
    EmailItems: ITypeCount[];
 | 
			
		||||
    CompletedSyndicates: string[];
 | 
			
		||||
    FocusXP: IFocusXP;
 | 
			
		||||
    Wishlist: string[];
 | 
			
		||||
 | 
			
		||||
@ -109,10 +109,7 @@ window.itemListPromise = new Promise(resolve => {
 | 
			
		||||
                items.forEach(item => {
 | 
			
		||||
                    if (item.uniqueName in data.badItems) {
 | 
			
		||||
                        item.name += " (Imposter)";
 | 
			
		||||
                    } else if (
 | 
			
		||||
                        item.uniqueName.substr(0, 18) != "/Lotus/Types/Game/" &&
 | 
			
		||||
                        item.uniqueName.substr(0, 18) != "/Lotus/StoreItems/"
 | 
			
		||||
                    ) {
 | 
			
		||||
                    } else if (item.uniqueName.substr(0, 18) != "/Lotus/Types/Game/") {
 | 
			
		||||
                        const option = document.createElement("option");
 | 
			
		||||
                        option.setAttribute("data-key", item.uniqueName);
 | 
			
		||||
                        option.value = item.name;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user