Refactored weapon equipment system

This commit is contained in:
Marco 2025-05-02 15:49:25 +02:00
commit 1a403d163a
10 changed files with 164 additions and 73 deletions

View file

@ -24,6 +24,7 @@ public partial class ItemsMenu : ItemList
public void Fill()
{
var sortedItems = InventoryManager.Instance.Items.OrderBy(x => x.Item.ItemKey.ToString()).ToList();
// If it crashes here I might have forgot to add new items to the itemsdatabase
foreach (var item in sortedItems)
{
if (item.Count <= 0) continue;