2023-04-16 19:58:07 +00:00
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace PKHeX.Core;
|
|
|
|
|
|
|
|
public sealed class ItemStorage5BW : ItemStorage5, IItemStorage
|
|
|
|
{
|
|
|
|
public static readonly ItemStorage5BW Instance = new();
|
|
|
|
|
2023-12-04 04:13:20 +00:00
|
|
|
private static ReadOnlySpan<ushort> Pouch_Key_BW =>
|
|
|
|
[
|
2023-04-16 19:58:07 +00:00
|
|
|
437, 442, 447, 450, 465, 466, 471,
|
|
|
|
504, 533, 574, 578, 579,
|
|
|
|
616, 617, 621, 623, 624, 625, 626,
|
2023-12-04 04:13:20 +00:00
|
|
|
];
|
2023-04-16 19:58:07 +00:00
|
|
|
|
|
|
|
public bool IsLegal(InventoryType type, int itemIndex, int itemCount) => true;
|
|
|
|
|
|
|
|
public ReadOnlySpan<ushort> GetItems(InventoryType type) => type switch
|
|
|
|
{
|
|
|
|
InventoryType.Items => Pouch_Items_BW,
|
|
|
|
InventoryType.KeyItems => Pouch_Key_BW,
|
|
|
|
InventoryType.TMHMs => Pouch_TMHM_BW,
|
|
|
|
InventoryType.Medicine => Pouch_Medicine_BW,
|
|
|
|
InventoryType.Berries => Pouch_Berries_BW,
|
|
|
|
_ => throw new ArgumentOutOfRangeException(nameof(type), type, null),
|
|
|
|
};
|
|
|
|
}
|