public static void SetupShop(int type, Chest shop, ref int nextSlot)
{
if (type < shopToNPC.Length)
{
type = shopToNPC[type];
}
else
{
GetNPC(type)?.SetupShop(shop, ref nextSlot);
}
foreach (var hook in HookSetupShop)
{
hook(type, shop, ref nextSlot);
}
}