diff --git a/Items/TreasureBags/AstrageldonBag.cs b/Items/TreasureBags/AstrumAureusBag.cs similarity index 97% rename from Items/TreasureBags/AstrageldonBag.cs rename to Items/TreasureBags/AstrumAureusBag.cs index c32289be7f..d0c861eba3 100644 --- a/Items/TreasureBags/AstrageldonBag.cs +++ b/Items/TreasureBags/AstrumAureusBag.cs @@ -19,7 +19,8 @@ using Microsoft.Xna.Framework; namespace CalamityMod.Items.TreasureBags { - public class AstrageldonBag : ModItem + [LegacyName("AstrageldonBag")] + public class AstrumAureusBag : ModItem { public override int BossBagNPC => ModContent.NPCType(); diff --git a/Items/TreasureBags/AstrageldonBag.png b/Items/TreasureBags/AstrumAureusBag.png similarity index 100% rename from Items/TreasureBags/AstrageldonBag.png rename to Items/TreasureBags/AstrumAureusBag.png diff --git a/Items/TreasureBags/DraedonTreasureBag.cs b/Items/TreasureBags/DraedonBag.cs similarity index 97% rename from Items/TreasureBags/DraedonTreasureBag.cs rename to Items/TreasureBags/DraedonBag.cs index e9504cb987..8d25827a5f 100644 --- a/Items/TreasureBags/DraedonTreasureBag.cs +++ b/Items/TreasureBags/DraedonBag.cs @@ -14,7 +14,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.TreasureBags { - public class DraedonTreasureBag : ModItem + [LegacyName("DraedonTreasureBag")] + public class DraedonBag : ModItem { public override int BossBagNPC => ModContent.NPCType(); diff --git a/Items/TreasureBags/DraedonTreasureBag.png b/Items/TreasureBags/DraedonBag.png similarity index 100% rename from Items/TreasureBags/DraedonTreasureBag.png rename to Items/TreasureBags/DraedonBag.png diff --git a/Items/TreasureBags/BumblebirbBag.cs b/Items/TreasureBags/DragonfollyBag.cs similarity index 97% rename from Items/TreasureBags/BumblebirbBag.cs rename to Items/TreasureBags/DragonfollyBag.cs index 7eb06a5624..5add24dd11 100644 --- a/Items/TreasureBags/BumblebirbBag.cs +++ b/Items/TreasureBags/DragonfollyBag.cs @@ -16,7 +16,8 @@ using Microsoft.Xna.Framework; namespace CalamityMod.Items.TreasureBags { - public class BumblebirbBag : ModItem + [LegacyName("BumblebirbBag")] + public class DragonfollyBag : ModItem { public override int BossBagNPC => ModContent.NPCType(); diff --git a/Items/TreasureBags/BumblebirbBag.png b/Items/TreasureBags/DragonfollyBag.png similarity index 100% rename from Items/TreasureBags/BumblebirbBag.png rename to Items/TreasureBags/DragonfollyBag.png diff --git a/Items/TreasureBags/FleshyGeodeT1.cs b/Items/TreasureBags/FleshyGeode.cs similarity index 95% rename from Items/TreasureBags/FleshyGeodeT1.cs rename to Items/TreasureBags/FleshyGeode.cs index d55356dd2f..c8ae2df58e 100644 --- a/Items/TreasureBags/FleshyGeodeT1.cs +++ b/Items/TreasureBags/FleshyGeode.cs @@ -5,7 +5,8 @@ using Terraria.ID; namespace CalamityMod.Items.TreasureBags { - public class FleshyGeodeT1 : ModItem + [LegacyName("FleshyGeodeT1")] + public class FleshyGeode : ModItem { public override void SetStaticDefaults() { diff --git a/Items/TreasureBags/FleshyGeodeT1.png b/Items/TreasureBags/FleshyGeode.png similarity index 100% rename from Items/TreasureBags/FleshyGeodeT1.png rename to Items/TreasureBags/FleshyGeode.png diff --git a/Items/TreasureBags/FleshyGeodeT2.cs b/Items/TreasureBags/NecromanticGeode.cs similarity index 96% rename from Items/TreasureBags/FleshyGeodeT2.cs rename to Items/TreasureBags/NecromanticGeode.cs index 8a222b2bcc..c13fa072cd 100644 --- a/Items/TreasureBags/FleshyGeodeT2.cs +++ b/Items/TreasureBags/NecromanticGeode.cs @@ -4,7 +4,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.TreasureBags { - public class FleshyGeodeT2 : ModItem + [LegacyName("FleshyGeodeT2")] + public class NecromanticGeode : ModItem { public override void SetStaticDefaults() { diff --git a/Items/TreasureBags/FleshyGeodeT2.png b/Items/TreasureBags/NecromanticGeode.png similarity index 100% rename from Items/TreasureBags/FleshyGeodeT2.png rename to Items/TreasureBags/NecromanticGeode.png diff --git a/Items/TreasureBags/RavagerBag.cs b/Items/TreasureBags/RavagerBag.cs index cc867e4bdc..1a7acdabfb 100644 --- a/Items/TreasureBags/RavagerBag.cs +++ b/Items/TreasureBags/RavagerBag.cs @@ -52,8 +52,8 @@ namespace CalamityMod.Items.TreasureBags player.TryGettingDevArmor(s); // Materials - DropHelper.DropItemCondition(s, player, ModContent.ItemType(), !DownedBossSystem.downedProvidence); - DropHelper.DropItemCondition(s, player, ModContent.ItemType(), DownedBossSystem.downedProvidence); + DropHelper.DropItemCondition(s, player, ModContent.ItemType(), !DownedBossSystem.downedProvidence); + DropHelper.DropItemCondition(s, player, ModContent.ItemType(), DownedBossSystem.downedProvidence); // Weapons float w = DropHelper.BagWeaponDropRateFloat; diff --git a/Items/TreasureBags/SCalBag.cs b/Items/TreasureBags/SupremeCalamitasCoffer.cs similarity index 97% rename from Items/TreasureBags/SCalBag.cs rename to Items/TreasureBags/SupremeCalamitasCoffer.cs index d04b688837..19055ebe8d 100644 --- a/Items/TreasureBags/SCalBag.cs +++ b/Items/TreasureBags/SupremeCalamitasCoffer.cs @@ -17,7 +17,8 @@ using SCalBoss = CalamityMod.NPCs.SupremeCalamitas.SupremeCalamitas; namespace CalamityMod.Items.TreasureBags { - public class SCalBag : ModItem + [LegacyName("SCalBag")] + public class SupremeCalamitasCoffer : ModItem { public override int BossBagNPC => ModContent.NPCType(); diff --git a/Items/TreasureBags/SCalBag.png b/Items/TreasureBags/SupremeCalamitasCoffer.png similarity index 100% rename from Items/TreasureBags/SCalBag.png rename to Items/TreasureBags/SupremeCalamitasCoffer.png diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index 2d647f8556..fdaa6156f8 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -415,7 +415,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("AstrumAureus", out float order); int type = NPCType(); int summon = ItemType(); - List loot = new List() { ItemType(), ItemType(), ItemID.FallenStar, ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemID.GreaterHealingPotion }; + List loot = new List() { ItemType(), ItemType(), ItemID.FallenStar, ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemID.GreaterHealingPotion }; List collection = new List() { ItemType(), ItemType(), ItemType() }; string instructions = $"Use an [i:{summon}] at Night in the Astral Biome"; string despawn = CalamityUtils.ColorMessage("Astrum Aureus’ program has been executed. Initiate recall.", new Color(0xFF, 0xD7, 0x00)); @@ -441,7 +441,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("Ravager", out float order); List segments = new List() { NPCType(), NPCType(), NPCType(), NPCType(), NPCType(), NPCType() }; int summon = ItemType(); - List loot = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemID.GreaterHealingPotion }; + List loot = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemID.GreaterHealingPotion }; List collection = new List() { ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon}]"; string despawn = CalamityUtils.ColorMessage("The automaton of misshapen victims went looking for the true perpetrator.", new Color(0xB2, 0x22, 0x22)); @@ -483,7 +483,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("Dragonfolly", out float order); int type = NPCType(); int summon = ItemType(); - List loot = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List loot = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; List collection = new List() { ItemType(), ItemType(), ItemType() }; string instructions = $"Use [i:{summon}] in the Jungle Biome"; string despawn = CalamityUtils.ColorMessage("The failed experiment returns to its reproductive routine.", new Color(0xFF, 0xD7, 0x00)); @@ -598,7 +598,7 @@ namespace CalamityMod { BossDifficulty.TryGetValue("ExoMechs", out float order); List bosses = new List() { NPCType(), NPCType(), NPCType(), NPCType() }; - List loot = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List loot = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = "By using a high-tech computer"; string despawn = CalamityUtils.ColorMessage("An imperfection after all... what a shame.", new Color(0x7F, 0xFF, 0xD4)); @@ -614,7 +614,7 @@ namespace CalamityMod int summon2 = ItemType(); int altar = ItemType(); List summons = new List() { summon1, summon2 }; - List loot = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List loot = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use [i:{summon1}] or a [i:{summon2}] as offering at an [i:{altar}]"; string despawn = CalamityUtils.ColorMessage("Please don't waste my time.", new Color(0xFF, 0xA5, 0x00)); diff --git a/NPCs/AstrumAureus/AstrumAureus.cs b/NPCs/AstrumAureus/AstrumAureus.cs index d48bee56a7..8801acf822 100644 --- a/NPCs/AstrumAureus/AstrumAureus.cs +++ b/NPCs/AstrumAureus/AstrumAureus.cs @@ -325,7 +325,7 @@ namespace CalamityMod.NPCs.AstrumAureus public override void ModifyNPCLoot(NPCLoot npcLoot) { // Boss bag - npcLoot.Add(ItemDropRule.BossBag(ModContent.ItemType())); + npcLoot.Add(ItemDropRule.BossBag(ModContent.ItemType())); // Normal drops: Everything that would otherwise be in the bag var normalOnly = npcLoot.DefineNormalOnlyDropSet(); diff --git a/NPCs/Bumblebirb/Bumblefuck.cs b/NPCs/Bumblebirb/Bumblefuck.cs index 0d768cf26b..2befa5f7ea 100644 --- a/NPCs/Bumblebirb/Bumblefuck.cs +++ b/NPCs/Bumblebirb/Bumblefuck.cs @@ -408,7 +408,7 @@ namespace CalamityMod.NPCs.Bumblebirb public override void ModifyNPCLoot(NPCLoot npcLoot) { - npcLoot.Add(ItemDropRule.BossBag(ModContent.ItemType())); + npcLoot.Add(ItemDropRule.BossBag(ModContent.ItemType())); // Normal drops: Everything that would otherwise be in the bag var normalOnly = npcLoot.DefineNormalOnlyDropSet(); diff --git a/NPCs/ExoMechs/Ares/AresBody.cs b/NPCs/ExoMechs/Ares/AresBody.cs index f5792f9e07..8ed83d06d0 100644 --- a/NPCs/ExoMechs/Ares/AresBody.cs +++ b/NPCs/ExoMechs/Ares/AresBody.cs @@ -1337,7 +1337,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares mainDrops.Add(ItemDropRule.ByCondition(DropHelper.If(() => !DownedBossSystem.downedExoMechs), ModContent.ItemType())); // Treasure bag - npcLoot.Add(ItemDropRule.BossBagByCondition(DropHelper.If(CanDropLoot), ModContent.ItemType())); + npcLoot.Add(ItemDropRule.BossBagByCondition(DropHelper.If(CanDropLoot), ModContent.ItemType())); // All other drops are contained in the bag, so they only drop directly on Normal if (!Main.expertMode) diff --git a/NPCs/Ravager/RavagerBody.cs b/NPCs/Ravager/RavagerBody.cs index 66a748fa87..0ee53fa372 100644 --- a/NPCs/Ravager/RavagerBody.cs +++ b/NPCs/Ravager/RavagerBody.cs @@ -837,8 +837,8 @@ namespace CalamityMod.NPCs.Ravager normalOnly.Add(ModContent.ItemType(), 20); // Materials - normalOnly.Add(ItemDropRule.ByCondition(DropHelper.If(() => !DownedBossSystem.downedProvidence), ModContent.ItemType())); - normalOnly.Add(ItemDropRule.ByCondition(DropHelper.If(() => DownedBossSystem.downedProvidence), ModContent.ItemType())); + normalOnly.Add(ItemDropRule.ByCondition(DropHelper.If(() => !DownedBossSystem.downedProvidence), ModContent.ItemType())); + normalOnly.Add(ItemDropRule.ByCondition(DropHelper.If(() => DownedBossSystem.downedProvidence), ModContent.ItemType())); // Equipment normalOnly.Add(ModContent.ItemType(), 3); diff --git a/NPCs/SupremeCalamitas/SupremeCalamitas.cs b/NPCs/SupremeCalamitas/SupremeCalamitas.cs index 6278d7ffd9..43a2d02736 100644 --- a/NPCs/SupremeCalamitas/SupremeCalamitas.cs +++ b/NPCs/SupremeCalamitas/SupremeCalamitas.cs @@ -2499,7 +2499,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas public override void ModifyNPCLoot(NPCLoot npcLoot) { - npcLoot.Add(ItemDropRule.BossBag(ModContent.ItemType())); + npcLoot.Add(ItemDropRule.BossBag(ModContent.ItemType())); // Normal drops: Everything that would otherwise be in the bag var normalOnly = npcLoot.DefineNormalOnlyDropSet();