using CalamityMod; using CalamityMod.Items.Potions.Alcohol; using CalamityMod.Items.Potions; using CalamityMod.Items.SummonItems; using CalamityMod.Items.Accessories; using CalamityMod.Items.Accessories.Wings; using CalamityMod.Items.DifficultyItems; using CalamityMod.Items.PermanentBoosters; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Items.Placeables.FurnitureCosmilite; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.Placeables.Furniture.CraftingStations; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Summon; using CalamityMod.Items.Weapons.Rogue; using CalamityMod.Items.Mounts; using CalamityMod.Items.Pets; using CalamityMod.Items.Tools; using CalamityMod.Items.Tools.ClimateChange; using CalamityMod.Items.TreasureBags; using CalamityMod.NPCs.DesertScourge; using CalamityMod.NPCs.Crabulon; using CalamityMod.NPCs.HiveMind; using CalamityMod.NPCs.Perforator; using CalamityMod.NPCs.SlimeGod; using CalamityMod.NPCs.Cryogen; using CalamityMod.NPCs.BrimstoneElemental; using CalamityMod.NPCs.AquaticScourge; using CalamityMod.NPCs.Leviathan; using CalamityMod.NPCs.AstrumAureus; using CalamityMod.NPCs.PlaguebringerGoliath; using CalamityMod.NPCs.Ravager; using CalamityMod.NPCs.AstrumDeus; using CalamityMod.NPCs.ProfanedGuardians; using CalamityMod.NPCs.Providence; using CalamityMod.NPCs.Bumblebirb; using CalamityMod.NPCs.Polterghast; using CalamityMod.NPCs.StormWeaver; using CalamityMod.NPCs.CeaselessVoid; using CalamityMod.NPCs.Signus; using CalamityMod.NPCs.DevourerofGods; using CalamityMod.NPCs.Yharon; using CalamityMod.NPCs.Calamitas; using CalamityMod.NPCs.SupremeCalamitas; using CalamityMod.NPCs.SunkenSea; using CalamityMod.NPCs.GreatSandShark; using CalamityMod.NPCs.TownNPCs; using CalamityMod.Buffs.Summon; using CalamityMod.Projectiles.Summon; using CalamityMod.World; using Microsoft.Xna.Framework.Graphics; using System; using System.Collections.Generic; using Terraria; using Terraria.ID; using Terraria.ModLoader; using Terraria.DataStructures; namespace CalamityMod { internal class WeakReferenceSupport { public static void Setup() { BossChecklistSupport(); CensusSupport(); SummonersAssociationSupport(); } private static void BossChecklistSupport() { Mod bossChecklist = ModLoader.GetMod("BossChecklist"); Mod calamity = ModContent.GetInstance(); Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); if (bossChecklist != null) { // 14 is moonlord, 12 is duke fishron //Desert Scourge bossChecklist.Call( "AddBoss", 1.5f, new List() {ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType()}, calamity, "Desert Scourge", (Func)(() => CalamityWorld.downedDesertScourge), ModContent.ItemType(), new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}, new List() {ModContent.ItemType(), ItemID.SandBlock, ModContent.ItemType(), ItemID.Coral, ItemID.Seashell, ItemID.Starfish, ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ItemID.AnglerTackleBag, ItemID.HighTestFishingLine, ItemID.TackleBox, ItemID.AnglerEarring, ItemID.FishermansGuide, ItemID.WeatherRadio, ItemID.Sextant, ItemID.AnglerHat, ItemID.AnglerVest, ItemID.AnglerPants, ItemID.FishingPotion, ItemID.SonarPotion, ItemID.CratePotion, ItemID.GoldenBugNet, ItemID.LesserHealingPotion}, "Use a [i:" + ModContent.ItemType() + "] in the Desert Biome", "[c/EEE8AA:The scourge of the desert delved back into the sand.]", "CalamityMod/NPCs/DesertScourge/DesertScourge_BossChecklist"); //Giant Clam bossChecklist.Call( "AddMiniBoss", 1.6f, ModContent.NPCType(), calamity, "Giant Clam", (Func)(() => CalamityWorld.downedCLAM), ItemID.None, ItemID.None, new List() { ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}, "Can spawn naturally in the Sunken Sea", "[c/7FFFD4:The Giant Clam returns into hiding in its grotto.]"); //Crabulon bossChecklist.Call( "AddBoss", 2.5f, ModContent.NPCType(), calamity, "Crabulon", (Func)(() => CalamityWorld.downedCrabulon), ModContent.ItemType(), new List() { ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}, new List() { ModContent.ItemType(), ItemID.GlowingMushroom, ItemID.MushroomGrassSeeds, ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ItemID.LesserHealingPotion}, "Use a [i:" + ModContent.ItemType() + "] in the Mushroom Biome", "[c/6495ED:The mycelium crab has lost interest.]"); //Hive Mind bossChecklist.Call( "AddBoss", 3.5f, new List() {ModContent.NPCType(), ModContent.NPCType()}, calamity, "Hive Mind", (Func)(() => CalamityWorld.downedHiveMind), ModContent.ItemType(), new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}, new List() {ModContent.ItemType(), ModContent.ItemType(), ItemID.DemoniteBar, ItemID.RottenChunk, ItemID.CursedFlame, ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ItemID.LesserHealingPotion}, "By killing a Cyst in the Corruption or use a [i:" + ModContent.ItemType() + "] in the Corruption", "[c/9400D3:The corrupted colony began searching for a new breeding ground.]"); //Perforators bossChecklist.Call( "AddBoss", 3.5f, new List() {ModContent.NPCType()}, calamity, "The Perforators", (Func)(() => CalamityWorld.downedPerforator), ModContent.ItemType(), new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}, new List() {ModContent.ItemType(), ModContent.ItemType(), ItemID.CrimtaneBar, ItemID.Vertebrae, ItemID.Ichor, ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ItemID.LesserHealingPotion}, "By killing a Cyst in the Crimson or use a [i:" + ModContent.ItemType() + "] in the Crimson", "[c/DC143C:The parasitic hive began searching for a new host.]"); //Slime God bossChecklist.Call( "AddBoss", 5.5f, new List() {ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType()}, calamity, "Slime God", (Func)(() => CalamityWorld.downedSlimeGod), ModContent.ItemType(), new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}, new List() {ModContent.ItemType(), ItemID.Gel, ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ItemID.HealingPotion}, "Use an [i:" + ModContent.ItemType() + "]", "[c/BA5533:The gelatinous monstrosity achieved vengeance for its breathren.]"); //Cryogen bossChecklist.Call( "AddBoss", 6.5f, ModContent.NPCType(), calamity, "Cryogen", (Func)(() => CalamityWorld.downedCryogen), ModContent.ItemType(), new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}, new List() {ModContent.ItemType(), ItemID.SoulofMight, ModContent.ItemType(), ModContent.ItemType(), ItemID.FrostCore, ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ItemID.FrozenKey, ItemID.GreaterHealingPotion}, "Use a [i:" + ModContent.ItemType() + "] in the Snow Biome", "[c/00FFFF:Cryogen drifts away, carried on a freezing wind.]", "CalamityMod/NPCs/Cryogen/Cryogen_BossChecklist"); //Brimstone Elemental bossChecklist.Call( "AddBoss", 7.5f, ModContent.NPCType(), calamity, "Brimstone Elemental", (Func)(() => CalamityWorld.downedBrimstoneElemental), ModContent.ItemType(), new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}, new List() {ModContent.ItemType(), ItemID.SoulofFright, ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ItemID.GreaterHealingPotion}, "Use a [i:" + ModContent.ItemType() + "] in the Brimstone Crag", "[c/DC143C:Brimstone Elemental withdraws to the ruins of her shrine.]"); //Aquatic Scourge bossChecklist.Call( "AddBoss", 8.5f, new List() {ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType()}, calamity, "Aquatic Scourge", (Func)(() => CalamityWorld.downedAquaticScourge), ModContent.ItemType(), new List() { ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}, new List() { ModContent.ItemType(), ModContent.ItemType(), ItemID.SoulofSight, ModContent.ItemType(), ItemID.Coral, ItemID.Seashell, ItemID.Starfish, ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ItemID.AnglerTackleBag, ItemID.HighTestFishingLine, ItemID.TackleBox, ItemID.AnglerEarring, ItemID.FishermansGuide, ItemID.WeatherRadio, ItemID.Sextant, ItemID.AnglerHat, ItemID.AnglerVest, ItemID.AnglerPants, ItemID.FishingPotion, ItemID.SonarPotion, ItemID.CratePotion, ItemID.GoldenBugNet, ItemID.GreaterHealingPotion}, "Use a [i:" + ModContent.ItemType() + "] in the Sulphuric Sea or wait for it to spawn in the Sulphuric Sea", "[c/F0E68C:The Aquatic Scourge swam back into the open ocean.]", "CalamityMod/NPCs/AquaticScourge/AquaticScourge_BossChecklist"); //Calamitas bossChecklist.Call( "AddBoss", 9.7f, new List() {ModContent.NPCType()}, calamity, "Calamitas", (Func)(() => CalamityWorld.downedCalamitas), ModContent.ItemType(), new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}, new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ItemID.BrokenHeroSword, ItemID.GreaterHealingPotion}, "Use an [i:" + ModContent.ItemType() + "] at Night", "[c/FFA500:If you wanted a fight, you should've came more prepared.]"); //Great Sand Shark bossChecklist.Call( "AddMiniBoss", 10.09f, ModContent.NPCType(), calamity, "Great Sand Shark", (Func)(() => CalamityWorld.downedGSS), ModContent.ItemType(), new List() {ItemID.MusicBoxSandstorm}, ModContent.ItemType(), "Kill 10 sand sharks after defeating Plantera or use a [i:" + ModContent.ItemType() + "] in the Desert Biome", "[c/DAA520:The apex predator of the sands disappears into the dunes...]"); //Leviathan and Siren bossChecklist.Call( "AddBoss", 10.5f, new List() {ModContent.NPCType(), ModContent.NPCType()}, calamity, "Leviathan", (Func)(() => CalamityWorld.downedLeviathan), ItemID.None, new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}, new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ItemID.HotlineFishingHook, ItemID.BottomlessBucket, ItemID.SuperAbsorbantSponge, ItemID.FishingPotion, ItemID.SonarPotion, ItemID.CratePotion, ItemID.GreaterHealingPotion}, "By killing an unknown entity in the Ocean Biome", "[c/7FFFD4:The aquatic entities sink back beneath the ocean depths.]", "CalamityMod/NPCs/Leviathan/SirenandLevi_BossChecklist"); //Astrum Aureus bossChecklist.Call( "AddBoss", 10.6f, ModContent.NPCType(), calamity, "Astrum Aureus", (Func)(() => CalamityWorld.downedAstrageldon), ModContent.ItemType(), new List() { ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}, new List() { ModContent.ItemType(), ModContent.ItemType(), ItemID.FallenStar, ModContent.ItemType(), ModContent.ItemType(), ItemID.HallowedKey, ItemID.FragmentSolar, ItemID.FragmentVortex, ItemID.FragmentNebula, ItemID.FragmentStardust, ModContent.ItemType(), ItemID.GreaterHealingPotion}, "Use an [i:" + ModContent.ItemType() + "] at Night in the Astral Biome", "[c/FFD700:Astrum Aureus’ program has been executed. Initiate recall.]", "CalamityMod/NPCs/AstrumAureus/AstrumAureus_BossChecklist"); //Plaguebringer Goliath bossChecklist.Call( "AddBoss", 11.5f, ModContent.NPCType(), calamity, "Plaguebringer Goliath", (Func)(() => CalamityWorld.downedPlaguebringer), ModContent.ItemType(), new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}, new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ItemID.GreaterHealingPotion}, "Use an [i:" + ModContent.ItemType() + "] in the Jungle Biome", "[c/00FF00:HOSTILE SPECIMENS TERMINATED. INITIATE RECALL TO HOME BASE.]"); //Ravager bossChecklist.Call( "AddBoss", 12.5f, new List() {ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType()}, calamity, "Ravager", (Func)(() => CalamityWorld.downedScavenger), ModContent.ItemType(), new List() {ModContent.ItemType(), ModContent.ItemType()}, new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ItemID.GreaterHealingPotion}, "Use an [i:" + ModContent.ItemType() + "]", "[c/B22222:The automaton of misshapen victims went looking for the true perpetrator.]", "CalamityMod/NPCs/Ravager/Ravager_BossChecklist"); //Astrum Deus bossChecklist.Call( "AddBoss", 13.5f, new List() { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType()}, calamity, "Astrum Deus", (Func)(() => CalamityWorld.downedStarGod), ModContent.ItemType(), new List() { ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}, new List() { ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ItemID.FragmentSolar, ItemID.FragmentVortex, ItemID.FragmentNebula, ItemID.FragmentStardust, ItemID.GreaterHealingPotion}, "Defeat 3 empowered astral titans or use a [i:" + ModContent.ItemType() + "] at Night", "[c/FFD700:The infected deity retreats to the heavens.]", "CalamityMod/NPCs/AstrumDeus/AstrumDeus_BossChecklist"); //Profaned Guardians bossChecklist.Call( "AddBoss", 14.5f, new List() { ModContent.NPCType()}, calamity, "Profaned Guardians", (Func)(() => CalamityWorld.downedGuardians), ModContent.ItemType(), ModContent.ItemType(), new List() { ModContent.ItemType(), ItemID.GreaterHealingPotion}, "Use a [i:" + ModContent.ItemType() + "] in the Hallow or Underworld Biomes", "[c/FFA500:The guardians must protect their goddess at all costs.]", "CalamityMod/NPCs/ProfanedGuardians/ProfanedGuardians_BossChecklist"); //Bumblebirb bossChecklist.Call( "AddBoss", 14.6f, ModContent.NPCType(), calamity, "Bumblebirb", (Func)(() => CalamityWorld.downedBumble), ModContent.ItemType(), new List() {ModContent.ItemType(), ModContent.ItemType()}, new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ItemID.SuperHealingPotion}, "Use [i:" + ModContent.ItemType() + "] in the Jungle Biome", "[c/FFD700:The failed experiment returns into its reproductive routine.]"); //Providence bossChecklist.Call( "AddBoss", 15f, new List() {ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType()}, calamity, "Providence", (Func)(() => CalamityWorld.downedProvidence), new List() {ModContent.ItemType(), ModContent.ItemType()}, new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}, new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ItemID.SuperHealingPotion}, "Use a [i:" + ModContent.ItemType() + "] in the Hallow or Underworld Biomes", "[c/FFA500:The Profaned Goddess vanishes in a burning blaze.]", "CalamityMod/NPCs/Providence/Providence_BossChecklist"); //Ceaseless Void bossChecklist.Call( "AddBoss", 15.1f, new List() {ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType()}, calamity, "Ceaseless Void", (Func)(() => CalamityWorld.downedSentinel1), ModContent.ItemType(), new List() {ModContent.ItemType(), ModContent.ItemType()}, new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ItemID.SuperHealingPotion}, "Use a [i:" + ModContent.ItemType() + "] in the Dungeon", "[c/4B0082:The rift in time and space has moved away from your reach.]"); //Storm Weaver bossChecklist.Call( "AddBoss", 15.2f, new List() {ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType()}, calamity, "Storm Weaver", (Func)(() => CalamityWorld.downedSentinel2), ModContent.ItemType(), new List() {ModContent.ItemType(), ModContent.ItemType()}, new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ItemID.SuperHealingPotion}, "Use a [i:" + ModContent.ItemType() + "] in Space", "[c/EE82EE:Storm Weaver hid itself once again within the stormfront.]", "CalamityMod/NPCs/StormWeaver/StormWeaver_BossChecklist"); //Signus bossChecklist.Call( "AddBoss", 15.3f, ModContent.NPCType(), calamity, "Signus", (Func)(() => CalamityWorld.downedSentinel3), ModContent.ItemType(), new List() {ModContent.ItemType(), ModContent.ItemType()}, new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ItemID.SuperHealingPotion}, "Use a [i:" + ModContent.ItemType() + "] in the Underworld", "[c/BA55D3:The Devourer's assassin has finished its easy task.]"); //Polterghast bossChecklist.Call( "AddBoss", 15.5f, new List() {ModContent.NPCType(), ModContent.NPCType()}, calamity, "Polterghast", (Func)(() => CalamityWorld.downedPolterghast), ModContent.ItemType(), new List() {ModContent.ItemType(), ModContent.ItemType()}, new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ItemID.SuperHealingPotion}, "Kill 30 phantom spirits or use a [i:" + ModContent.ItemType() + "] in the Dungeon", "[c/B0E0E6:The volatile spirits disperse throughout the depths of the dungeon.]"); //Devourer of Gods bossChecklist.Call( "AddBoss", 16f, new List() {ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType()}, calamity, "Devourer of Gods", (Func)(() => CalamityWorld.downedDoG), ModContent.ItemType(), new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}, new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}, "Use a [i:" + ModContent.ItemType() + "]", "[c/00FFFF:The Devourer of Gods has slain everyone and feasted on their essence.]", "CalamityMod/NPCs/DevourerofGods/DevourerofGods_BossChecklist"); //Yharon bossChecklist.Call( "AddBoss", 17f, ModContent.NPCType(), calamity, "Yharon", (Func)(() => CalamityWorld.downedYharon), ModContent.ItemType(), new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}, new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}, "Use a [i:" + ModContent.ItemType() + "] in the Jungle Biome", (CalamityWorld.buffedEclipse ? "[c/FFA500:Yharon prepared itself for the worst possible outcome.]" : "[c/FFA500:Yharon found you too weak to stay near your gravestone.]"), "CalamityMod/NPCs/Yharon/Yharon_BossChecklist"); //Supreme Calamitas bossChecklist.Call( "AddBoss", 18f, new List() {ModContent.NPCType()}, calamity, "Supreme Calamitas", (Func)(() => CalamityWorld.downedSCal), ModContent.ItemType(), new List() {ModContent.ItemType(), ModContent.ItemType()}, new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}, "Use an [i:" + ModContent.ItemType() + "]", "[c/FFA500:Please don't waste my time.]"); //King Slime bossChecklist.Call( "AddToBossLoot", "Terraria", "KingSlime", new List() {ModContent.ItemType()}); bossChecklist.Call( "AddToBossCollection", "Terraria", "KingSlime", new List() {ModContent.ItemType()}); //Eye of Cthulhu bossChecklist.Call( "AddToBossLoot", "Terraria", "EyeofCthulhu", new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}); bossChecklist.Call( "AddToBossCollection", "Terraria", "EyeofCthulhu", new List() {ModContent.ItemType()}); //Eater of Worlds bossChecklist.Call( "AddToBossCollection", "Terraria", "EaterofWorldsHead", new List() {ModContent.ItemType(), ModContent.ItemType()}); //Brain of Cthulhu bossChecklist.Call( "AddToBossCollection", "Terraria", "BrainofCthulhu", new List() {ModContent.ItemType(), ModContent.ItemType()}); //Queen Bee bossChecklist.Call( "AddToBossLoot", "Terraria", "QueenBee", new List() {ModContent.ItemType()}); bossChecklist.Call( "AddToBossCollection", "Terraria", "QueenBee", new List() {ModContent.ItemType()}); //Skeletron bossChecklist.Call( "AddToBossLoot", "Terraria", "SkeletronHead", new List() {ModContent.ItemType()}); bossChecklist.Call( "AddToBossCollection", "Terraria", "SkeletronHead", new List() {ModContent.ItemType()}); //Wall of Flesh bossChecklist.Call( "AddToBossLoot", "Terraria", "WallofFlesh", new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ItemID.CorruptionKey, ItemID.CrimsonKey}); bossChecklist.Call( "AddToBossCollection", "Terraria", "WallofFlesh", new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}); //The Twins bossChecklist.Call( "AddToBossCollection", "Terraria", "TheTwins", new List() {ModContent.ItemType(), ModContent.ItemType()}); //The Destroyer bossChecklist.Call( "AddToBossLoot", "Terraria", "TheDestroyer", new List() {ModContent.ItemType()}); bossChecklist.Call( "AddToBossCollection", "Terraria", "TheDestroyer", new List() {ModContent.ItemType(), ModContent.ItemType()}); //Skeletron Prime bossChecklist.Call( "AddToBossCollection", "Terraria", "SkeletronPrime", new List() {ModContent.ItemType(), ModContent.ItemType()}); //Plantera bossChecklist.Call( "AddToBossLoot", "Terraria", "Plantera", new List() {ModContent.ItemType(), ModContent.ItemType(), ItemID.JungleKey}); bossChecklist.Call( "AddToBossCollection", "Terraria", "Plantera", new List() {ModContent.ItemType()}); bossChecklist.Call( "AddToBossSpawnItems", "Terraria", "Plantera", new List() {ModContent.ItemType()}); //Golem bossChecklist.Call( "AddToBossLoot", "Terraria", "Golem", new List() {ModContent.ItemType(), ModContent.ItemType()}); bossChecklist.Call( "AddToBossCollection", "Terraria", "Golem", new List() {ModContent.ItemType()}); bossChecklist.Call( "AddToBossSpawnItems", "Terraria", "Golem", new List() {ModContent.ItemType()}); //Duke Fishron bossChecklist.Call( "AddToBossLoot", "Terraria", "DukeFishron", new List() {ModContent.ItemType(), ModContent.ItemType()}); bossChecklist.Call( "AddToBossCollection", "Terraria", "DukeFishron", new List() {ModContent.ItemType()}); //Lunatic Cultist bossChecklist.Call( "AddToBossLoot", "Terraria", "CultistBoss", new List() {ModContent.ItemType(), ModContent.ItemType()}); bossChecklist.Call( "AddToBossCollection", "Terraria", "CultistBoss", new List() {ModContent.ItemType(), ModContent.ItemType()}); bossChecklist.Call( "AddToBossSpawnItems", "Terraria", "CultistBoss", new List() {ModContent.ItemType()}); //Moon Lord bossChecklist.Call( "AddToBossLoot", "Terraria", "MoonLord", new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}); bossChecklist.Call( "AddToBossCollection", "Terraria", "MoonLord", new List() {ModContent.ItemType()}); //Betsy bossChecklist.Call( "AddToBossLoot", "Terraria", "DD2Betsy", new List() {ModContent.ItemType()}); //Blood Moon bossChecklist.Call( "AddToBossLoot", "Terraria", "Blood Moon", new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}); bossChecklist.Call( "AddToBossSpawnItems", "Terraria", "Blood Moon", new List() {ModContent.ItemType()}); //Goblin Army bossChecklist.Call( "AddToBossLoot", "Terraria", "Goblin Army", new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}); //Pirates bossChecklist.Call( "AddToBossLoot", "Terraria", "Pirate Invasion", new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}); //Solar Eclipse bossChecklist.Call( "AddToBossLoot", "Terraria", "Solar Eclipse", new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}); //Pumpkin Moon bossChecklist.Call( "AddToBossLoot", "Terraria", "Pumpkin Moon", new List() {ModContent.ItemType()}); //Pumpking bossChecklist.Call( "AddToBossLoot", "Terraria", "Pumpking", new List() {ModContent.ItemType()}); //Frost Moon bossChecklist.Call( "AddToBossLoot", "Terraria", "Frost Moon", new List() {ModContent.ItemType(), ModContent.ItemType()}); //Ice Queen bossChecklist.Call( "AddToBossLoot", "Terraria", "Ice Queen", new List() {ModContent.ItemType()}); //Martian Madness bossChecklist.Call( "AddToBossLoot", "Terraria", "Martian Madness", new List() {ModContent.ItemType(), ModContent.ItemType()}); //Martian Saucer bossChecklist.Call( "AddToBossLoot", "Terraria", "Martian Saucer", new List() {ModContent.ItemType()}); //Lunar Events bossChecklist.Call( "AddToBossLoot", "Terraria", "Lunar Event", new List() {ModContent.ItemType()}); } } private static void CensusSupport() { Mod censusMod = ModLoader.GetMod("Census"); if (censusMod != null) { censusMod.Call("TownNPCCondition", ModContent.NPCType(), "Defeat a Giant Clam after defeating the Desert Scourge"); 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"); } } private static void SummonersAssociationSupport() { Mod SummonersAssociation = ModLoader.GetMod("SummonersAssociation"); if(SummonersAssociation != null) { SummonersAssociation.Call("AddMinionInfo", ModContent.ItemType(), ModContent.BuffType(), ModContent.ProjectileType()); SummonersAssociation.Call("AddMinionInfo", ModContent.ItemType(), ModContent.BuffType(), ModContent.ProjectileType()); SummonersAssociation.Call("AddMinionInfo", ModContent.ItemType(), ModContent.BuffType(), ModContent.ProjectileType()); SummonersAssociation.Call("AddMinionInfo", ModContent.ItemType(), ModContent.BuffType(), ModContent.ProjectileType()); SummonersAssociation.Call("AddMinionInfo", ModContent.ItemType(), ModContent.BuffType(), ModContent.ProjectileType()); SummonersAssociation.Call("AddMinionInfo", ModContent.ItemType(), ModContent.BuffType(), ModContent.ProjectileType()); SummonersAssociation.Call("AddMinionInfo", ModContent.ItemType(), ModContent.BuffType(), ModContent.ProjectileType()); SummonersAssociation.Call("AddMinionInfo", ModContent.ItemType(), ModContent.BuffType(), ModContent.ProjectileType()); SummonersAssociation.Call("AddMinionInfo", ModContent.ItemType(), ModContent.BuffType(), ModContent.ProjectileType()); SummonersAssociation.Call("AddMinionInfo", ModContent.ItemType(), ModContent.BuffType(), ModContent.ProjectileType()); SummonersAssociation.Call("AddMinionInfo", ModContent.ItemType(), ModContent.BuffType(), ModContent.ProjectileType()); SummonersAssociation.Call("AddMinionInfo", ModContent.ItemType(), ModContent.BuffType(), ModContent.ProjectileType()); SummonersAssociation.Call("AddMinionInfo", ModContent.ItemType(), ModContent.BuffType(), ModContent.ProjectileType()); SummonersAssociation.Call("AddMinionInfo", ModContent.ItemType(), ModContent.BuffType(), ModContent.ProjectileType()); SummonersAssociation.Call("AddMinionInfo", ModContent.ItemType(), ModContent.BuffType(), new List() {ModContent.ProjectileType(), ModContent.ProjectileType(), ModContent.ProjectileType()}, new List() {(1f-0.6666666f), 0.3333333f, 0.3333333f}); //Entropy's Vigil is a bruh moment SummonersAssociation.Call("AddMinionInfo", ModContent.ItemType(), ModContent.BuffType(), ModContent.ProjectileType()); SummonersAssociation.Call("AddMinionInfo", ModContent.ItemType(), ModContent.BuffType(), new List() {ModContent.ProjectileType(), ModContent.ProjectileType()}); SummonersAssociation.Call("AddMinionInfo", ModContent.ItemType(), ModContent.BuffType(), ModContent.ProjectileType()); SummonersAssociation.Call("AddMinionInfo", ModContent.ItemType(), ModContent.BuffType(), ModContent.ProjectileType()); SummonersAssociation.Call("AddMinionInfo", ModContent.ItemType(), ModContent.BuffType(), ModContent.ProjectileType()); SummonersAssociation.Call("AddMinionInfo", ModContent.ItemType(), ModContent.BuffType(), ModContent.ProjectileType()); SummonersAssociation.Call("AddMinionInfo", ModContent.ItemType(), ModContent.BuffType(), ModContent.ProjectileType()); SummonersAssociation.Call("AddMinionInfo", ModContent.ItemType(), ModContent.BuffType(), ModContent.ProjectileType()); SummonersAssociation.Call("AddMinionInfo", ModContent.ItemType(), ModContent.BuffType(), ModContent.ProjectileType(), 1f); SummonersAssociation.Call("AddMinionInfo", ModContent.ItemType(), ModContent.BuffType(), ModContent.ProjectileType()); SummonersAssociation.Call("AddMinionInfo", ModContent.ItemType(), ModContent.BuffType(), ModContent.ProjectileType()); } } } }