public static void BossBag(NPC npc, ref int bagType) { if (npc.modNPC != null) { bagType = npc.modNPC.bossBag; } }