diff --git a/Items/Accessories/Affliction.cs b/Items/Accessories/Affliction.cs index 1b9e5f3273..0b75a7ce7b 100644 --- a/Items/Accessories/Affliction.cs +++ b/Items/Accessories/Affliction.cs @@ -23,7 +23,6 @@ namespace CalamityMod.Items.Accessories item.height = 44; item.value = CalamityGlobalItem.Rarity13BuyPrice; item.accessory = true; - item.expert = true; item.rare = ItemRarityID.Red; } diff --git a/Items/Accessories/AmalgamatedBrain.cs b/Items/Accessories/AmalgamatedBrain.cs index 86d3e0e426..9fe71e48db 100644 --- a/Items/Accessories/AmalgamatedBrain.cs +++ b/Items/Accessories/AmalgamatedBrain.cs @@ -23,7 +23,6 @@ namespace CalamityMod.Items.Accessories item.width = 34; item.height = 34; item.value = CalamityGlobalItem.Rarity4BuyPrice; - item.expert = true; item.rare = ItemRarityID.LightRed; item.accessory = true; } diff --git a/Items/Accessories/AquaticEmblem.cs b/Items/Accessories/AquaticEmblem.cs index 4b64313146..d3edff7aac 100644 --- a/Items/Accessories/AquaticEmblem.cs +++ b/Items/Accessories/AquaticEmblem.cs @@ -25,7 +25,6 @@ namespace CalamityMod.Items.Accessories item.value = CalamityGlobalItem.Rarity5BuyPrice; item.rare = ItemRarityID.Pink; item.accessory = true; - item.expert = true; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/ArcanumoftheVoid.cs b/Items/Accessories/ArcanumoftheVoid.cs index ef729c27f7..ec885d4ba3 100644 --- a/Items/Accessories/ArcanumoftheVoid.cs +++ b/Items/Accessories/ArcanumoftheVoid.cs @@ -23,7 +23,6 @@ namespace CalamityMod.Items.Accessories item.value = CalamityGlobalItem.Rarity12BuyPrice; item.rare = ItemRarityID.Purple; item.Calamity().customRarity = CalamityRarity.Turquoise; - item.expert = true; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/AstralArcanum.cs b/Items/Accessories/AstralArcanum.cs index 3ef9954f87..9919b1bd3f 100644 --- a/Items/Accessories/AstralArcanum.cs +++ b/Items/Accessories/AstralArcanum.cs @@ -29,7 +29,6 @@ namespace CalamityMod.Items.Accessories item.height = 26; item.value = CalamityGlobalItem.Rarity12BuyPrice; item.accessory = true; - item.expert = true; item.Calamity().customRarity = CalamityRarity.Turquoise; } diff --git a/Items/Accessories/AstralBulwark.cs b/Items/Accessories/AstralBulwark.cs index 6d74e72ce3..2e332898ba 100644 --- a/Items/Accessories/AstralBulwark.cs +++ b/Items/Accessories/AstralBulwark.cs @@ -20,7 +20,6 @@ namespace CalamityMod.Items.Accessories item.width = 26; item.height = 26; item.value = CalamityGlobalItem.Rarity9BuyPrice; - item.expert = true; item.rare = ItemRarityID.Cyan; item.accessory = true; } diff --git a/Items/Accessories/BlazingCore.cs b/Items/Accessories/BlazingCore.cs index 4358680b98..8b6fe6460b 100644 --- a/Items/Accessories/BlazingCore.cs +++ b/Items/Accessories/BlazingCore.cs @@ -27,7 +27,6 @@ namespace CalamityMod.Items.Accessories item.width = 42; item.height = 46; item.accessory = true; - item.expert = true; item.rare = ItemRarityID.Purple; item.value = CalamityGlobalItem.Rarity12BuyPrice; } diff --git a/Items/Accessories/BloodflareCore.cs b/Items/Accessories/BloodflareCore.cs index ce0995e20b..f716fd3a73 100644 --- a/Items/Accessories/BloodflareCore.cs +++ b/Items/Accessories/BloodflareCore.cs @@ -18,7 +18,6 @@ namespace CalamityMod.Items.Accessories item.width = 26; item.height = 26; item.value = CalamityGlobalItem.Rarity13BuyPrice; - item.expert = true; item.rare = ItemRarityID.Red; item.accessory = true; } diff --git a/Items/Accessories/BloodyWormScarf.cs b/Items/Accessories/BloodyWormScarf.cs index abaeaa2f12..fd0843eb27 100644 --- a/Items/Accessories/BloodyWormScarf.cs +++ b/Items/Accessories/BloodyWormScarf.cs @@ -18,7 +18,6 @@ namespace CalamityMod.Items.Accessories item.width = 26; item.height = 42; item.value = CalamityGlobalItem.Rarity4BuyPrice; - item.expert = true; item.rare = ItemRarityID.LightRed; item.accessory = true; } diff --git a/Items/Accessories/BloodyWormTooth.cs b/Items/Accessories/BloodyWormTooth.cs index bdeba77c3d..d9a84740ff 100644 --- a/Items/Accessories/BloodyWormTooth.cs +++ b/Items/Accessories/BloodyWormTooth.cs @@ -19,7 +19,6 @@ namespace CalamityMod.Items.Accessories item.width = 12; item.height = 15; item.value = CalamityGlobalItem.Rarity3BuyPrice; - item.expert = true; item.rare = ItemRarityID.Orange; item.accessory = true; } diff --git a/Items/Accessories/Calamity.cs b/Items/Accessories/Calamity.cs index 4118551b08..3f412e455d 100644 --- a/Items/Accessories/Calamity.cs +++ b/Items/Accessories/Calamity.cs @@ -29,7 +29,6 @@ namespace CalamityMod.Items.Accessories item.height = 108; item.rare = ItemRarityID.Purple; item.value = CalamityGlobalItem.RarityVioletBuyPrice; - item.expert = true; item.accessory = true; } diff --git a/Items/Accessories/CalamityRing.cs b/Items/Accessories/CalamityRing.cs index e6c0c802e5..0fc294bd77 100644 --- a/Items/Accessories/CalamityRing.cs +++ b/Items/Accessories/CalamityRing.cs @@ -25,7 +25,6 @@ namespace CalamityMod.Items.Accessories item.value = CalamityGlobalItem.Rarity7BuyPrice; item.rare = ItemRarityID.Lime; item.accessory = true; - item.expert = true; } public override bool CanEquipAccessory(Player player, int slot) => !player.Calamity().calamityRing; diff --git a/Items/Accessories/CoreOfTheBloodGod.cs b/Items/Accessories/CoreOfTheBloodGod.cs index e630de6917..d565bc6f28 100644 --- a/Items/Accessories/CoreOfTheBloodGod.cs +++ b/Items/Accessories/CoreOfTheBloodGod.cs @@ -25,7 +25,6 @@ namespace CalamityMod.Items.Accessories { item.width = item.height = 48; item.value = CalamityGlobalItem.Rarity14BuyPrice; - item.expert = true; item.rare = ItemRarityID.Red; item.accessory = true; } diff --git a/Items/Accessories/DraedonsHeart.cs b/Items/Accessories/DraedonsHeart.cs index 4da62363ef..c8fdcbffa5 100644 --- a/Items/Accessories/DraedonsHeart.cs +++ b/Items/Accessories/DraedonsHeart.cs @@ -22,7 +22,6 @@ namespace CalamityMod.Items.Accessories item.width = 52; item.height = 68; item.accessory = true; - item.expert = true; item.rare = ItemRarityID.Red; item.value = CalamityGlobalItem.RarityVioletBuyPrice; item.Calamity().customRarity = CalamityRarity.Violet; diff --git a/Items/Accessories/DynamoStemCells.cs b/Items/Accessories/DynamoStemCells.cs index 5abcd03247..929eeb6837 100644 --- a/Items/Accessories/DynamoStemCells.cs +++ b/Items/Accessories/DynamoStemCells.cs @@ -22,7 +22,6 @@ Ranged weapons have a chance to fire mini swarmers"); item.value = CalamityGlobalItem.Rarity11BuyPrice; item.rare = ItemRarityID.Purple; item.accessory = true; - item.expert = true; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/FungalClump.cs b/Items/Accessories/FungalClump.cs index 471db96160..eb9d60b32a 100644 --- a/Items/Accessories/FungalClump.cs +++ b/Items/Accessories/FungalClump.cs @@ -23,7 +23,6 @@ namespace CalamityMod.Items.Accessories item.width = 20; item.height = 26; item.value = CalamityGlobalItem.Rarity2BuyPrice; - item.expert = true; item.rare = ItemRarityID.Green; item.accessory = true; } diff --git a/Items/Accessories/Gehenna.cs b/Items/Accessories/Gehenna.cs index c6cb8c73cf..877926c245 100644 --- a/Items/Accessories/Gehenna.cs +++ b/Items/Accessories/Gehenna.cs @@ -23,7 +23,6 @@ namespace CalamityMod.Items.Accessories item.width = 26; item.height = 26; item.value = CalamityGlobalItem.Rarity5BuyPrice; - item.expert = true; item.rare = ItemRarityID.Pink; item.accessory = true; } diff --git a/Items/Accessories/GravistarSabaton.cs b/Items/Accessories/GravistarSabaton.cs index 5d72a08f37..c366339a2f 100644 --- a/Items/Accessories/GravistarSabaton.cs +++ b/Items/Accessories/GravistarSabaton.cs @@ -20,7 +20,6 @@ namespace CalamityMod.Items.Accessories item.height = 22; item.value = CalamityGlobalItem.Rarity7BuyPrice; item.accessory = true; - item.expert = true; item.rare = ItemRarityID.Lime; } diff --git a/Items/Accessories/LeviathanAmbergris.cs b/Items/Accessories/LeviathanAmbergris.cs index 9f2a4050e0..ea9ba64621 100644 --- a/Items/Accessories/LeviathanAmbergris.cs +++ b/Items/Accessories/LeviathanAmbergris.cs @@ -24,7 +24,6 @@ namespace CalamityMod.Items.Accessories item.height = 22; item.value = CalamityGlobalItem.Rarity7BuyPrice; item.accessory = true; - item.expert = true; item.rare = ItemRarityID.Lime; } diff --git a/Items/Accessories/ManaOverloader.cs b/Items/Accessories/ManaOverloader.cs index ececdc1c4b..fc9f72b6b2 100644 --- a/Items/Accessories/ManaOverloader.cs +++ b/Items/Accessories/ManaOverloader.cs @@ -24,7 +24,6 @@ namespace CalamityMod.Items.Accessories item.value = CalamityGlobalItem.Rarity4BuyPrice; item.rare = ItemRarityID.LightRed; item.accessory = true; - item.expert = true; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/MutatedTruffle.cs b/Items/Accessories/MutatedTruffle.cs index 7a04a112ec..186cba8951 100644 --- a/Items/Accessories/MutatedTruffle.cs +++ b/Items/Accessories/MutatedTruffle.cs @@ -23,7 +23,6 @@ namespace CalamityMod.Items.Accessories item.height = 26; item.value = CalamityGlobalItem.Rarity13BuyPrice; item.rare = ItemRarityID.Red; - item.expert = true; item.accessory = true; } diff --git a/Items/Accessories/NebulousCore.cs b/Items/Accessories/NebulousCore.cs index 8164838826..4cd87e3fb6 100644 --- a/Items/Accessories/NebulousCore.cs +++ b/Items/Accessories/NebulousCore.cs @@ -24,7 +24,6 @@ namespace CalamityMod.Items.Accessories item.height = 14; item.value = CalamityGlobalItem.Rarity14BuyPrice; item.accessory = true; - item.expert = true; item.rare = ItemRarityID.Red; } diff --git a/Items/Accessories/OceanCrest.cs b/Items/Accessories/OceanCrest.cs index bf28466789..ad594f0245 100644 --- a/Items/Accessories/OceanCrest.cs +++ b/Items/Accessories/OceanCrest.cs @@ -19,7 +19,6 @@ namespace CalamityMod.Items.Accessories item.value = CalamityGlobalItem.Rarity2BuyPrice; item.rare = ItemRarityID.Green; item.accessory = true; - item.expert = true; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/RottenBrain.cs b/Items/Accessories/RottenBrain.cs index 7bfd7f5e34..d6d7a2373b 100644 --- a/Items/Accessories/RottenBrain.cs +++ b/Items/Accessories/RottenBrain.cs @@ -21,7 +21,6 @@ namespace CalamityMod.Items.Accessories item.width = 34; item.height = 34; item.value = CalamityGlobalItem.Rarity3BuyPrice; - item.expert = true; item.rare = ItemRarityID.Orange; item.accessory = true; } diff --git a/Items/Accessories/SpectralVeil.cs b/Items/Accessories/SpectralVeil.cs index e85cfc9b89..88924b10b4 100644 --- a/Items/Accessories/SpectralVeil.cs +++ b/Items/Accessories/SpectralVeil.cs @@ -26,7 +26,6 @@ namespace CalamityMod.Items.Accessories item.value = CalamityGlobalItem.Rarity12BuyPrice; item.rare = ItemRarityID.Purple; item.Calamity().customRarity = CalamityRarity.Turquoise; - item.expert = true; item.accessory = true; } diff --git a/Items/Accessories/TheAmalgam.cs b/Items/Accessories/TheAmalgam.cs index 1073d93cd9..6600c15cd9 100644 --- a/Items/Accessories/TheAmalgam.cs +++ b/Items/Accessories/TheAmalgam.cs @@ -27,7 +27,6 @@ namespace CalamityMod.Items.Accessories item.width = 34; item.height = 34; item.value = CalamityGlobalItem.Rarity14BuyPrice; - item.expert = true; item.rare = ItemRarityID.Cyan; item.accessory = true; } @@ -61,7 +60,7 @@ namespace CalamityMod.Items.Accessories ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ItemType()); recipe.AddIngredient(ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 10); + recipe.AddIngredient(ItemType(), 10); recipe.AddIngredient(ItemType(), 15); recipe.AddIngredient(ItemType(), 15); recipe.AddIngredient(ItemType(), 5); diff --git a/Items/Accessories/TheCamper.cs b/Items/Accessories/TheCamper.cs index eb65a179e4..e7f04bfd4e 100644 --- a/Items/Accessories/TheCamper.cs +++ b/Items/Accessories/TheCamper.cs @@ -33,7 +33,6 @@ namespace CalamityMod.Items.Accessories item.height = 26; item.value = CalamityGlobalItem.Rarity7BuyPrice; item.rare = ItemRarityID.Lime; - item.expert = true; item.accessory = true; item.defense = 10; } diff --git a/Items/Accessories/ToxicHeart.cs b/Items/Accessories/ToxicHeart.cs index a8c739f7f5..8d2cf784c9 100644 --- a/Items/Accessories/ToxicHeart.cs +++ b/Items/Accessories/ToxicHeart.cs @@ -22,7 +22,6 @@ namespace CalamityMod.Items.Accessories item.width = 28; item.height = 32; item.value = CalamityGlobalItem.Rarity8BuyPrice; - item.expert = true; item.rare = ItemRarityID.Yellow; item.accessory = true; } diff --git a/Items/Accessories/VoidofExtinction.cs b/Items/Accessories/VoidofExtinction.cs index 6d6390dab0..a26786851e 100644 --- a/Items/Accessories/VoidofExtinction.cs +++ b/Items/Accessories/VoidofExtinction.cs @@ -31,7 +31,6 @@ namespace CalamityMod.Items.Accessories item.width = 26; item.height = 26; item.value = CalamityGlobalItem.Rarity8BuyPrice; - item.expert = true; item.rare = ItemRarityID.Yellow; item.accessory = true; } diff --git a/Items/Accessories/Wings/SoulofCryogen.cs b/Items/Accessories/Wings/SoulofCryogen.cs index 1635b711df..2250d1a8ff 100644 --- a/Items/Accessories/Wings/SoulofCryogen.cs +++ b/Items/Accessories/Wings/SoulofCryogen.cs @@ -32,7 +32,6 @@ namespace CalamityMod.Items.Accessories.Wings item.width = 26; item.height = 26; item.value = CalamityGlobalItem.Rarity5BuyPrice; - item.expert = true; item.rare = ItemRarityID.Pink; item.accessory = true; } diff --git a/Items/Accessories/YharimsGift.cs b/Items/Accessories/YharimsGift.cs index a68fb9ded4..f1601968de 100644 --- a/Items/Accessories/YharimsGift.cs +++ b/Items/Accessories/YharimsGift.cs @@ -1,6 +1,5 @@ using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; -using System; using Terraria; using Terraria.ModLoader; using Terraria.ID; @@ -27,7 +26,6 @@ namespace CalamityMod.Items.Accessories item.height = 22; item.value = CalamityGlobalItem.Rarity15BuyPrice; item.accessory = true; - item.expert = true; item.rare = ItemRarityID.Red; } diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index c448543cdd..9a3ab2d8d8 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -129,10 +129,6 @@ namespace CalamityMod.Items if (item.type == ItemID.StarCannon) item.UseSound = null; - // Fix Suspicious Looking Tentacle not being marked as Expert - if (item.type == ItemID.SuspiciousLookingTentacle) - item.expert = true; - // Fix Bones being attracted to the player when you have open ammo slots if (item.type == ItemID.Bone) item.notAmmo = true; @@ -141,6 +137,27 @@ namespace CalamityMod.Items if (item.type == ItemID.PearlwoodBow || item.type == ItemID.PearlwoodHammer || item.type == ItemID.PearlwoodSword) item.rare = ItemRarityID.LightRed; + // Make most expert items no longer expert because they drop in all modes now. + switch (item.type) + { + case ItemID.RoyalGel: + case ItemID.EoCShield: + case ItemID.WormScarf: + case ItemID.BrainOfConfusion: + case ItemID.HiveBackpack: + case ItemID.BoneGlove: + case ItemID.MechanicalBatteryPiece: + case ItemID.MechanicalWagonPiece: + case ItemID.MechanicalWheelPiece: + case ItemID.SporeSac: + case ItemID.ShinyStone: + case ItemID.ShrimpyTruffle: + case ItemID.GravityGlobe: + case ItemID.SuspiciousLookingTentacle: + item.expert = false; + break; + } + SetDefaults_ApplyTweaks(item); // TODO -- these properties should be some sort of dictionary. diff --git a/Items/CalamityGlobalItemLoot.cs b/Items/CalamityGlobalItemLoot.cs index c59e637ee7..a1516eef77 100644 --- a/Items/CalamityGlobalItemLoot.cs +++ b/Items/CalamityGlobalItemLoot.cs @@ -52,7 +52,6 @@ namespace CalamityMod.Items case ItemID.EyeOfCthulhuBossBag: DropHelper.DropItemChance(player, ModContent.ItemType(), DropHelper.BagWeaponDropRateFloat); DropHelper.DropItem(player, ModContent.ItemType()); - DropHelper.DropItem(player, ModContent.ItemType()); break; case ItemID.QueenBeeBossBag: diff --git a/Items/Weapons/Rogue/KelvinCatalyst.cs b/Items/Weapons/Rogue/KelvinCatalyst.cs index 7107e71c3a..c2ed5de6a2 100644 --- a/Items/Weapons/Rogue/KelvinCatalyst.cs +++ b/Items/Weapons/Rogue/KelvinCatalyst.cs @@ -36,7 +36,6 @@ namespace CalamityMod.Items.Weapons.Rogue item.height = 20; item.value = Item.buyPrice(gold: 36); item.rare = ItemRarityID.Pink; - item.expert = true; item.Calamity().donorItem = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 8f; diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index b50ec404f6..a5888f79d0 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -678,7 +678,7 @@ namespace CalamityMod // Eye of Cthulhu AddLoot(bossChecklist, "EyeofCthulhu", - new List() { ItemType(), ItemType(), ItemType() }, + new List() { ItemType(), ItemType() }, new List() { ItemType() } ); diff --git a/NPCs/AquaticScourge/AquaticScourgeHead.cs b/NPCs/AquaticScourge/AquaticScourgeHead.cs index 8e4b5c3181..4673bc5a43 100644 --- a/NPCs/AquaticScourge/AquaticScourgeHead.cs +++ b/NPCs/AquaticScourge/AquaticScourgeHead.cs @@ -207,8 +207,9 @@ namespace CalamityMod.NPCs.AquaticScourge DropHelper.WeightStack(w) ); - // Equipment - DropHelper.DropItemChance(npc, ModContent.ItemType(), 9); + // Equipment + DropHelper.DropItem(npc, ModContent.ItemType()); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 9); // Vanity DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); diff --git a/NPCs/AstrumAureus/AstrumAureus.cs b/NPCs/AstrumAureus/AstrumAureus.cs index f9424c6dfd..ae3e1ac9a9 100644 --- a/NPCs/AstrumAureus/AstrumAureus.cs +++ b/NPCs/AstrumAureus/AstrumAureus.cs @@ -1,5 +1,6 @@ using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; @@ -345,6 +346,7 @@ namespace CalamityMod.NPCs.AstrumAureus ); // Equipment + DropHelper.DropItem(npc, ModContent.ItemType()); DropHelper.DropItemCondition(npc, ModContent.ItemType(), NPC.downedMoonlord); // Vanity diff --git a/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs b/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs index f61a9eeb9a..f182912623 100644 --- a/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs +++ b/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs @@ -271,7 +271,8 @@ namespace CalamityMod.NPCs.AstrumDeus DropHelper.WeightStack(w) ); - // Equipment + // Equipment + DropHelper.DropItem(npc, ModContent.ItemType()); DropHelper.DropItemChance(npc, ModContent.ItemType(), 5); // Vanity diff --git a/NPCs/BrimstoneElemental/BrimstoneElemental.cs b/NPCs/BrimstoneElemental/BrimstoneElemental.cs index 52a31563ef..f78bec9c23 100644 --- a/NPCs/BrimstoneElemental/BrimstoneElemental.cs +++ b/NPCs/BrimstoneElemental/BrimstoneElemental.cs @@ -179,8 +179,9 @@ namespace CalamityMod.NPCs.BrimstoneElemental DropHelper.WeightStack(w) ); - // Equipment - DropHelper.DropItemChance(npc, ModContent.ItemType(), 5); + // Equipment + DropHelper.DropItem(npc, ModContent.ItemType()); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 5); DropHelper.DropItemChance(npc, ModContent.ItemType(), 2); DropHelper.DropItemCondition(npc, ModContent.ItemType(), CalamityWorld.downedProvidence); diff --git a/NPCs/Bumblebirb/Bumblefuck.cs b/NPCs/Bumblebirb/Bumblefuck.cs index 3863a136cc..936c379925 100644 --- a/NPCs/Bumblebirb/Bumblefuck.cs +++ b/NPCs/Bumblebirb/Bumblefuck.cs @@ -1,6 +1,5 @@ -using CalamityMod.Buffs.DamageOverTime; -using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Events; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; @@ -432,8 +431,9 @@ namespace CalamityMod.NPCs.Bumblebirb DropHelper.WeightStack(w) ); - // Equipment - DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + // Equipment + DropHelper.DropItem(npc, ModContent.ItemType()); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); // Vanity DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); diff --git a/NPCs/Calamitas/CalamitasRun3.cs b/NPCs/Calamitas/CalamitasRun3.cs index f00d230810..45c6c0d5b6 100644 --- a/NPCs/Calamitas/CalamitasRun3.cs +++ b/NPCs/Calamitas/CalamitasRun3.cs @@ -183,8 +183,9 @@ namespace CalamityMod.NPCs.Calamitas DropHelper.WeightStack(w) ); - // Equipment - DropHelper.DropItemChance(npc, ModContent.ItemType(), 5); + // Equipment + DropHelper.DropItem(npc, ModContent.ItemType()); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 5); // Vanity DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index 6938f40816..8b51e77178 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -82,6 +82,8 @@ namespace CalamityMod.NPCs int maxGel = 100; DropHelper.DropItemSpray(npc, ItemID.Gel, minGel, maxGel, 4); + DropHelper.DropItemCondition(npc, ItemID.RoyalGel, !Main.expertMode); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !Main.expertMode); DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !NPC.downedSlimeKing); @@ -90,8 +92,9 @@ namespace CalamityMod.NPCs } else if (npc.type == NPCID.EyeofCthulhu) { + DropHelper.DropItemCondition(npc, ItemID.EoCShield, !Main.expertMode); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !Main.expertMode); - DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !Main.expertMode); DropHelper.DropItemCondition(npc, ModContent.ItemType(), !Main.expertMode, DropHelper.NormalWeaponDropRateFloat, 1, 1); @@ -101,6 +104,7 @@ namespace CalamityMod.NPCs } else if ((npc.boss && (npc.type == NPCID.EaterofWorldsHead || npc.type == NPCID.EaterofWorldsBody || npc.type == NPCID.EaterofWorldsTail)) || npc.type == NPCID.BrainofCthulhu) { + DropHelper.DropItemCondition(npc, npc.type == NPCID.BrainofCthulhu ? ItemID.BrainOfConfusion : ItemID.WormScarf, !Main.expertMode); DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !WorldGen.crimson && !NPC.downedBoss2); DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !WorldGen.crimson && !NPC.downedBoss2); DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, WorldGen.crimson && !NPC.downedBoss2); @@ -124,6 +128,8 @@ namespace CalamityMod.NPCs DropHelper.BlockDrops(queenBeeWeapons); } + DropHelper.DropItemCondition(npc, ItemID.HiveBackpack, !Main.expertMode); + DropHelper.DropItemCondition(npc, ItemID.Stinger, !Main.expertMode, 5, 10); // Extra stingers DropHelper.DropItemCondition(npc, ModContent.ItemType(), !Main.expertMode, 30, 50); @@ -137,6 +143,8 @@ namespace CalamityMod.NPCs { DropHelper.DropItemSpray(npc, ItemID.Bone, 70, 100, 5); + DropHelper.DropItemCondition(npc, ItemID.BoneGlove, !Main.expertMode); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !Main.expertMode); DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !NPC.downedBoss3); @@ -213,6 +221,8 @@ namespace CalamityMod.NPCs if ((!NPC.downedMechBoss1 || !NPC.downedMechBoss2 || !NPC.downedMechBoss3) && CalamityConfig.Instance.EarlyHardmodeProgressionRework) DropHelper.BlockDrops(ItemID.HallowedBar); + DropHelper.DropItemCondition(npc, ItemID.MechanicalWheelPiece, !Main.expertMode); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), Main.expertMode, DraedonMayhem, 8, 16); DropHelper.DropItemCondition(npc, ModContent.ItemType(), Main.expertMode, DraedonMayhem, 8, 16); @@ -232,6 +242,8 @@ namespace CalamityMod.NPCs if ((!NPC.downedMechBoss1 || !NPC.downedMechBoss2 || !NPC.downedMechBoss3) && CalamityConfig.Instance.EarlyHardmodeProgressionRework) DropHelper.BlockDrops(ItemID.HallowedBar); + DropHelper.DropItemCondition(npc, ItemID.MechanicalWagonPiece, !Main.expertMode); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), Main.expertMode, DraedonMayhem, 8, 16); DropHelper.DropItemCondition(npc, ModContent.ItemType(), Main.expertMode, DraedonMayhem, 8, 16); @@ -251,6 +263,8 @@ namespace CalamityMod.NPCs if ((!NPC.downedMechBoss1 || !NPC.downedMechBoss2 || !NPC.downedMechBoss3) && CalamityConfig.Instance.EarlyHardmodeProgressionRework) DropHelper.BlockDrops(ItemID.HallowedBar); + DropHelper.DropItemCondition(npc, ItemID.MechanicalBatteryPiece, !Main.expertMode); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), Main.expertMode, DraedonMayhem, 8, 16); DropHelper.DropItemCondition(npc, ModContent.ItemType(), Main.expertMode, DraedonMayhem, 8, 16); @@ -287,7 +301,9 @@ namespace CalamityMod.NPCs DropHelper.DropItemChance(npc, ModContent.ItemType(), 5); } - DropHelper.DropItemCondition(npc, ModContent.ItemType(), !Main.expertMode, 12, 18); + DropHelper.DropItemCondition(npc, ItemID.SporeSac, !Main.expertMode); + + DropHelper.DropItemCondition(npc, ModContent.ItemType(), !Main.expertMode, 12, 18); DropHelper.DropItemCondition(npc, ItemID.JungleKey, !Main.expertMode, 5, 1, 1); DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !Main.expertMode); @@ -349,6 +365,8 @@ namespace CalamityMod.NPCs // The Golem Treasure Bag is guaranteed to provide a Picksaw if one is not yet in the inventory. DropHelper.DropItemCondition(npc, ItemID.Picksaw, true, !Main.expertMode && !NPC.downedGolemBoss); + DropHelper.DropItemCondition(npc, ItemID.ShinyStone, !Main.expertMode); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), !Main.expertMode, 5, 10); DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !Main.expertMode); @@ -405,6 +423,8 @@ namespace CalamityMod.NPCs DropHelper.BlockDrops(dukeWeapons); } + DropHelper.DropItemCondition(npc, ItemID.ShrimpyTruffle, !Main.expertMode); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !Main.expertMode); DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !NPC.downedFishron); @@ -451,8 +471,8 @@ namespace CalamityMod.NPCs DropHelper.BlockDrops(moonLordWeapons); } - // Gravity Globe is available to Normal players as well DropHelper.DropItemCondition(npc, ItemID.GravityGlobe, !Main.expertMode); + DropHelper.DropItemCondition(npc, ItemID.SuspiciousLookingTentacle, !Main.expertMode); // One Celestial Onion is given to each player individually DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !Main.expertMode); diff --git a/NPCs/CalamityGlobalTownNPC.cs b/NPCs/CalamityGlobalTownNPC.cs index a5676f2278..7435d91ab9 100644 --- a/NPCs/CalamityGlobalTownNPC.cs +++ b/NPCs/CalamityGlobalTownNPC.cs @@ -1317,6 +1317,7 @@ namespace CalamityMod.NPCs SetShopItem(ref shop, ref nextSlot, ItemType(), price: Item.buyPrice(copper: 10)); SetShopItem(ref shop, ref nextSlot, ItemType(), price: Item.buyPrice(copper: 10)); SetShopItem(ref shop, ref nextSlot, ItemType(), price: Item.buyPrice(copper: 10)); + SetShopItem(ref shop, ref nextSlot, ItemType(), price: Item.buyPrice(gold: 10)); SetShopItem(ref shop, ref nextSlot, ItemID.GoldenKey, Main.hardMode, Item.buyPrice(0, 5)); } diff --git a/NPCs/CeaselessVoid/CeaselessVoid.cs b/NPCs/CeaselessVoid/CeaselessVoid.cs index e012f95698..8373025dd2 100644 --- a/NPCs/CeaselessVoid/CeaselessVoid.cs +++ b/NPCs/CeaselessVoid/CeaselessVoid.cs @@ -180,6 +180,9 @@ namespace CalamityMod.NPCs.CeaselessVoid DropHelper.DropItemChance(npc, ModContent.ItemType(), dropChance); DropHelper.DropItemChance(npc, ModContent.ItemType(), dropChance); + // Equipment + DropHelper.DropItem(npc, ModContent.ItemType()); + // Vanity DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); if (Main.rand.NextBool(20)) diff --git a/NPCs/Crabulon/CrabulonIdle.cs b/NPCs/Crabulon/CrabulonIdle.cs index 30ff79a905..7454535a55 100644 --- a/NPCs/Crabulon/CrabulonIdle.cs +++ b/NPCs/Crabulon/CrabulonIdle.cs @@ -753,8 +753,11 @@ namespace CalamityMod.NPCs.Crabulon DropHelper.WeightStack(w) ); - // Vanity - DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); + // Equipment + DropHelper.DropItem(npc, ModContent.ItemType()); + + // Vanity + DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); } // Mark Crabulon as dead diff --git a/NPCs/Cryogen/Cryogen.cs b/NPCs/Cryogen/Cryogen.cs index 4856f52b31..c63e014637 100644 --- a/NPCs/Cryogen/Cryogen.cs +++ b/NPCs/Cryogen/Cryogen.cs @@ -1,5 +1,6 @@ using CalamityMod.Events; using CalamityMod.Items.Accessories; +using CalamityMod.Items.Accessories.Wings; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; @@ -1076,6 +1077,7 @@ namespace CalamityMod.NPCs.Cryogen ); // Equipment + DropHelper.DropItem(npc, ModContent.ItemType()); DropHelper.DropItemChance(npc, ModContent.ItemType(), 5); DropHelper.DropItemChance(npc, ModContent.ItemType(), 5); diff --git a/NPCs/DesertScourge/DesertScourgeHead.cs b/NPCs/DesertScourge/DesertScourgeHead.cs index 18d561e79a..63ebdafbf2 100644 --- a/NPCs/DesertScourge/DesertScourgeHead.cs +++ b/NPCs/DesertScourge/DesertScourgeHead.cs @@ -596,8 +596,9 @@ namespace CalamityMod.NPCs.DesertScourge DropHelper.WeightStack(w) ); - // Equipment - DropHelper.DropItemChance(npc, ModContent.ItemType(), 5); + // Equipment + DropHelper.DropItem(npc, ModContent.ItemType()); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 5); DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); // Vanity diff --git a/NPCs/DevourerofGods/DevourerofGodsHead.cs b/NPCs/DevourerofGods/DevourerofGodsHead.cs index 9d3523f36f..9f84a9392c 100644 --- a/NPCs/DevourerofGods/DevourerofGodsHead.cs +++ b/NPCs/DevourerofGods/DevourerofGodsHead.cs @@ -3,6 +3,7 @@ using CalamityMod.Buffs.StatDebuffs; using CalamityMod.CalPlayer; using CalamityMod.Dusts; using CalamityMod.Events; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; @@ -2267,6 +2268,9 @@ namespace CalamityMod.NPCs.DevourerofGods DropHelper.WeightStack(w) ); + // Equipment + DropHelper.DropItem(npc, ModContent.ItemType()); + // Vanity DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); if (Main.rand.NextBool(5)) diff --git a/NPCs/ExoMechs/Ares/AresBody.cs b/NPCs/ExoMechs/Ares/AresBody.cs index c905ba89e7..931837f347 100644 --- a/NPCs/ExoMechs/Ares/AresBody.cs +++ b/NPCs/ExoMechs/Ares/AresBody.cs @@ -1,4 +1,5 @@ using CalamityMod.Events; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; @@ -1343,6 +1344,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares } // Equipment + DropHelper.DropItem(npc, ModContent.ItemType()); DropHelper.DropItem(npc, ModContent.ItemType()); // Vanity diff --git a/NPCs/HiveMind/HiveMind.cs b/NPCs/HiveMind/HiveMind.cs index 23b5724a13..95b88a5f86 100644 --- a/NPCs/HiveMind/HiveMind.cs +++ b/NPCs/HiveMind/HiveMind.cs @@ -1127,8 +1127,9 @@ namespace CalamityMod.NPCs.HiveMind DropHelper.WeightStack(w, 30, 50) ); - //Equipment - DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + // Equipment + DropHelper.DropItem(npc, ModContent.ItemType()); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); // Vanity DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); diff --git a/NPCs/Leviathan/Leviathan.cs b/NPCs/Leviathan/Leviathan.cs index b6f233e093..615ea44892 100644 --- a/NPCs/Leviathan/Leviathan.cs +++ b/NPCs/Leviathan/Leviathan.cs @@ -751,8 +751,9 @@ namespace CalamityMod.NPCs.Leviathan DropHelper.WeightStack(w) ); - // Equipment - DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + // Equipment + DropHelper.DropItem(npc, ModContent.ItemType()); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); // Vanity DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); diff --git a/NPCs/OldDuke/OldDuke.cs b/NPCs/OldDuke/OldDuke.cs index 903272922f..a3ec645e58 100644 --- a/NPCs/OldDuke/OldDuke.cs +++ b/NPCs/OldDuke/OldDuke.cs @@ -401,7 +401,8 @@ namespace CalamityMod.NPCs.OldDuke DropHelper.WeightStack(w) ); - //Equipment + // Equipment + DropHelper.DropItem(npc, ModContent.ItemType()); DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); // Vanity diff --git a/NPCs/Perforator/PerforatorHive.cs b/NPCs/Perforator/PerforatorHive.cs index 7b17910cfc..25341bb48d 100644 --- a/NPCs/Perforator/PerforatorHive.cs +++ b/NPCs/Perforator/PerforatorHive.cs @@ -505,7 +505,8 @@ namespace CalamityMod.NPCs.Perforator DropHelper.WeightStack(w, 30, 50) ); - //Equipment + // Equipment + DropHelper.DropItem(npc, ModContent.ItemType()); DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); // Vanity diff --git a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs index 14c8238b22..2c2333b99f 100644 --- a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs +++ b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs @@ -1227,8 +1227,11 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath DropHelper.WeightStack(w) ); - // Vanity - DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); + // Equipment + DropHelper.DropItem(npc, ModContent.ItemType()); + + // Vanity + DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); } diff --git a/NPCs/Polterghast/Polterghast.cs b/NPCs/Polterghast/Polterghast.cs index 8891673a27..02186a24d3 100644 --- a/NPCs/Polterghast/Polterghast.cs +++ b/NPCs/Polterghast/Polterghast.cs @@ -1,6 +1,6 @@ -using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Events; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; @@ -1000,7 +1000,10 @@ namespace CalamityMod.NPCs.Polterghast DropHelper.WeightStack(w), DropHelper.WeightStack(w) ); - } + + // Equipment + DropHelper.DropItem(npc, ModContent.ItemType()); + } // If Polterghast has not been killed, notify players about the Abyss minibosses now dropping items if (!CalamityWorld.downedPolterghast) diff --git a/NPCs/Providence/Providence.cs b/NPCs/Providence/Providence.cs index dc4f16f8a3..e336be953a 100644 --- a/NPCs/Providence/Providence.cs +++ b/NPCs/Providence/Providence.cs @@ -1495,8 +1495,11 @@ namespace CalamityMod.NPCs.Providence DropHelper.WeightStack(w) ); - // Vanity - DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); + // Equipment + DropHelper.DropItem(npc, ModContent.ItemType()); + + // Vanity + DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); } if (Main.netMode != NetmodeID.MultiplayerClient && npc.Top.Y >= (Main.maxTilesY - 240f) * 16f) diff --git a/NPCs/Ravager/RavagerBody.cs b/NPCs/Ravager/RavagerBody.cs index 7fdb27240b..5e8fc97f0e 100644 --- a/NPCs/Ravager/RavagerBody.cs +++ b/NPCs/Ravager/RavagerBody.cs @@ -794,8 +794,9 @@ namespace CalamityMod.NPCs.Ravager DropHelper.WeightStack(w) ); - // Equipment - DropHelper.DropItemChance(npc, ModContent.ItemType(), 3); + // Equipment + DropHelper.DropItemCondition(npc, ModContent.ItemType(), CalamityWorld.downedProvidence); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 3); DropHelper.DropItemChance(npc, ModContent.ItemType(), 3); // Vanity diff --git a/NPCs/Signus/Signus.cs b/NPCs/Signus/Signus.cs index 6f6c777e13..8ac4d1c5a9 100644 --- a/NPCs/Signus/Signus.cs +++ b/NPCs/Signus/Signus.cs @@ -1,6 +1,7 @@ using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using CalamityMod.Events; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; @@ -779,7 +780,8 @@ namespace CalamityMod.NPCs.Signus DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); - //Equipment (None in Normal) + // Equipment + DropHelper.DropItem(npc, ModContent.ItemType()); // Vanity DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); diff --git a/NPCs/SlimeGod/SlimeGodCore.cs b/NPCs/SlimeGod/SlimeGodCore.cs index 528ab9755e..56d6d050b6 100644 --- a/NPCs/SlimeGod/SlimeGodCore.cs +++ b/NPCs/SlimeGod/SlimeGodCore.cs @@ -1,5 +1,6 @@ using CalamityMod.CalPlayer; using CalamityMod.Events; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; @@ -691,8 +692,9 @@ namespace CalamityMod.NPCs.SlimeGod // Vanity DropHelper.DropItemFromSetChance(npc, 0.142857f, ModContent.ItemType(), ModContent.ItemType()); - // Other - } + // Equipment + DropHelper.DropItem(npc, ModContent.ItemType()); + } // Mark the Slime God as dead CalamityWorld.downedSlimeGod = true; diff --git a/NPCs/SupremeCalamitas/SupremeCalamitas.cs b/NPCs/SupremeCalamitas/SupremeCalamitas.cs index 7e2b0c1c40..914394d416 100644 --- a/NPCs/SupremeCalamitas/SupremeCalamitas.cs +++ b/NPCs/SupremeCalamitas/SupremeCalamitas.cs @@ -1,6 +1,7 @@ using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Events; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; @@ -2765,8 +2766,11 @@ namespace CalamityMod.NPCs.SupremeCalamitas DropHelper.WeightStack(w) ); - // SCal vanity set (This drops all at once, or not at all) - if (Main.rand.NextBool(7)) + // Equipment + DropHelper.DropItem(npc, ModContent.ItemType()); + + // SCal vanity set (This drops all at once, or not at all) + if (Main.rand.NextBool(7)) { DropHelper.DropItem(npc, ModContent.ItemType()); DropHelper.DropItem(npc, ModContent.ItemType()); diff --git a/NPCs/Yharon/Yharon.cs b/NPCs/Yharon/Yharon.cs index 8837af2d72..c60c5dae0c 100644 --- a/NPCs/Yharon/Yharon.cs +++ b/NPCs/Yharon/Yharon.cs @@ -1,5 +1,6 @@ using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Events; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Accessories.Wings; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; @@ -2851,8 +2852,9 @@ namespace CalamityMod.NPCs.Yharon int soulFragMax = 22; DropHelper.DropItem(npc, ModContent.ItemType(), true, soulFragMin, soulFragMax); - // Equipment - DropHelper.DropItem(npc, ModContent.ItemType()); + // Equipment + DropHelper.DropItem(npc, ModContent.ItemType()); + DropHelper.DropItem(npc, ModContent.ItemType()); } // Vanity