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

inventoryModel sorted and descriptions (#108)

196bb6ae
WhoTao <36767025+0kolya0@users.noreply.github.com>
提交于

代码差异

1 个文件 +273 -86
Modified src/models/inventoryModels/inventoryModel.ts +273 -86
@@ -296,20 +296,22 @@ DuviriInfoSchema.set("toJSON", {
296 296 });
297 297
298 298 const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>({
299 Horses: [GenericItemSchema],
300 DrifterMelee: [GenericItemSchema],
301 DrifterGuns: [GenericItemSchema],
302 DuviriInfo: DuviriInfoSchema,
303 Mailbox: MailboxSchema,
304 KahlLoadOuts: [Schema.Types.Mixed],
299
305 300 accountOwnerId: Schema.Types.ObjectId,
306 301 SubscribedToEmails: Number,
307 302 Created: Schema.Types.Mixed,
308 303 RewardSeed: Number,
304
305 //Credit
309 306 RegularCredits: Number,
307 //Platinum
310 308 PremiumCredits: Number,
309 //Gift Platinum(Non trade)
311 310 PremiumCreditsFree: Number,
311 //Endo
312 312 FusionPoints: Number,
313
314 //SlotAny
313 315 SuitBin: slotsBinSchema,
314 316 WeaponBin: slotsBinSchema,
315 317 SentinelBin: slotsBinSchema,
@@ -322,154 +324,339 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>({
322 324 CrewShipSalvageBin: slotsBinSchema,
323 325 MechBin: slotsBinSchema,
324 326 CrewMemberBin: slotsBinSchema,
327
328
329 //How many trades do you have left
325 330 TradesRemaining: Number,
331 //How many Gift do you have left*(gift spends the trade)
332 GiftsRemaining: Number,
333 //Curent trade info Giving or Getting items
334 PendingTrades: [Schema.Types.Mixed],
335
336 //Curent Syndicates rank\exp
337 Affiliations: [Schema.Types.Mixed],
338 //Syndicates Missions complate(Navigation->Syndicate)
339 CompletedSyndicates: [String],
340 //Daily Syndicates Exp
326 341 DailyAffiliation: Number,
327 342 DailyAffiliationPvp: Number,
328 343 DailyAffiliationLibrary: Number,
344 DailyAffiliationCetus: Number,
345 DailyAffiliationQuills: Number,
346 DailyAffiliationSolaris: Number,
347 DailyAffiliationVentkids: Number,
348 DailyAffiliationVox: Number,
349 DailyAffiliationEntrati: Number,
350 DailyAffiliationNecraloid: Number,
351 DailyAffiliationZariman: Number,
352 DailyAffiliationKahl: Number,
353
354
355 //Daily Focus limit
329 356 DailyFocus: Number,
330 GiftsRemaining: Number,
331 HandlerPoints: Number,
332 MiscItems: [Schema.Types.Mixed],
333 ChallengesFixVersion: Number,
357 //you not used Focus
358 FocusXP: Schema.Types.Mixed,
359 //Curent active like Active school focuses is = "Zenurik"
360 FocusAbility: String,
361 //The treeways of the Focus school.(Active and passive Ability)
362 FocusUpgrades: [Schema.Types.Mixed],
363
364 //Achievement
334 365 ChallengeProgress: [Schema.Types.Mixed],
366
367 //Account Item like Ferrite,Form,Kuva etc
368 MiscItems: [Schema.Types.Mixed],
369
370 //Non Upgrade Mods Example:I have 999 item WeaponElectricityDamageMod (only "ItemCount"+"ItemType")
335 371 RawUpgrades: [RawUpgrades],
336 ReceivedStartingGear: Boolean,
372 //Upgrade Mods\Riven\Arcane Example:"UpgradeFingerprint"+"ItemType"+""
373 Upgrades: [Upgrade],
374
375 //Warframe
337 376 Suits: [suitSchema],
377 //Primary Weapon
338 378 LongGuns: [WeaponSchema],
379 //Secondary Weapon
339 380 Pistols: [WeaponSchema],
381 //Melee Weapon
340 382 Melee: [WeaponSchema],
383 //Ability Weapon like Ultimate Mech\Excalibur\Ivara etc
384 SpecialItems: [Schema.Types.Mixed],
385 //The Mandachord(Octavia) is a step sequencer
386 StepSequencers: [Schema.Types.Mixed],
387
388 //Sentinel(like Helios or modular)
389 Sentinels: [Schema.Types.Mixed],
390 //Any /Sentinels/SentinelWeapons/ (like warframe weapon)
391 SentinelWeapons: [Schema.Types.Mixed],
392 //Modular Pets
393 MoaPets: [Schema.Types.Mixed],
394
395 KubrowPetEggs: [Schema.Types.Mixed],
396 //Like PowerSuit Cat\Kubrow or etc Pets
397 KubrowPets: [Schema.Types.Mixed],
398 //Prints Cat(3 Prints)\Kubrow(2 Prints) Pets
399 KubrowPetPrints: [Schema.Types.Mixed],
400
401 //Item for EquippedGear example:Scaner,LoadoutTechSummon etc
402 Consumables: [Schema.Types.Mixed],
403 //Weel Emotes+Gear
404 EquippedEmotes: [String],
405 EquippedGear: [String],
406 //Equipped Shawzin
407 EquippedInstrument: String,
408 ReceivedStartingGear: Boolean,
409
410 //to use add SummonItem to Consumables+EquippedGear
411 //Archwing need Suits+Melee+Guns
412 SpaceSuits: [GenericItemSchema],
413 SpaceMelee: [GenericItemSchema],
414 SpaceGuns: [Schema.Types.Mixed],
415 ArchwingEnabled: Boolean,
416 //Mech need Suits+SpaceGuns+SpecialItem
417 MechSuits: [suitSchema],
418 ///Restoratives/HoverboardSummon (like Suit)
419 Hoverboards: [Schema.Types.Mixed],
420
421 //Use Operator\Drifter
422 UseAdultOperatorLoadout: Boolean,
423 //Operator\Drifter Weapon
424 OperatorAmps: [Schema.Types.Mixed],
425 //Operator
426 OperatorLoadOuts: [operatorConfigSchema],
427 //Drifter
428 AdultOperatorLoadOuts: [operatorConfigSchema],
429 DrifterMelee: [GenericItemSchema],
430 DrifterGuns: [GenericItemSchema],
431 //ErsatzHorsePowerSuit
432 Horses: [GenericItemSchema],
433
434 //Liset colors skin etc
341 435 Ships: [Schema.Types.Mixed],
436 // /Lotus/Types/Items/ShipDecos/
437 ShipDecorations: [Schema.Types.Mixed],
438
439 //RailJack Setting(Mods,Skin,Weapon,etc)
440 CrewShipHarnesses: [Schema.Types.Mixed],
441 //Railjack/Components(https://warframe.fandom.com/wiki/Railjack/Components)
442 CrewShipRawSalvage: [Schema.Types.Mixed],
443
444
445 //Default RailJack
446 CrewShips: [Schema.Types.Mixed],
447 CrewShipAmmo: [Schema.Types.Mixed],
448 CrewShipWeapons: [Schema.Types.Mixed],
449 CrewShipWeaponSkins: [Schema.Types.Mixed],
450
451
452 //NPC Crew and weapon
453 CrewMembers: [Schema.Types.Mixed],
454 CrewShipSalvagedWeaponSkins: [Schema.Types.Mixed],
455 CrewShipSalvagedWeapons: [Schema.Types.Mixed],
456
457
458 //Complete Mission\Quests
459 Missions: [Schema.Types.Mixed],
342 460 QuestKeys: [Schema.Types.Mixed],
461 //item like DojoKey or Boss missions key
462 LevelKeys: [Schema.Types.Mixed],
463 //Active quests
464 Quests: [Schema.Types.Mixed],
465
466 //Cosmetics like profile glyphs\Kavasa Prime Kubrow Collar\Game Theme etc
343 467 FlavourItems: [FlavourItemSchema],
468
469 //Lunaro Weapon
344 470 Scoops: [GenericItemSchema],
471
472 //Mastery Rank*(Need item XPInfo to rank up)
473 PlayerLevel: Number,
474 //Item Mastery Rank exp
475 XPInfo: [Schema.Types.Mixed],
476 //24h timer rank up
477 TrainingDate: Date,
478 //Retries rank up(3 time)
345 479 TrainingRetriesLeft: Number,
346 LoadOutPresets: { type: Schema.Types.ObjectId, ref: "Loadout" },
347 CurrentLoadOutIds: [Schema.Types.Mixed],
348 Missions: [Schema.Types.Mixed],
349 RandomUpgradesIdentified: Number,
480
481
482 //you saw last played Region when you opened the star map
350 483 LastRegionPlayed: String,
351 XPInfo: [Schema.Types.Mixed],
484
485 //Blueprint
352 486 Recipes: [Schema.Types.Mixed],
353 WeaponSkins: [Schema.Types.Mixed],
487 //Crafting Blueprint(Item Name + CompletionDate)
354 488 PendingRecipes: [Schema.Types.Mixed],
355 TrainingDate: Date,
356 PlayerLevel: Number,
357 Upgrades: [Upgrade],
358 EquippedGear: [String],
359 DeathMarks: [String],
489
490 //warframe\Weapon skins
491 WeaponSkins: [Schema.Types.Mixed],
492
493
494 //Ayatan Item
360 495 FusionTreasures: [Schema.Types.Mixed],
496 //"node": "TreasureTutorial", "state": "TS_COMPLETED"
497 TauntHistory: [Schema.Types.Mixed],
498
499
500 //noShow2FA,VisitPrimeVault etc
361 501 WebFlags: Schema.Types.Mixed,
502 //Id CompletedAlerts
362 503 CompletedAlerts: [String],
363 Consumables: [Schema.Types.Mixed],
364 LevelKeys: [Schema.Types.Mixed],
365 TauntHistory: [Schema.Types.Mixed],
504
505 //Warframe\Duviri
366 506 StoryModeChoice: String,
507
508 //Alert->Kuva Siphon
367 509 PeriodicMissionCompletions: [Schema.Types.Mixed],
368 KubrowPetEggs: [Schema.Types.Mixed],
510
511
512 //Codex->LoreFragment
369 513 LoreFragmentScans: [Schema.Types.Mixed],
370 EquippedEmotes: [String],
371 PendingTrades: [Schema.Types.Mixed],
514
515 //Resource,Credit,Affinity etc or Bless any boosters
372 516 Boosters: [BoosterSchema],
517 BlessingCooldown: Schema.Types.Mixed,
518
519 //the color your clan requests like Items/Research/DojoColors/DojoColorPlainsB
373 520 ActiveDojoColorResearch: String,
521
374 522 SentientSpawnChanceBoosters: Schema.Types.Mixed,
375 Affiliations: [Schema.Types.Mixed],
523
376 524 QualifyingInvasions: [Schema.Types.Mixed],
377 525 FactionScores: [Number],
378 SpaceSuits: [GenericItemSchema],
379 SpaceMelee: [GenericItemSchema],
380 SpaceGuns: [Schema.Types.Mixed],
381 ArchwingEnabled: Boolean,
382 PendingSpectreLoadouts: [Schema.Types.Mixed],
526
527 //Have only Suit+Pistols+LongGuns+Melee+ItemType(BronzeSpectre,GoldSpectre,PlatinumSpectreArmy,SilverSpectreArmy)
528 //"/Lotus/Types/Game/SpectreArmies/BronzeSpectreArmy": "Vapor Specter Regiment",
383 529 SpectreLoadouts: [Schema.Types.Mixed],
384 Sentinels: [WeaponSchema],
385 SentinelWeapons: [WeaponSchema],
530 //If you want change Spectre Gear id
531 PendingSpectreLoadouts: [Schema.Types.Mixed],
532
533
534 //New quest Email spam
535 //example:"ItemType": "/Lotus/Types/Keys/RailJackBuildQuest/RailjackBuildQuestEmailItem",
386 536 EmailItems: [Schema.Types.Mixed],
387 CompletedSyndicates: [String],
388 FocusXP: Schema.Types.Mixed,
537
538
539 //Profile->Wishlist
389 540 Wishlist: [String],
541
542 //https://warframe.fandom.com/wiki/Alignment
543 //like "Alignment": { "Wisdom": 9, "Alignment": 1 },
390 544 Alignment: Schema.Types.Mixed,
545 AlignmentReplay: Schema.Types.Mixed,
546
547 //https://warframe.fandom.com/wiki/Sortie
391 548 CompletedSorties: [String],
392 549 LastSortieReward: [Schema.Types.Mixed],
550
551 //Resource_Drone[Uselees stuff]
393 552 Drones: [Schema.Types.Mixed],
394 StepSequencers: [Schema.Types.Mixed],
553
554 //Active profile ico
395 555 ActiveAvatarImageType: String,
396 KubrowPets: [Schema.Types.Mixed],
397 ShipDecorations: [Schema.Types.Mixed],
398 DailyAffiliationCetus: Number,
399 DailyAffiliationQuills: Number,
556
557 // open location store like EidolonPlainsDiscoverable or OrbVallisCaveDiscoverable
400 558 DiscoveredMarkers: [Schema.Types.Mixed],
559 //Open location mission like "JobId" + "StageCompletions"
401 560 CompletedJobs: [Schema.Types.Mixed],
402 FocusAbility: String,
403 FocusUpgrades: [Schema.Types.Mixed],
404 OperatorAmps: [Schema.Types.Mixed],
405 HasContributedToDojo: Boolean,
406 HWIDProtectEnabled: Boolean,
407 KubrowPetPrints: [Schema.Types.Mixed],
408 AlignmentReplay: Schema.Types.Mixed,
561
562 //Game mission\ivent score example "Tag": "WaterFight", "Best": 170, "Count": 1258,
409 563 PersonalGoalProgress: [Schema.Types.Mixed],
410 DailyAffiliationSolaris: Number,
411 SpecialItems: [Schema.Types.Mixed],
564
565 //Setting interface Style
412 566 ThemeStyle: String,
413 567 ThemeBackground: String,
414 568 ThemeSounds: String,
415 BountyScore: Number,
416 ChallengeInstanceStates: [Schema.Types.Mixed],
569
570 //Daily LoginRewards
417 571 LoginMilestoneRewards: [String],
418 OperatorLoadOuts: [operatorConfigSchema],
419 DailyAffiliationVentkids: Number,
420 DailyAffiliationVox: Number,
421 RecentVendorPurchases: [Schema.Types.Mixed],
422 Hoverboards: [Schema.Types.Mixed],
572
573 //You first Dialog with NPC or use new Item
423 574 NodeIntrosCompleted: [String],
575
576 //https://warframe.fandom.com/wiki/Heist
577 //ProfitTaker(1-4) Example:"LocationTag": "EudicoHeists", "Jobs":Mission name
424 578 CompletedJobChains: [Schema.Types.Mixed],
579 //Night Wave Challenge
425 580 SeasonChallengeHistory: [Schema.Types.Mixed],
426 MoaPets: [Schema.Types.Mixed],
427 EquippedInstrument: String,
581
582
583 //Cephalon Simaris Entries Example:"TargetType"+"Scans"(1-10)+"Completed": true|false
584 LibraryPersonalProgress: [Schema.Types.Mixed],
585 //Cephalon Simaris Daily Task
586 LibraryAvailableDailyTaskInfo: Schema.Types.Mixed,
587
588 //https://warframe.fandom.com/wiki/Invasion
428 589 InvasionChainProgress: [Schema.Types.Mixed],
590
591 //https://warframe.fandom.com/wiki/Parazon
429 592 DataKnives: [GenericItemSchema],
593
594 //CorpusLich or GrineerLich
595 NemesisAbandonedRewards: [String],
596 //CorpusLich\KuvaLich
430 597 NemesisHistory: [Schema.Types.Mixed],
431 598 LastNemesisAllySpawnTime: Schema.Types.Mixed,
599
600 //TradingRulesConfirmed,ShowFriendInvNotifications(Option->Social)
432 601 Settings: Schema.Types.Mixed,
602
603 //Railjack craft
604 //https://warframe.fandom.com/wiki/Rising_Tide
433 605 PersonalTechProjects: [Schema.Types.Mixed],
434 CrewShips: [Schema.Types.Mixed],
606
607 //Modulars lvl and exp(Railjack|Duviri)
608 //https://warframe.fandom.com/wiki/Intrinsics
435 609 PlayerSkills: Schema.Types.Mixed,
436 CrewShipAmmo: [Schema.Types.Mixed],
437 CrewShipSalvagedWeaponSkins: [Schema.Types.Mixed],
438 CrewShipWeapons: [Schema.Types.Mixed],
439 CrewShipSalvagedWeapons: [Schema.Types.Mixed],
440 CrewShipWeaponSkins: [Schema.Types.Mixed],
610
611 //TradeBannedUntil data
441 612 TradeBannedUntil: Schema.Types.Mixed,
442 PlayedParkourTutorial: Boolean,
443 SubscribedToEmailsPersonalized: Number,
444 DailyAffiliationEntrati: Number,
445 DailyAffiliationNecraloid: Number,
446 MechSuits: [suitSchema],
613
614
615 //https://warframe.fandom.com/wiki/Helminth
447 616 InfestedFoundry: Schema.Types.Mixed,
448 BlessingCooldown: Schema.Types.Mixed,
449 CrewShipHarnesses: [Schema.Types.Mixed],
450 CrewShipRawSalvage: [Schema.Types.Mixed],
451 CrewMembers: [Schema.Types.Mixed],
452 AdultOperatorLoadOuts: [operatorConfigSchema],
617 NextRefill: Schema.Types.Mixed,
618
619 //Purchase this new permanent skin from the Lotus customization options in Personal Quarters located in your Orbiter.
620 //https://warframe.fandom.com/wiki/Lotus#The_New_War
453 621 LotusCustomization: Schema.Types.Mixed,
454 UseAdultOperatorLoadout: Boolean,
455 DailyAffiliationZariman: Number,
456 NemesisAbandonedRewards: [String],
457 DailyAffiliationKahl: Number,
622
623 //Progress+Rank+ItemType(ZarimanPumpShotgun)
624 //https://warframe.fandom.com/wiki/Incarnon
625 EvolutionProgress: [Schema.Types.Mixed],
626
627
628 //Unknown and system
629 DuviriInfo: DuviriInfoSchema,
630 Mailbox: MailboxSchema,
631 KahlLoadOuts: [Schema.Types.Mixed],
632 HandlerPoints: Number,
633 ChallengesFixVersion: Number,
634 PlayedParkourTutorial: Boolean,
635 SubscribedToEmailsPersonalized: Number,
458 636 LastInventorySync: Schema.Types.Mixed,
459 NextRefill: Schema.Types.Mixed,
460 637 ActiveLandscapeTraps: [Schema.Types.Mixed],
461 EvolutionProgress: [Schema.Types.Mixed],
462 638 RepVotes: [Schema.Types.Mixed],
463 639 LeagueTickets: [Schema.Types.Mixed],
464 Quests: [Schema.Types.Mixed],
640 HasContributedToDojo: Boolean,
641 HWIDProtectEnabled: Boolean,
642 LoadOutPresets: { type: Schema.Types.ObjectId, ref: "Loadout" },
643 CurrentLoadOutIds: [Schema.Types.Mixed],
644 RandomUpgradesIdentified: Number,
645 BountyScore: Number,
646 ChallengeInstanceStates: [Schema.Types.Mixed],
647 RecentVendorPurchases: [Schema.Types.Mixed],
465 648 Robotics: [Schema.Types.Mixed],
466 649 UsedDailyDeals: [Schema.Types.Mixed],
467 LibraryPersonalProgress: [Schema.Types.Mixed],
468 650 CollectibleSeries: [Schema.Types.Mixed],
469 LibraryAvailableDailyTaskInfo: Schema.Types.Mixed,
470 651 HasResetAccount: Boolean,
652
653 //Discount Coupon
471 654 PendingCoupon: Schema.Types.Mixed,
655 //Like BossAladV,BossCaptainVor come for you on missions % chance
656 DeathMarks: [String],
657 //Zanuka
472 658 Harvestable: Boolean,
659 //Grustag three
473 660 DeathSquadable: Boolean
474 661 });
475 662