public override void SetupShop(Chest shop, ref int nextSlot) { base.SetupShop(shop, ref nextSlot); foreach (int i in PboneWorld.MysteriousTraderShop) { shop.AddShopItem(i, ref nextSlot); } }
public override void SetupShop(Chest shop, ref int nextSlot) { base.SetupShop(shop, ref nextSlot); shop.AddShopItem(ItemID.CopperOre, ref nextSlot); shop.AddShopItem(ItemID.TinOre, ref nextSlot); shop.AddShopItem(ItemID.IronOre, ref nextSlot); shop.AddShopItem(ItemID.LeadOre, ref nextSlot); shop.AddShopItem(ItemID.SilverOre, ref nextSlot); shop.AddShopItem(ItemID.TungstenOre, ref nextSlot); shop.AddShopItem(ItemID.GoldOre, ref nextSlot); shop.AddShopItem(ItemID.PlatinumOre, ref nextSlot); if (NPC.downedBoss3) { shop.AddShopItem(ItemID.DemoniteOre, ref nextSlot); shop.AddShopItem(ItemID.CrimtaneOre, ref nextSlot); } if (Main.hardMode) { shop.AddShopItem(ItemID.Obsidian, ref nextSlot); shop.AddShopItem(ItemID.Hellstone, ref nextSlot); } int downedMechBosses = 0; if (NPC.downedMechBoss1) { downedMechBosses++; } if (NPC.downedMechBoss2) { downedMechBosses++; } if (NPC.downedMechBoss3) { downedMechBosses++; } if (downedMechBosses > -1) { shop.AddShopItem(ItemID.CobaltOre, ref nextSlot); shop.AddShopItem(ItemID.PalladiumOre, ref nextSlot); } if (downedMechBosses > 0) { shop.AddShopItem(ItemID.MythrilOre, ref nextSlot); shop.AddShopItem(ItemID.OrichalcumOre, ref nextSlot); } if (downedMechBosses > 1) { shop.AddShopItem(ItemID.AdamantiteOre, ref nextSlot); shop.AddShopItem(ItemID.TitaniumOre, ref nextSlot); } if (downedMechBosses > 2) { shop.AddShopItem(ItemID.HallowedBar, ref nextSlot); } if (NPC.downedPlantBoss) { shop.AddShopItem(ItemID.ChlorophyteOre, ref nextSlot); } if (NPC.downedGolemBoss) { shop.AddShopItem(ItemID.ShroomiteBar, ref nextSlot); shop.AddShopItem(ItemID.SpectreBar, ref nextSlot); } shop.AddShopItem(ItemID.Amethyst, ref nextSlot); shop.AddShopItem(ItemID.Topaz, ref nextSlot); shop.AddShopItem(ItemID.Sapphire, ref nextSlot); shop.AddShopItem(ItemID.Emerald, ref nextSlot); if (NPC.downedBoss3) { shop.AddShopItem(ItemID.Ruby, ref nextSlot); shop.AddShopItem(ItemID.Diamond, ref nextSlot); } if (Main.hardMode) { shop.AddShopItem(ItemID.Amber, ref nextSlot); } }