From cfbea07013511dd1fd30cef51a7d3379efc8732e Mon Sep 17 00:00:00 2001 From: GinYuH <> Date: Sat, 16 Jul 2022 23:04:26 -0700 Subject: [PATCH] wikithis dupe name fixes --- CalamityMod.cs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/CalamityMod.cs b/CalamityMod.cs index 022058a2b4..19623dc9a1 100644 --- a/CalamityMod.cs +++ b/CalamityMod.cs @@ -17,10 +17,14 @@ using CalamityMod.FluidSimulation; using CalamityMod.ILEditing; using CalamityMod.Items; using CalamityMod.Items.Dyes.HairDye; +using CalamityMod.Items.PermanentBoosters; +using CalamityMod.Items.Pets; using CalamityMod.Items.VanillaArmorChanges; +using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Localization; using CalamityMod.NPCs.AdultEidolonWyrm; using CalamityMod.NPCs.AquaticScourge; +using CalamityMod.NPCs.Astral; using CalamityMod.NPCs.AstrumAureus; using CalamityMod.NPCs.AstrumDeus; using CalamityMod.NPCs.BrimstoneElemental; @@ -47,6 +51,7 @@ using CalamityMod.NPCs.Ravager; using CalamityMod.NPCs.Signus; using CalamityMod.NPCs.SlimeGod; using CalamityMod.NPCs.StormWeaver; +using CalamityMod.NPCs.SulphurousSea; using CalamityMod.NPCs.SupremeCalamitas; using CalamityMod.NPCs.Yharon; using CalamityMod.Particles; @@ -212,8 +217,25 @@ namespace CalamityMod LoadClient(); GeneralParticleHandler.Load(); ForegroundDrawing.ForegroundManager.Load(); + + // Wikithis support if (wikithis is not null) + { wikithis.Call("AddModURL", this, CalamityWikiURL); + + // Clear up name conflicts + // Items + wikithis.Call(1, new List() { ModContent.ItemType() }, "Blood Orange (calamity)"); + wikithis.Call(1, new List() { ModContent.ItemType() }, "Elderberry (calamity)"); + wikithis.Call(1, new List() { ModContent.ItemType() }, "Pineapple (calamity)"); + wikithis.Call(1, new List() { ModContent.ItemType() }, "Trash Can (pet)"); + wikithis.Call(1, new List() { ModContent.ItemType() }, "Butcher (weapon)"); + wikithis.Call(1, new List() { ModContent.ItemType() }, "Sandstorm (weapon)"); + // Enemies + wikithis.Call(2, new List() { ModContent.NPCType() }, "Catfish (enemy)"); + wikithis.Call(2, new List() { ModContent.NPCType() }, "Hive (enemy)"); + wikithis.Call(2, new List() { ModContent.NPCType() }, "Tooth Ball (Old Duke)"); + } } CooldownRegistry.Load();