diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 6edf71637f..554aa3d6cf 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -7307,6 +7307,15 @@ namespace CalamityMod.CalPlayer fishList.Add(ItemID.DoubleCod); } } + if (ZoneAstral) + { + fishList.Add(ModContent.ItemType()); + } + if (ZoneSunkenSea) + { + fishList.Add(ModContent.ItemType()); + fishList.Add(ModContent.ItemType()); + } } if (fishList.Any()) diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index 2afcf3d72d..5b035d4bbb 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -1510,6 +1510,58 @@ namespace CalamityMod.Items #region Boss Bag Changes public override void OpenVanillaBag(string context, Player player, int arg) { + if (context == "crate") + { + switch (arg) + { + case ItemID.WoodenCrate: + DropHelper.DropItemChance(player, ModContent.ItemType(), 4, 3, 5); + break; + + case ItemID.IronCrate: + DropHelper.DropItemChance(player, ModContent.ItemType(), 4, 5, 8); + DropHelper.DropItemChance(player, ModContent.ItemType(), 4, 5, 8); + break; + + case ItemID.CorruptFishingCrate: + DropHelper.DropItemChance(player, ModContent.ItemType(), 4, 5, 8); + DropHelper.DropItemChance(player, ModContent.ItemType(), 4, 5, 8); + DropHelper.DropItemChance(player, ModContent.ItemType(), 5, 1, 3); + break; + + case ItemID.CrimsonFishingCrate: + DropHelper.DropItemChance(player, ModContent.ItemType(), 4, 5, 8); + DropHelper.DropItemChance(player, ModContent.ItemType(), 4, 5, 8); + DropHelper.DropItemChance(player, ModContent.ItemType(), 5, 1, 3); + break; + + case ItemID.HallowedFishingCrate: + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.downedProvidence, 0.2f, 5, 10); + break; + + case ItemID.DungeonFishingCrate: + DropHelper.DropItemCondition(player, ItemID.Ectoplasm, NPC.downedPlantBoss, 0.3f, 5, 10); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.downedPolterghast, 0.2f, 5, 10); + break; + + case ItemID.JungleFishingCrate: + DropHelper.DropItemChance(player, ModContent.ItemType(), 5, 1, 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 5, 1, 3); + DropHelper.DropItemCondition(player, ModContent.ItemType(), Main.hardMode, 0.2f, 1, 3); + DropHelper.DropItemCondition(player, ModContent.ItemType(), Main.hardMode, 0.2f, 1, 3); + DropHelper.DropItemCondition(player, ModContent.ItemType(), NPC.downedPlantBoss, 0.25f, 5, 10); + DropHelper.DropItemCondition(player, ModContent.ItemType(), NPC.downedGolemBoss, 0.2f, 3, 6); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.downedProvidence, 0.25f, 5, 10); + break; + + case ItemID.FloatingIslandFishingCrate: + DropHelper.DropItemCondition(player, ModContent.ItemType(), (CalamityWorld.downedHiveMind || CalamityWorld.downedPerforator), 0.25f, 5, 10); + DropHelper.DropItemCondition(player, ModContent.ItemType(), Main.hardMode, 0.2f, 5, 15); + DropHelper.DropItemCondition(player, ModContent.ItemType(), NPC.downedMoonlord, 0.1f, 1, 3); + break; + } + } + if (context == "bossBag") { // Give a chance for Laudanum, Stress Pills and Heart of Darkness from every boss bag diff --git a/Items/Fishing/AstralCatches/AstralCrate.cs b/Items/Fishing/AstralCatches/AstralCrate.cs index c691c15538..5186279a4e 100644 --- a/Items/Fishing/AstralCatches/AstralCrate.cs +++ b/Items/Fishing/AstralCatches/AstralCrate.cs @@ -57,6 +57,7 @@ namespace CalamityMod.Items.Fishing.AstralCatches { DropHelper.DropItemChance(player, ModContent.ItemType(), 0.5f, 10, 20); DropHelper.DropItemChance(player, ModContent.ItemType(), 0.25f, 5, 10); + DropHelper.DropItemChance(player, ModContent.ItemType(), 0.25f, 5, 10); } // Weapons