using CalamityMod.World; using System; using Terraria.ID; using Terraria.ModLoader; using CalamityMod.NPCs; using CalamityMod.Items.SummonItems; using CalamityMod.Items.Potions.Alcohol; namespace CalamityMod { internal class WeakReferenceSupport { public static void Setup() { BossChecklistSupport(); CensusSupport(); } private static void BossChecklistSupport() { Mod mod = ModLoader.GetMod("CalamityMod"); Mod bossChecklist = ModLoader.GetMod("BossChecklist"); if (bossChecklist != null) { // 14 is moonlord, 12 is duke fishron bossChecklist.Call("AddBossWithInfo", "Desert Scourge", 1.5f, (Func)(() => CalamityWorld.downedDesertScourge), "Use a [i:" + ModContent.ItemType() + "] in the Desert Biome"); //1 bossChecklist.Call("AddBossWithInfo", "Crabulon", 2.5f, (Func)(() => CalamityWorld.downedCrabulon), "Use a [i:" + ModContent.ItemType() + "] in the Mushroom Biome"); //1.5 bossChecklist.Call("AddBossWithInfo", "Hive Mind / Perforator", 3.5f, (Func)(() => CalamityWorld.downedPerforator || CalamityWorld.downedHiveMind), "By killing a Cyst in the World's Evil Biome"); //2 bossChecklist.Call("AddBossWithInfo", "Slime God", 5.5f, (Func)(() => CalamityWorld.downedSlimeGod), "Use an [i:" + ModContent.ItemType() + "]"); //4 bossChecklist.Call("AddBossWithInfo", "Cryogen", 6.5f, (Func)(() => CalamityWorld.downedCryogen), "Use a [i:" + ModContent.ItemType() + "] in the Snow Biome"); //5 bossChecklist.Call("AddBossWithInfo", "Brimstone Elemental", 7.5f, (Func)(() => CalamityWorld.downedBrimstoneElemental), "Use a [i:" + ModContent.ItemType() + "] in the Hell Crag"); //6 bossChecklist.Call("AddBossWithInfo", "Aquatic Scourge", 8.5f, (Func)(() => CalamityWorld.downedAquaticScourge), "Use a [i:" + ModContent.ItemType() + "] in the Sulphuric Sea or wait for it to spawn in the Sulphuric Sea"); //6 bossChecklist.Call("AddBossWithInfo", "Calamitas", 9.7f, (Func)(() => CalamityWorld.downedCalamitas), "Use an [i:" + ModContent.ItemType() + "] at Night"); //7 bossChecklist.Call("AddBossWithInfo", "Leviathan", 10.5f, (Func)(() => CalamityWorld.downedLeviathan), "By killing an unknown entity in the Ocean Biome"); //8 bossChecklist.Call("AddBossWithInfo", "Astrum Aureus", 10.6f, (Func)(() => CalamityWorld.downedAstrageldon), "Use an [i:" + ModContent.ItemType() + "] at Night"); //8.5 bossChecklist.Call("AddBossWithInfo", "Plaguebringer Goliath", 11.5f, (Func)(() => CalamityWorld.downedPlaguebringer), "Use an [i:" + ModContent.ItemType() + "] in the Jungle Biome"); //9 bossChecklist.Call("AddBossWithInfo", "Ravager", 12.5f, (Func)(() => CalamityWorld.downedScavenger), "Use an [i:" + ModContent.ItemType() + "]"); //9.5 bossChecklist.Call("AddBossWithInfo", "Astrum Deus", 13.5f, (Func)(() => CalamityWorld.downedStarGod), "Use a [i:" + ModContent.ItemType() + "] at Night or defeat 3 empowered astral titans"); //9.6 //bossChecklist.Call("AddBossWithInfo", "The Old Duke", 13.6f, (Func)(() => CalamityWorld.downedOldDuke), "Fishing with some type of bait in the Sulphuric Sea"); //9.7 bossChecklist.Call("AddBossWithInfo", "Profaned Guardians", 14.5f, (Func)(() => CalamityWorld.downedGuardians), "Use a [i:" + ModContent.ItemType() + "] in the Hallow or Underworld Biomes"); //10 bossChecklist.Call("AddBossWithInfo", "Bumblebirb", 14.6f, (Func)(() => CalamityWorld.downedBumble), "Use [i:" + ModContent.ItemType() + "] in the Jungle Biome"); //16 bossChecklist.Call("AddBossWithInfo", "Providence", 15f, (Func)(() => CalamityWorld.downedProvidence), "Use a [i:" + ModContent.ItemType() + "] in the Hallow or Underworld Biomes"); //11 bossChecklist.Call("AddBossWithInfo", "Ceaseless Void", 15.1f, (Func)(() => CalamityWorld.downedSentinel1), "Use a [i:" + ModContent.ItemType() + "] in the Dungeon"); //12 bossChecklist.Call("AddBossWithInfo", "Storm Weaver", 15.2f, (Func)(() => CalamityWorld.downedSentinel2), "Use a [i:" + ModContent.ItemType() + "] in Space"); //13 bossChecklist.Call("AddBossWithInfo", "Signus", 15.3f, (Func)(() => CalamityWorld.downedSentinel3), "Use a [i:" + ModContent.ItemType() + "] in the Underworld"); //14 bossChecklist.Call("AddBossWithInfo", "Polterghast", 15.5f, (Func)(() => CalamityWorld.downedPolterghast), "Use a [i:" + ModContent.ItemType() + "] in the Dungeon or kill 30 phantom spirits"); //11 bossChecklist.Call("AddBossWithInfo", "Devourer of Gods", 16f, (Func)(() => CalamityWorld.downedDoG), "Use a [i:" + ModContent.ItemType() + "]"); //15 bossChecklist.Call("AddBossWithInfo", "Yharon", 17f, (Func)(() => CalamityWorld.downedYharon), "Use a [i:" + ModContent.ItemType() + "] in the Jungle Biome"); //17 bossChecklist.Call("AddBossWithInfo", "Supreme Calamitas", 18f, (Func)(() => CalamityWorld.downedSCal), "Use an [i:" + ModContent.ItemType() + "]"); //18 } } private static void CensusSupport() { Mod mod = ModLoader.GetMod("CalamityMod"); Mod censusMod = ModLoader.GetMod("Census"); if (censusMod != null) { censusMod.Call("TownNPCCondition", ModContent.NPCType(), "Defeat a Giant Clam"); censusMod.Call("TownNPCCondition", ModContent.NPCType(), "Have a [i:" + ItemID.PlatinumCoin + "] in your inventory after defeating Skeletron"); censusMod.Call("TownNPCCondition", ModContent.NPCType(), "Have [i:" + ModContent.ItemType() + "] in your inventory in Hardmode"); censusMod.Call("TownNPCCondition", ModContent.NPCType(), "Defeat Cryogen"); } } } }