mirror of
https://github.com/mekael/WFClassic.git
synced 2026-01-05 21:19:53 -06:00
feat: add keys as part of the get inventory.
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
Recipes,
|
||||
CreditBundles,
|
||||
Sentinels,
|
||||
SentinelWeapons
|
||||
SentinelWeapons,
|
||||
LevelKeys
|
||||
}
|
||||
}
|
||||
@@ -63,6 +63,7 @@ namespace WFClassic.Web.Logic.Inventory.Get
|
||||
RegularCredits = regularCredits > 0 ? regularCredits : 0,
|
||||
TauntHistory = player.TauntHistoryItems.Select(s => new GetInventoryResultJsonTauntHistoryItem() { node = s.Node }).ToList(),
|
||||
Upgrades = GetUpgrade(player.InventoryItems, attachments, InternalInventoryItemType.Upgrades),
|
||||
Keys = GetJsonTypeCount(InternalInventoryItemType.LevelKeys, player.InventoryItems),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -107,6 +107,9 @@ namespace WFClassic.Web.Logic.Inventory.Get
|
||||
[JsonPropertyName("XPInfo")]
|
||||
public List<GetInventoryResultJsonXpInfoItem> XPInfo { get; set; }
|
||||
|
||||
[JsonPropertyName("LevelKeys")]
|
||||
public List<GetInventoryResultJsonTypeCount> Keys { get; set; }
|
||||
|
||||
[JsonPropertyName("TauntHistory")]
|
||||
public List<GetInventoryResultJsonTauntHistoryItem> TauntHistory { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user