Skip to content

Commit

Permalink
UI: deck: order lists correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
AcipenserSturio committed Jan 26, 2024
1 parent d20602b commit bb79434
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zzre/game/systems/ui/ScrDeck.cs
Original file line number Diff line number Diff line change
Expand Up @@ -443,10 +443,10 @@ private void CreateGridList(DefaultEcs.Entity entity, ref components.ui.ScrDeck

private IEnumerable<InventoryCard> AllCardsOfType(in components.ui.ScrDeck deck) => deck.ActiveTab switch
{
Tab.Items => deck.Inventory.Items,
Tab.Fairies => deck.Inventory.Fairies,
Tab.AttackSpells => deck.Inventory.AttackSpells,
Tab.SupportSpells => deck.Inventory.SupportSpells,
Tab.Items => deck.Inventory.Items.OrderBy(c => c.cardId.EntityId),
Tab.Fairies => deck.Inventory.Fairies.OrderBy(c => -c.level),
Tab.AttackSpells => deck.Inventory.AttackSpells.OrderBy(c => c.cardId.EntityId),
Tab.SupportSpells => deck.Inventory.SupportSpells.OrderBy(c => c.cardId.EntityId),
_ => Enumerable.Empty<InventoryCard>()
};

Expand Down

0 comments on commit bb79434

Please sign in to comment.