Skip to content

Commit

Permalink
Fix pouch tab icon names
Browse files Browse the repository at this point in the history
  • Loading branch information
codemonkey85 committed Nov 22, 2024
1 parent a221a7f commit f5ea0f4
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions Pkmds.Web/SpriteHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,24 +64,24 @@ public static string GetTypeWideSpriteFileName(byte type) =>
$"{SpritesRoot}t/w/type_wide_{type:00}.png";

public static string GetBagPouchSpriteFileName(InventoryType type) =>
$"{SpritesRoot}bag/bag_{GetBagPouchSpriteName(type)}.png";
$"{SpritesRoot}bag/Bag_{GetBagPouchSpriteName(type)}.png";

private static string GetBagPouchSpriteName(InventoryType type) => type switch
{
InventoryType.Items => "items",
InventoryType.KeyItems => "key",
InventoryType.TMHMs => "tech",
InventoryType.Medicine => "medicine",
InventoryType.Berries => "berries",
InventoryType.Balls => "balls",
InventoryType.BattleItems => "battle",
InventoryType.MailItems => "mail",
InventoryType.PCItems => "pcitems",
InventoryType.FreeSpace => "free",
InventoryType.ZCrystals => "z",
InventoryType.Candy => "candy",
InventoryType.Treasure => "treasure",
InventoryType.Ingredients => "ingredient",
InventoryType.Balls => "Balls",
InventoryType.BattleItems => "Battle",
InventoryType.Berries => "Berries",
InventoryType.Candy => "Candy",
InventoryType.FreeSpace => "Free",
InventoryType.Ingredients => "Ingredient",
InventoryType.Items => "Items",
InventoryType.KeyItems => "Key",
InventoryType.MailItems => "Mail",
InventoryType.Medicine => "Medicine",
InventoryType.PCItems => "PCItems",
InventoryType.TMHMs => "Tech",
InventoryType.Treasure => "Treasure",
InventoryType.ZCrystals => "Z",
_ => throw new ArgumentOutOfRangeException(nameof(type), type, null),
};

Expand Down

0 comments on commit f5ea0f4

Please sign in to comment.