diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index c516373c1f..57df2aeec3 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -12,6 +12,8 @@ using CalamityMod.Items.Accessories; using CalamityMod.Items.Accessories.Vanity; using CalamityMod.Items.DifficultyItems; using CalamityMod.Items.Fishing; +using CalamityMod.Items.Fishing.AstralCatches; +using CalamityMod.Items.Fishing.FishingRods; using CalamityMod.Items.Mounts; using CalamityMod.Items.Pets; using CalamityMod.Items.Placeables; @@ -7490,6 +7492,38 @@ namespace CalamityMod.CalPlayer caughtType = ModContent.ItemType(); } } + + if ((player.ZoneCrimson || player.ZoneCorrupt) && player.ZoneRockLayerHeight) + { + if (Main.rand.NextBool(10)) + { + caughtType = ModContent.ItemType(); + } + } + + if (player.ZoneHoly && player.ZoneRockLayerHeight) + { + if (Main.rand.NextBool(10)) + { + caughtType = ModContent.ItemType(); + } + } + + if (player.ZoneSkyHeight) + { + if (Main.rand.NextBool(15)) + { + caughtType = ModContent.ItemType(); + } + } + + if (player.ZoneOverworldHeight && !Main.dayTime) + { + if (Main.rand.NextBool(10)) + { + caughtType = ModContent.ItemType(); + } + } if (junk) { @@ -7578,6 +7612,8 @@ namespace CalamityMod.CalPlayer fishingLevel = (int)(fishingLevel * 1.1f); if (Main.player[Main.myPlayer].ZoneSnow && fishingRod.type == ModContent.ItemType()) fishingLevel = (int)(fishingLevel * 1.1f); + if (Main.player[Main.myPlayer].ZoneSkyHeight && fishingRod.type == ModContent.ItemType()) + fishingLevel = (int)(fishingLevel * 1.1f); } #endregion diff --git a/ExtraTextures/Chains/BobbitHookChain.png b/ExtraTextures/Chains/BobbitHookChain.png new file mode 100644 index 0000000000..7ab59897ca Binary files /dev/null and b/ExtraTextures/Chains/BobbitHookChain.png differ diff --git a/ExtraTextures/Chains/SerpentsBiteChain.png b/ExtraTextures/Chains/SerpentsBiteChain.png new file mode 100644 index 0000000000..c21525d426 Binary files /dev/null and b/ExtraTextures/Chains/SerpentsBiteChain.png differ diff --git a/Items/Fishing/ArcturusAstroidean.cs b/Items/Fishing/AstralCatches/ArcturusAstroidean.cs similarity index 92% rename from Items/Fishing/ArcturusAstroidean.cs rename to Items/Fishing/AstralCatches/ArcturusAstroidean.cs index 390240d8b4..9e7788d542 100644 --- a/Items/Fishing/ArcturusAstroidean.cs +++ b/Items/Fishing/AstralCatches/ArcturusAstroidean.cs @@ -1,7 +1,7 @@ using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Items.Fishing +namespace CalamityMod.Items.Fishing.AstralCatches { public class ArcturusAstroidean : ModItem { diff --git a/Items/Fishing/ArcturusAstroidean.png b/Items/Fishing/AstralCatches/ArcturusAstroidean.png similarity index 100% rename from Items/Fishing/ArcturusAstroidean.png rename to Items/Fishing/AstralCatches/ArcturusAstroidean.png diff --git a/Items/Fishing/AstralCrate.cs b/Items/Fishing/AstralCatches/AstralCrate.cs similarity index 98% rename from Items/Fishing/AstralCrate.cs rename to Items/Fishing/AstralCatches/AstralCrate.cs index 61583f471c..c691c15538 100644 --- a/Items/Fishing/AstralCrate.cs +++ b/Items/Fishing/AstralCatches/AstralCrate.cs @@ -13,7 +13,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Items.Fishing +namespace CalamityMod.Items.Fishing.AstralCatches { public class AstralCrate : ModItem { diff --git a/Items/Fishing/AstralCrate.png b/Items/Fishing/AstralCatches/AstralCrate.png similarity index 100% rename from Items/Fishing/AstralCrate.png rename to Items/Fishing/AstralCatches/AstralCrate.png diff --git a/Items/Fishing/AstrophageItem.cs b/Items/Fishing/AstralCatches/AstrophageItem.cs similarity index 94% rename from Items/Fishing/AstrophageItem.cs rename to Items/Fishing/AstralCatches/AstrophageItem.cs index 50271c0886..94f73dbf15 100644 --- a/Items/Fishing/AstrophageItem.cs +++ b/Items/Fishing/AstralCatches/AstrophageItem.cs @@ -4,7 +4,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Items.Fishing +namespace CalamityMod.Items.Fishing.AstralCatches { public class AstrophageItem : ModItem { diff --git a/Items/Fishing/AstrophageItem.png b/Items/Fishing/AstralCatches/AstrophageItem.png similarity index 100% rename from Items/Fishing/AstrophageItem.png rename to Items/Fishing/AstralCatches/AstrophageItem.png diff --git a/Items/Weapons/Rogue/GacruxianMollusk.cs b/Items/Fishing/AstralCatches/GacruxianMollusk.cs similarity index 95% rename from Items/Weapons/Rogue/GacruxianMollusk.cs rename to Items/Fishing/AstralCatches/GacruxianMollusk.cs index dc075b5346..dbc94665e7 100644 --- a/Items/Weapons/Rogue/GacruxianMollusk.cs +++ b/Items/Fishing/AstralCatches/GacruxianMollusk.cs @@ -3,8 +3,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using CalamityMod.Items.Weapons.Rogue; -namespace CalamityMod.Items.Weapons.Rogue +namespace CalamityMod.Items.Fishing.AstralCatches { public class GacruxianMollusk : RogueWeapon { diff --git a/Items/Weapons/Rogue/GacruxianMollusk.png b/Items/Fishing/AstralCatches/GacruxianMollusk.png similarity index 100% rename from Items/Weapons/Rogue/GacruxianMollusk.png rename to Items/Fishing/AstralCatches/GacruxianMollusk.png diff --git a/Items/Fishing/PolarisParrotfish.cs b/Items/Fishing/AstralCatches/PolarisParrotfish.cs similarity index 97% rename from Items/Fishing/PolarisParrotfish.cs rename to Items/Fishing/AstralCatches/PolarisParrotfish.cs index 95217a1abf..01c7dea67c 100644 --- a/Items/Fishing/PolarisParrotfish.cs +++ b/Items/Fishing/AstralCatches/PolarisParrotfish.cs @@ -4,7 +4,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Items.Fishing +namespace CalamityMod.Items.Fishing.AstralCatches { public class PolarisParrotfish : ModItem { diff --git a/Items/Fishing/PolarisParrotfish.png b/Items/Fishing/AstralCatches/PolarisParrotfish.png similarity index 100% rename from Items/Fishing/PolarisParrotfish.png rename to Items/Fishing/AstralCatches/PolarisParrotfish.png diff --git a/Items/Fishing/ProcyonidPrawn.cs b/Items/Fishing/AstralCatches/ProcyonidPrawn.cs similarity index 90% rename from Items/Fishing/ProcyonidPrawn.cs rename to Items/Fishing/AstralCatches/ProcyonidPrawn.cs index 1b63156ff4..077c7882fe 100644 --- a/Items/Fishing/ProcyonidPrawn.cs +++ b/Items/Fishing/AstralCatches/ProcyonidPrawn.cs @@ -1,7 +1,7 @@ using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Items.Fishing +namespace CalamityMod.Items.Fishing.AstralCatches { public class ProcyonidPrawn : ModItem { diff --git a/Items/Fishing/ProcyonidPrawn.png b/Items/Fishing/AstralCatches/ProcyonidPrawn.png similarity index 100% rename from Items/Fishing/ProcyonidPrawn.png rename to Items/Fishing/AstralCatches/ProcyonidPrawn.png diff --git a/Items/Fishing/TwinklerItem.cs b/Items/Fishing/AstralCatches/TwinklerItem.cs similarity index 94% rename from Items/Fishing/TwinklerItem.cs rename to Items/Fishing/AstralCatches/TwinklerItem.cs index 5fe85b0902..f7eeb72a99 100644 --- a/Items/Fishing/TwinklerItem.cs +++ b/Items/Fishing/AstralCatches/TwinklerItem.cs @@ -2,7 +2,7 @@ using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Items.Fishing +namespace CalamityMod.Items.Fishing.AstralCatches { public class TwinklerItem : ModItem { diff --git a/Items/Fishing/TwinklerItem.png b/Items/Fishing/AstralCatches/TwinklerItem.png similarity index 100% rename from Items/Fishing/TwinklerItem.png rename to Items/Fishing/AstralCatches/TwinklerItem.png diff --git a/Items/Fishing/TwinklingPollox.cs b/Items/Fishing/AstralCatches/TwinklingPollox.cs similarity index 91% rename from Items/Fishing/TwinklingPollox.cs rename to Items/Fishing/AstralCatches/TwinklingPollox.cs index 6c7c06ef2f..f8148de3dd 100644 --- a/Items/Fishing/TwinklingPollox.cs +++ b/Items/Fishing/AstralCatches/TwinklingPollox.cs @@ -1,7 +1,7 @@ using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Items.Fishing +namespace CalamityMod.Items.Fishing.AstralCatches { public class TwinklingPollox : ModItem { diff --git a/Items/Fishing/TwinklingPollox.png b/Items/Fishing/AstralCatches/TwinklingPollox.png similarity index 100% rename from Items/Fishing/TwinklingPollox.png rename to Items/Fishing/AstralCatches/TwinklingPollox.png diff --git a/Items/Fishing/UrsaSergeant.cs b/Items/Fishing/AstralCatches/UrsaSergeant.cs similarity index 95% rename from Items/Fishing/UrsaSergeant.cs rename to Items/Fishing/AstralCatches/UrsaSergeant.cs index cd5af12acd..6f0857fe54 100644 --- a/Items/Fishing/UrsaSergeant.cs +++ b/Items/Fishing/AstralCatches/UrsaSergeant.cs @@ -3,7 +3,7 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Items.Fishing +namespace CalamityMod.Items.Fishing.AstralCatches { public class UrsaSergeant : ModItem { diff --git a/Items/Fishing/UrsaSergeant.png b/Items/Fishing/AstralCatches/UrsaSergeant.png similarity index 100% rename from Items/Fishing/UrsaSergeant.png rename to Items/Fishing/AstralCatches/UrsaSergeant.png diff --git a/Items/Fishing/EnchantedStarfish.cs b/Items/Fishing/EnchantedStarfish.cs new file mode 100644 index 0000000000..908c661ced --- /dev/null +++ b/Items/Fishing/EnchantedStarfish.cs @@ -0,0 +1,47 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.Localization; +using Terraria.ModLoader; +using Terraria.GameContent.Achievements; +namespace CalamityMod.Items.Fishing +{ + public class EnchantedStarfish : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Enchanted Starfish"); + Tooltip.SetDefault("Permanently increases maximum mana by 20"); + } + + public override void SetDefaults() + { + item.rare = 2; + item.width = 30; + item.height = 26; + item.useAnimation = 30; + item.useTime = 30; + item.useStyle = 4; + item.UseSound = SoundID.Item29; + item.consumable = true; + item.maxStack = 999; + item.value = Item.sellPrice(silver: 50); + } + + public override bool UseItem(Player player) + { + if (player.itemAnimation > 0 && (player.statManaMax < 200 && player.itemTime == 0)) + { + player.itemTime = item.useTime; + player.statManaMax = player.statManaMax + 20; + player.statManaMax2 = player.statManaMax2 + 20; + player.statMana = player.statMana + 20; + if (Main.myPlayer == player.whoAmI) + player.ManaEffect(20); + AchievementsHelper.HandleSpecialEvent(player, 1); + } + return false; + } + } +} diff --git a/Items/Fishing/ChaoticSpreadRod.cs b/Items/Fishing/FishingRods/ChaoticSpreadRod.cs similarity index 93% rename from Items/Fishing/ChaoticSpreadRod.cs rename to Items/Fishing/FishingRods/ChaoticSpreadRod.cs index 4c8c0e8a7e..9a60f760c8 100644 --- a/Items/Fishing/ChaoticSpreadRod.cs +++ b/Items/Fishing/FishingRods/ChaoticSpreadRod.cs @@ -6,7 +6,7 @@ using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; using CalamityMod.Items.Materials; -namespace CalamityMod.Items.Fishing +namespace CalamityMod.Items.Fishing.FishingRods { public class ChaoticSpreadRod : ModItem { @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Fishing { DisplayName.SetDefault("Chaotic Spread Rod"); Tooltip.SetDefault("Fires three to five lines at once. Can fish in lava.\n" + - "The battlefield is a scene of constant chaos.\n" + + "The battlefield is a scene of constant chaos.\n" + //Napoleon Bonaparte quote reference "The winner will be the one who controls that chaos, both the pole and the fish."); } diff --git a/Items/Fishing/ChaoticSpreadRod.png b/Items/Fishing/FishingRods/ChaoticSpreadRod.png similarity index 100% rename from Items/Fishing/ChaoticSpreadRod.png rename to Items/Fishing/FishingRods/ChaoticSpreadRod.png diff --git a/Items/Fishing/EarlyBloomRod.cs b/Items/Fishing/FishingRods/EarlyBloomRod.cs similarity index 97% rename from Items/Fishing/EarlyBloomRod.cs rename to Items/Fishing/FishingRods/EarlyBloomRod.cs index b8c1e48b6f..a706d41a8d 100644 --- a/Items/Fishing/EarlyBloomRod.cs +++ b/Items/Fishing/FishingRods/EarlyBloomRod.cs @@ -6,7 +6,7 @@ using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; using CalamityMod.Items.Materials; -namespace CalamityMod.Items.Fishing +namespace CalamityMod.Items.Fishing.FishingRods { public class EarlyBloomRod : ModItem { diff --git a/Items/Fishing/EarlyBloomRod.png b/Items/Fishing/FishingRods/EarlyBloomRod.png similarity index 100% rename from Items/Fishing/EarlyBloomRod.png rename to Items/Fishing/FishingRods/EarlyBloomRod.png diff --git a/Items/Fishing/FeralDoubleRod.cs b/Items/Fishing/FishingRods/FeralDoubleRod.cs similarity index 97% rename from Items/Fishing/FeralDoubleRod.cs rename to Items/Fishing/FishingRods/FeralDoubleRod.cs index e6f31d5b83..d638eec2cc 100644 --- a/Items/Fishing/FeralDoubleRod.cs +++ b/Items/Fishing/FishingRods/FeralDoubleRod.cs @@ -6,7 +6,7 @@ using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; using CalamityMod.Items.Materials; -namespace CalamityMod.Items.Fishing +namespace CalamityMod.Items.Fishing.FishingRods { public class FeralDoubleRod : ModItem { diff --git a/Items/Fishing/FeralDoubleRod.png b/Items/Fishing/FishingRods/FeralDoubleRod.png similarity index 100% rename from Items/Fishing/FeralDoubleRod.png rename to Items/Fishing/FishingRods/FeralDoubleRod.png diff --git a/Items/Fishing/FishingRods/HeronRod.cs b/Items/Fishing/FishingRods/HeronRod.cs new file mode 100644 index 0000000000..cad4f62081 --- /dev/null +++ b/Items/Fishing/FishingRods/HeronRod.cs @@ -0,0 +1,47 @@ +using CalamityMod.Projectiles.Typeless; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.Localization; +using Terraria.ModLoader; +using CalamityMod.Items.Materials; +namespace CalamityMod.Items.Fishing.FishingRods +{ + public class HeronRod : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Heron Rod"); + Tooltip.SetDefault("Increased fishing power in space.\n" + //John Steinbeck quote but fish instead of snake + "A silent head and beak lanced down and plucked it out by the head,\n" + + "and the beak swallowed the little fish while its tail waved frantically."); + } + + public override void SetDefaults() + { + //item.CloneDefaults(2289); //Wooden Fishing Pole + item.width = 24; + item.height = 28; + item.useAnimation = 8; + item.useTime = 8; + item.useStyle = 1; + item.UseSound = SoundID.Item1; + item.fishingPole = 25; + item.shootSpeed = 14.5f; + item.shoot = ModContent.ProjectileType(); + item.value = Item.buyPrice(0, 4, 0, 0); + item.rare = 3; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType(), 7); + recipe.AddIngredient(ItemID.SunplateBlock, 5); + recipe.AddTile(TileID.SkyMill); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Fishing/FishingRods/HeronRod.png b/Items/Fishing/FishingRods/HeronRod.png new file mode 100644 index 0000000000..48e1f73392 Binary files /dev/null and b/Items/Fishing/FishingRods/HeronRod.png differ diff --git a/Items/Fishing/NavyFishingRod.cs b/Items/Fishing/FishingRods/NavyFishingRod.cs similarity index 95% rename from Items/Fishing/NavyFishingRod.cs rename to Items/Fishing/FishingRods/NavyFishingRod.cs index 5413d607b4..6e16d27ad8 100644 --- a/Items/Fishing/NavyFishingRod.cs +++ b/Items/Fishing/FishingRods/NavyFishingRod.cs @@ -6,7 +6,7 @@ using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; using CalamityMod.Items.Placeables; -namespace CalamityMod.Items.Fishing +namespace CalamityMod.Items.Fishing.FishingRods { public class NavyFishingRod : ModItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Fishing item.useTime = 8; item.useStyle = 1; item.UseSound = SoundID.Item1; - item.fishingPole = 25; + item.fishingPole = 20; item.shootSpeed = 13f; item.shoot = ModContent.ProjectileType(); item.value = Item.buyPrice(0, 2, 0, 0); diff --git a/Items/Fishing/NavyFishingRod.png b/Items/Fishing/FishingRods/NavyFishingRod.png similarity index 100% rename from Items/Fishing/NavyFishingRod.png rename to Items/Fishing/FishingRods/NavyFishingRod.png diff --git a/Items/Fishing/SlurperPole.cs b/Items/Fishing/FishingRods/SlurperPole.cs similarity index 88% rename from Items/Fishing/SlurperPole.cs rename to Items/Fishing/FishingRods/SlurperPole.cs index 9cb3a2bfe8..78ada185fe 100644 --- a/Items/Fishing/SlurperPole.cs +++ b/Items/Fishing/FishingRods/SlurperPole.cs @@ -6,14 +6,14 @@ using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; using CalamityMod.Items.Materials; -namespace CalamityMod.Items.Fishing +namespace CalamityMod.Items.Fishing.FishingRods { public class SlurperPole : ModItem { public override void SetStaticDefaults() { DisplayName.SetDefault("Slurper Pole"); - Tooltip.SetDefault("Can fish in lava.\n" + + Tooltip.SetDefault("Can fish in lava.\n" + //Charles Spurgeon quote "It is the burning lava of the soul that has a furnace within--a very volcano of grief and sorrow."); } diff --git a/Items/Fishing/SlurperPole.png b/Items/Fishing/FishingRods/SlurperPole.png similarity index 100% rename from Items/Fishing/SlurperPole.png rename to Items/Fishing/FishingRods/SlurperPole.png diff --git a/Items/Fishing/EaterofShoals.cs b/Items/Fishing/FishingRods/TheDevourerofCods.cs similarity index 89% rename from Items/Fishing/EaterofShoals.cs rename to Items/Fishing/FishingRods/TheDevourerofCods.cs index ca06eb692d..f3ce7c4ab5 100644 --- a/Items/Fishing/EaterofShoals.cs +++ b/Items/Fishing/FishingRods/TheDevourerofCods.cs @@ -6,15 +6,15 @@ using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; using CalamityMod.Items.Materials; -namespace CalamityMod.Items.Fishing +namespace CalamityMod.Items.Fishing.FishingRods { - public class EaterofShoals : ModItem + public class TheDevourerofCods : ModItem { public override void SetStaticDefaults() { - DisplayName.SetDefault("Eater of Shoals"); + DisplayName.SetDefault("The Devourer of Cods"); Tooltip.SetDefault("Fires ten lines at once. Line never snaps and can fish from lava.\n" + - "The devourer enjoyed eating fish as much as eating gods."); + "The devourer was once just an Eater of Shoals."); } public override void SetDefaults() @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Fishing item.UseSound = SoundID.Item1; item.fishingPole = 75; item.shootSpeed = 20f; - item.shoot = ModContent.ProjectileType(); + item.shoot = ModContent.ProjectileType(); item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; item.Calamity().postMoonLordRarity = 14; diff --git a/Items/Fishing/EaterofShoals.png b/Items/Fishing/FishingRods/TheDevourerofCods.png similarity index 100% rename from Items/Fishing/EaterofShoals.png rename to Items/Fishing/FishingRods/TheDevourerofCods.png diff --git a/Items/Fishing/VerstaltiteFishingRod.cs b/Items/Fishing/FishingRods/VerstaltiteFishingRod.cs similarity index 96% rename from Items/Fishing/VerstaltiteFishingRod.cs rename to Items/Fishing/FishingRods/VerstaltiteFishingRod.cs index 7dd7673d5d..21ac4728a0 100644 --- a/Items/Fishing/VerstaltiteFishingRod.cs +++ b/Items/Fishing/FishingRods/VerstaltiteFishingRod.cs @@ -6,7 +6,7 @@ using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; using CalamityMod.Items.Materials; -namespace CalamityMod.Items.Fishing +namespace CalamityMod.Items.Fishing.FishingRods { public class VerstaltiteFishingRod : ModItem { diff --git a/Items/Fishing/VerstaltiteFishingRod.png b/Items/Fishing/FishingRods/VerstaltiteFishingRod.png similarity index 100% rename from Items/Fishing/VerstaltiteFishingRod.png rename to Items/Fishing/FishingRods/VerstaltiteFishingRod.png diff --git a/Items/Fishing/WulfrumRod.cs b/Items/Fishing/FishingRods/WulfrumRod.cs similarity index 96% rename from Items/Fishing/WulfrumRod.cs rename to Items/Fishing/FishingRods/WulfrumRod.cs index f58ae9d42b..bad16d5d96 100644 --- a/Items/Fishing/WulfrumRod.cs +++ b/Items/Fishing/FishingRods/WulfrumRod.cs @@ -6,7 +6,7 @@ using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; using CalamityMod.Items.Materials; -namespace CalamityMod.Items.Fishing +namespace CalamityMod.Items.Fishing.FishingRods { public class WulfrumRod : ModItem { diff --git a/Items/Fishing/WulfrumRod.png b/Items/Fishing/FishingRods/WulfrumRod.png similarity index 100% rename from Items/Fishing/WulfrumRod.png rename to Items/Fishing/FishingRods/WulfrumRod.png diff --git a/Items/Fishing/FishofFlight.cs b/Items/Fishing/FishofFlight.cs new file mode 100644 index 0000000000..e6f6021272 --- /dev/null +++ b/Items/Fishing/FishofFlight.cs @@ -0,0 +1,35 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Fishing +{ + public class FishofFlight : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Fish of Flight"); + Tooltip.SetDefault("Right click to extract souls"); + } + + public override void SetDefaults() + { + item.maxStack = 999; + item.consumable = true; + item.width = 30; + item.height = 30; + item.rare = 3; + item.value = Item.sellPrice(gold: 1); + } + + public override bool CanRightClick() + { + return true; + } + + public override void RightClick(Player player) + { + DropHelper.DropItem(player, ItemID.SoulofFlight, 5, 10); + } + } +} diff --git a/Items/Fishing/FishofLight.cs b/Items/Fishing/FishofLight.cs new file mode 100644 index 0000000000..02f0758911 --- /dev/null +++ b/Items/Fishing/FishofLight.cs @@ -0,0 +1,35 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Fishing +{ + public class FishofLight : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Fish of Light"); + Tooltip.SetDefault("Right click to extract souls"); + } + + public override void SetDefaults() + { + item.maxStack = 999; + item.consumable = true; + item.width = 34; + item.height = 34; + item.rare = 3; + item.value = Item.sellPrice(gold: 1); + } + + public override bool CanRightClick() + { + return true; + } + + public override void RightClick(Player player) + { + DropHelper.DropItem(player, ItemID.SoulofLight, 5, 10); + } + } +} diff --git a/Items/Fishing/FishofNight.cs b/Items/Fishing/FishofNight.cs new file mode 100644 index 0000000000..fc17d42d82 --- /dev/null +++ b/Items/Fishing/FishofNight.cs @@ -0,0 +1,35 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Fishing +{ + public class FishofNight : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Fish of Night"); + Tooltip.SetDefault("Right click to extract souls"); + } + + public override void SetDefaults() + { + item.maxStack = 999; + item.consumable = true; + item.width = 34; + item.height = 34; + item.rare = 3; + item.value = Item.sellPrice(gold: 1); + } + + public override bool CanRightClick() + { + return true; + } + + public override void RightClick(Player player) + { + DropHelper.DropItem(player, ItemID.SoulofNight, 5, 10); + } + } +} diff --git a/Items/Fishing/GlimmeingGemfish.png b/Items/Fishing/GlimmeringGemfish.png similarity index 100% rename from Items/Fishing/GlimmeingGemfish.png rename to Items/Fishing/GlimmeringGemfish.png diff --git a/Items/Fishing/SunkenSeaCatches/CoralskinFoolfish.png b/Items/Fishing/SunkenSeaCatches/CoralskinFoolfish.png new file mode 100644 index 0000000000..20a714b80d Binary files /dev/null and b/Items/Fishing/SunkenSeaCatches/CoralskinFoolfish.png differ diff --git a/Items/Fishing/SunkenSeaCatches/EutrophicSandfish.png b/Items/Fishing/SunkenSeaCatches/EutrophicSandfish.png new file mode 100644 index 0000000000..63c68b31dc Binary files /dev/null and b/Items/Fishing/SunkenSeaCatches/EutrophicSandfish.png differ diff --git a/Items/Fishing/SunkenSeaCatches/GreenwaveLoach.png b/Items/Fishing/SunkenSeaCatches/GreenwaveLoach.png new file mode 100644 index 0000000000..6acc66596f Binary files /dev/null and b/Items/Fishing/SunkenSeaCatches/GreenwaveLoach.png differ diff --git a/Items/Fishing/SunkenSeaCatches/PrismaticGuppy.png b/Items/Fishing/SunkenSeaCatches/PrismaticGuppy.png new file mode 100644 index 0000000000..9d9615c91c Binary files /dev/null and b/Items/Fishing/SunkenSeaCatches/PrismaticGuppy.png differ diff --git a/Items/Fishing/SunkenSeaCatches/ScarredAngelfish.png b/Items/Fishing/SunkenSeaCatches/ScarredAngelfish.png new file mode 100644 index 0000000000..b535397ff2 Binary files /dev/null and b/Items/Fishing/SunkenSeaCatches/ScarredAngelfish.png differ diff --git a/Items/Fishing/SunkenSeaCatches/SerpentsBite.png b/Items/Fishing/SunkenSeaCatches/SerpentsBite.png new file mode 100644 index 0000000000..4bdbe25a75 Binary files /dev/null and b/Items/Fishing/SunkenSeaCatches/SerpentsBite.png differ diff --git a/Items/Fishing/SunkenSeaCatches/Serpentuna.png b/Items/Fishing/SunkenSeaCatches/Serpentuna.png new file mode 100644 index 0000000000..6b4d0310e9 Binary files /dev/null and b/Items/Fishing/SunkenSeaCatches/Serpentuna.png differ diff --git a/Items/Fishing/SunkenSeaCatches/SunkenCrate.png b/Items/Fishing/SunkenSeaCatches/SunkenCrate.png new file mode 100644 index 0000000000..134f920a56 Binary files /dev/null and b/Items/Fishing/SunkenSeaCatches/SunkenCrate.png differ diff --git a/Items/Fishing/SunkenSeaCatches/SunkenSailfish.png b/Items/Fishing/SunkenSeaCatches/SunkenSailfish.png new file mode 100644 index 0000000000..ebc5b5cb89 Binary files /dev/null and b/Items/Fishing/SunkenSeaCatches/SunkenSailfish.png differ diff --git a/Items/Fishing/SunkenSeaCatches/SurfClam.png b/Items/Fishing/SunkenSeaCatches/SurfClam.png new file mode 100644 index 0000000000..15e8df50b9 Binary files /dev/null and b/Items/Fishing/SunkenSeaCatches/SurfClam.png differ diff --git a/Items/Tools/BobbitHook.png b/Items/Tools/BobbitHook.png new file mode 100644 index 0000000000..5bdc0788a8 Binary files /dev/null and b/Items/Tools/BobbitHook.png differ diff --git a/Items/Weapons/Rogue/BouncingBetty.cs b/Items/Weapons/Rogue/BouncingBetty.cs index 37f92918d6..080a2ae867 100644 --- a/Items/Weapons/Rogue/BouncingBetty.cs +++ b/Items/Weapons/Rogue/BouncingBetty.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SetStaticDefaults() { DisplayName.SetDefault("Bouncing Betty"); - Tooltip.SetDefault("Act like grenades, but bounce on explosion\n" + + Tooltip.SetDefault("Throws a grenade which bounces after exploding\n" + "Stealth Strike Effect: Explodes into a violent blast of fire and shrapnel on bounce"); } @@ -39,11 +39,10 @@ namespace CalamityMod.Items.Weapons.Rogue public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { Vector2 velocity = new Vector2(speedX, speedY); - float strikeValue = player.Calamity().StealthStrikeAvailable().ToInt(); //0 if false, 1 if true - int projectileIndex = Projectile.NewProjectile(position, velocity, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, ai1: strikeValue); + int projectileIndex = Projectile.NewProjectile(position, velocity, type, damage, knockBack, player.whoAmI); if (player.Calamity().StealthStrikeAvailable()) { - Main.projectile[projectileIndex].Calamity().stealthStrike = strikeValue == 1f; + Main.projectile[projectileIndex].Calamity().stealthStrike = true; } return false; } diff --git a/Items/Weapons/Rogue/HellsSun.cs b/Items/Weapons/Rogue/HellsSun.cs index 35397c5ede..2ed3d77179 100644 --- a/Items/Weapons/Rogue/HellsSun.cs +++ b/Items/Weapons/Rogue/HellsSun.cs @@ -51,8 +51,15 @@ namespace CalamityMod.Items.Weapons.Rogue { if (player.altFunctionUse == 2) { - return true; - } + if (player.ownedProjectileCounts[item.shoot] > 0) + { + return true; + } + else + { + return false; + } + } else { int UseMax = item.stack - 1; diff --git a/Items/Weapons/Rogue/SkyStabber.cs b/Items/Weapons/Rogue/SkyStabber.cs index faa7c35b80..588a67a383 100644 --- a/Items/Weapons/Rogue/SkyStabber.cs +++ b/Items/Weapons/Rogue/SkyStabber.cs @@ -49,8 +49,15 @@ namespace CalamityMod.Items.Weapons.Rogue { if (player.altFunctionUse == 2) { - return true; - } + if (player.ownedProjectileCounts[item.shoot] > 0) + { + return true; + } + else + { + return false; + } + } else { int UseMax = item.stack - 1; diff --git a/NPCs/Astral/Twinkler.cs b/NPCs/Astral/Twinkler.cs index 1ae096fbd3..d6c52c78eb 100644 --- a/NPCs/Astral/Twinkler.cs +++ b/NPCs/Astral/Twinkler.cs @@ -1,5 +1,5 @@ using CalamityMod.Dusts; -using CalamityMod.Items.Fishing; +using CalamityMod.Items.Fishing.AstralCatches; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/NPCs/Crags/SoulSlurper.cs b/NPCs/Crags/SoulSlurper.cs index 8247a4b339..396e12404f 100644 --- a/NPCs/Crags/SoulSlurper.cs +++ b/NPCs/Crags/SoulSlurper.cs @@ -1,7 +1,7 @@ using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; -using CalamityMod.Items.Fishing; +using CalamityMod.Items.Fishing.FishingRods; using CalamityMod.Projectiles.Boss; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/Projectiles/Rogue/BouncingBettyProjectile.cs b/Projectiles/Rogue/BouncingBettyProjectile.cs index e654dc437d..b8b2223d3f 100644 --- a/Projectiles/Rogue/BouncingBettyProjectile.cs +++ b/Projectiles/Rogue/BouncingBettyProjectile.cs @@ -19,11 +19,44 @@ namespace CalamityMod.Projectiles.Rogue projectile.width = 16; projectile.height = 22; projectile.friendly = true; - projectile.penetrate = -1; projectile.timeLeft = 600; projectile.penetrate = 3; projectile.Calamity().rogue = true; } + //This is definitely not a near copy of the Blast Barrel nosiree :> + private void Explode() + { + Main.PlaySound(2, projectile.Center, 14); + //This is definitely not a near copy of the Blast Barrel nosiree :> + bool stealthS = projectile.Calamity().stealthStrike; + int projectileCount = 2; + if (stealthS) + { + projectileCount += 2; + } + for (int i = 0; i < projectileCount; i++) + { + if (Main.rand.NextBool(4)) + { + Vector2 shrapnelVelocity = (Vector2.UnitY * (-16f + Main.rand.NextFloat(-7, 4f))).RotatedByRandom((double)MathHelper.ToRadians(30f)); + Projectile.NewProjectile(projectile.Center, projectile.velocity + shrapnelVelocity, + ModContent.ProjectileType(), BouncingBetty.BaseDamage, 3f, projectile.owner); + } + else + { + Vector2 fireVelocity = (Vector2.UnitY * (-16f + Main.rand.NextFloat(-7, 4f))).RotatedByRandom((double)MathHelper.ToRadians(40f)); + int fireIndex = Projectile.NewProjectile(projectile.Center, projectile.velocity + fireVelocity, + Main.rand.Next(ProjectileID.MolotovFire, ProjectileID.MolotovFire3 + 1), + BlastBarrel.BaseDamage, 1f, projectile.owner); + Main.projectile[fireIndex].thrown = false; + Main.projectile[fireIndex].Calamity().forceRogue = true; + Main.projectile[fireIndex].penetrate = -1; + Main.projectile[fireIndex].usesLocalNPCImmunity = true; + Main.projectile[fireIndex].localNPCHitCooldown = 9; + Main.projectile[fireIndex].timeLeft = 120; + } + } + } public override void AI() { projectile.rotation = projectile.velocity.ToRotation() + MathHelper.PiOver2; @@ -32,36 +65,7 @@ namespace CalamityMod.Projectiles.Rogue WorldGen.SolidTile(Main.tile[tileCoords.X, tileCoords.Y + 1]) && projectile.timeLeft < 575) { - Main.PlaySound(2, projectile.Center, 14); - //This is definitely not a near copy of the Blast Barrel nosiree :> - bool stealthS = projectile.Calamity().stealthStrike; - int projectileCount = 2; - if (stealthS) - { - projectileCount += 2; - } - for (int i = 0; i < projectileCount; i++) - { - if (Main.rand.NextBool(4)) - { - Vector2 shrapnelVelocity = (Vector2.UnitY * (-16f + Main.rand.NextFloat(-7, 4f))).RotatedByRandom((double)MathHelper.ToRadians(30f)); - Projectile.NewProjectile(projectile.Center, projectile.velocity + shrapnelVelocity, - ModContent.ProjectileType(), BlastBarrel.BaseDamage, 3f, projectile.owner); - } - else - { - Vector2 fireVelocity = (Vector2.UnitY * (-16f + Main.rand.NextFloat(-7, 4f))).RotatedByRandom((double)MathHelper.ToRadians(40f)); - int fireIndex = Projectile.NewProjectile(projectile.Center, projectile.velocity + fireVelocity, - Main.rand.Next(ProjectileID.MolotovFire, ProjectileID.MolotovFire3 + 1), - BlastBarrel.BaseDamage, 1f, projectile.owner); - Main.projectile[fireIndex].thrown = false; - Main.projectile[fireIndex].Calamity().forceRogue = true; - Main.projectile[fireIndex].penetrate = -1; - Main.projectile[fireIndex].usesLocalNPCImmunity = true; - Main.projectile[fireIndex].localNPCHitCooldown = 9; - Main.projectile[fireIndex].timeLeft = 120; - } - } + Explode(); projectile.Kill(); } else @@ -77,35 +81,7 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { Main.PlaySound(2, projectile.Center, 14); - //This is definitely not a near copy of the Blast Barrel nosiree :> - bool stealthS = projectile.Calamity().stealthStrike; - int projectileCount = 2; - if (stealthS) - { - projectileCount += 2; - } - for (int i = 0; i < projectileCount; i++) - { - if (Main.rand.NextBool(4)) - { - Vector2 shrapnelVelocity = (Vector2.UnitY * (-16f + Main.rand.NextFloat(-3, 12f))).RotatedByRandom((double)MathHelper.ToRadians(30f)); - Projectile.NewProjectile(projectile.Center, projectile.velocity + shrapnelVelocity, - ModContent.ProjectileType(), BlastBarrel.BaseDamage, 3f, projectile.owner); - } - else - { - Vector2 fireVelocity = (Vector2.UnitY * (-16f + Main.rand.NextFloat(-3, 12f))).RotatedByRandom((double)MathHelper.ToRadians(40f)); - int fireIndex = Projectile.NewProjectile(projectile.Center, projectile.velocity + fireVelocity, - Main.rand.Next(ProjectileID.MolotovFire, ProjectileID.MolotovFire3 + 1), - BlastBarrel.BaseDamage, 1f, projectile.owner); - Main.projectile[fireIndex].thrown = false; - Main.projectile[fireIndex].Calamity().forceRogue = true; - Main.projectile[fireIndex].penetrate = -1; - Main.projectile[fireIndex].usesLocalNPCImmunity = true; - Main.projectile[fireIndex].localNPCHitCooldown = 9; - Main.projectile[fireIndex].timeLeft = 120; - } - } + Explode(); projectile.velocity *= -1f; } } diff --git a/Projectiles/Rogue/BouncingBettyShrapnel.cs b/Projectiles/Rogue/BouncingBettyShrapnel.cs index a191403d53..8422f39467 100644 --- a/Projectiles/Rogue/BouncingBettyShrapnel.cs +++ b/Projectiles/Rogue/BouncingBettyShrapnel.cs @@ -31,6 +31,10 @@ namespace CalamityMod.Projectiles.Rogue { projectile.rotation = projectile.velocity.ToRotation() + MathHelper.PiOver2; } + else + { + projectile.rotation = MathHelper.PiOver2; + } projectile.velocity.Y += 0.2f; } } diff --git a/Projectiles/Rogue/EnchantedAxe2.cs b/Projectiles/Rogue/EnchantedAxe2.cs index ea425f3f08..1fcbab5b14 100644 --- a/Projectiles/Rogue/EnchantedAxe2.cs +++ b/Projectiles/Rogue/EnchantedAxe2.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Projectiles.Rogue projectile.friendly = true; projectile.tileCollide = false; projectile.penetrate = 2; - projectile.timeLeft = 600; + projectile.timeLeft = 150; projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = -1; projectile.Calamity().rogue = true; diff --git a/Projectiles/Typeless/BobbitHead.png b/Projectiles/Typeless/BobbitHead.png new file mode 100644 index 0000000000..b325c343d3 Binary files /dev/null and b/Projectiles/Typeless/BobbitHead.png differ diff --git a/Projectiles/Typeless/ChaoticSpreadBobber.cs b/Projectiles/Typeless/ChaoticSpreadBobber.cs index f8cc5bc35e..ab76a6788a 100644 --- a/Projectiles/Typeless/ChaoticSpreadBobber.cs +++ b/Projectiles/Typeless/ChaoticSpreadBobber.cs @@ -4,7 +4,7 @@ using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; -using CalamityMod.Items.Fishing; +using CalamityMod.Items.Fishing.FishingRods; namespace CalamityMod.Projectiles.Typeless { public class ChaoticSpreadBobber : ModProjectile diff --git a/Projectiles/Typeless/EaterofShoalsBobber.cs b/Projectiles/Typeless/DevourerofCodsBobber.cs similarity index 94% rename from Projectiles/Typeless/EaterofShoalsBobber.cs rename to Projectiles/Typeless/DevourerofCodsBobber.cs index 1c427f80ce..dc524bc79c 100644 --- a/Projectiles/Typeless/EaterofShoalsBobber.cs +++ b/Projectiles/Typeless/DevourerofCodsBobber.cs @@ -4,10 +4,10 @@ using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; -using CalamityMod.Items.Fishing; +using CalamityMod.Items.Fishing.FishingRods; namespace CalamityMod.Projectiles.Typeless { - public class EaterofShoalsBobber : ModProjectile + public class DevourerofCodsBobber : ModProjectile { private static int red = 252; private static int green = 109; @@ -15,7 +15,7 @@ namespace CalamityMod.Projectiles.Typeless public override void SetStaticDefaults() { - DisplayName.SetDefault("Eater of Shoals Bobber"); //dodger blue line + DisplayName.SetDefault("Devourer of Cods Bobber"); } public override void SetDefaults() @@ -32,7 +32,7 @@ namespace CalamityMod.Projectiles.Typeless /*public override void PostDraw(SpriteBatch spriteBatch, Color lightColor) { Vector2 origin = new Vector2(6.5f, 6.5f); - spriteBatch.Draw(ModContent.GetTexture("CalamityMod/Projectiles/Typeless/EaterofShoalsBobberGlow"), projectile.Center - Main.screenPosition, null, Color.White, projectile.rotation, origin, 1f, SpriteEffects.None, 0f); + spriteBatch.Draw(ModContent.GetTexture("CalamityMod/Projectiles/Typeless/DevourerofCodsGlow"), projectile.Center - Main.screenPosition, null, Color.White, projectile.rotation, origin, 1f, SpriteEffects.None, 0f); }*/ public override bool PreDrawExtras(SpriteBatch spriteBatch) @@ -48,7 +48,7 @@ namespace CalamityMod.Projectiles.Typeless int type = Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type; float gravDir = Main.player[projectile.owner].gravDir; - if (type == ModContent.ItemType()) + if (type == ModContent.ItemType()) { pPosX += (float)(45 * Main.player[projectile.owner].direction); if (Main.player[projectile.owner].direction < 0) diff --git a/Projectiles/Typeless/EaterofShoalsBobber.png b/Projectiles/Typeless/DevourerofCodsBobber.png similarity index 100% rename from Projectiles/Typeless/EaterofShoalsBobber.png rename to Projectiles/Typeless/DevourerofCodsBobber.png diff --git a/Projectiles/Typeless/EaterofShoalsBobberGlow.png b/Projectiles/Typeless/DevourerofCodsGlow.png similarity index 100% rename from Projectiles/Typeless/EaterofShoalsBobberGlow.png rename to Projectiles/Typeless/DevourerofCodsGlow.png diff --git a/Projectiles/Typeless/EarlyBloomBobber.cs b/Projectiles/Typeless/EarlyBloomBobber.cs index 774d39cee9..39e5cf933c 100644 --- a/Projectiles/Typeless/EarlyBloomBobber.cs +++ b/Projectiles/Typeless/EarlyBloomBobber.cs @@ -4,7 +4,7 @@ using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; -using CalamityMod.Items.Fishing; +using CalamityMod.Items.Fishing.FishingRods; namespace CalamityMod.Projectiles.Typeless { public class EarlyBloomBobber : ModProjectile diff --git a/Projectiles/Typeless/FeralDoubleBobber.cs b/Projectiles/Typeless/FeralDoubleBobber.cs index d8de6ad077..36948e6a85 100644 --- a/Projectiles/Typeless/FeralDoubleBobber.cs +++ b/Projectiles/Typeless/FeralDoubleBobber.cs @@ -4,7 +4,7 @@ using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; -using CalamityMod.Items.Fishing; +using CalamityMod.Items.Fishing.FishingRods; namespace CalamityMod.Projectiles.Typeless { public class FeralDoubleBobber : ModProjectile diff --git a/Projectiles/Typeless/HeronBobber.cs b/Projectiles/Typeless/HeronBobber.cs new file mode 100644 index 0000000000..48d304e5a8 --- /dev/null +++ b/Projectiles/Typeless/HeronBobber.cs @@ -0,0 +1,151 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using System; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items.Fishing.FishingRods; +namespace CalamityMod.Projectiles.Typeless +{ + public class HeronBobber : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Heron Bobber"); + } + + public override void SetDefaults() + { + //projectile.CloneDefaults(360); //Wooden Bobber + projectile.width = 14; + projectile.height = 14; + projectile.aiStyle = 61; + projectile.bobber = true; + projectile.penetrate = -1; + } + + public override bool PreDrawExtras(SpriteBatch spriteBatch) + { + Player player = Main.player[projectile.owner]; + if (projectile.bobber && Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].holdStyle > 0) + { + float pPosX = player.MountedCenter.X; + float pPosY = player.MountedCenter.Y; + pPosY += Main.player[projectile.owner].gfxOffY; + int type = Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type; + float gravDir = Main.player[projectile.owner].gravDir; + + if (type == ModContent.ItemType()) + { + pPosX += (float)(45 * Main.player[projectile.owner].direction); + if (Main.player[projectile.owner].direction < 0) + { + pPosX -= 13f; + } + pPosY -= 35f * gravDir; + } + + if (gravDir == -1f) + { + pPosY -= 12f; + } + Vector2 value = new Vector2(pPosX, pPosY); + value = Main.player[projectile.owner].RotatedRelativePoint(value + new Vector2(8f), true) - new Vector2(8f); + float projPosX = projectile.position.X + (float)projectile.width * 0.5f - value.X; + float projPosY = projectile.position.Y + (float)projectile.height * 0.5f - value.Y; + Math.Sqrt((double)(projPosX * projPosX + projPosY * projPosY)); + float rotation2 = (float)Math.Atan2((double)projPosY, (double)projPosX) - 1.57f; + bool flag2 = true; + if (projPosX == 0f && projPosY == 0f) + { + flag2 = false; + } + else + { + float projPosXY = (float)Math.Sqrt((double)(projPosX * projPosX + projPosY * projPosY)); + projPosXY = 12f / projPosXY; + projPosX *= projPosXY; + projPosY *= projPosXY; + value.X -= projPosX; + value.Y -= projPosY; + projPosX = projectile.position.X + (float)projectile.width * 0.5f - value.X; + projPosY = projectile.position.Y + (float)projectile.height * 0.5f - value.Y; + } + while (flag2) + { + float num = 12f; + float num2 = (float)Math.Sqrt((double)(projPosX * projPosX + projPosY * projPosY)); + float num3 = num2; + if (float.IsNaN(num2) || float.IsNaN(num3)) + { + flag2 = false; + } + else + { + if (num2 < 20f) + { + num = num2 - 8f; + flag2 = false; + } + num2 = 12f / num2; + projPosX *= num2; + projPosY *= num2; + value.X += projPosX; + value.Y += projPosY; + projPosX = projectile.position.X + (float)projectile.width * 0.5f - value.X; + projPosY = projectile.position.Y + (float)projectile.height * 0.1f - value.Y; + if (num3 > 12f) + { + float num4 = 0.3f; + float num5 = Math.Abs(projectile.velocity.X) + Math.Abs(projectile.velocity.Y); + if (num5 > 16f) + { + num5 = 16f; + } + num5 = 1f - num5 / 16f; + num4 *= num5; + num5 = num3 / 80f; + if (num5 > 1f) + { + num5 = 1f; + } + num4 *= num5; + if (num4 < 0f) + { + num4 = 0f; + } + num5 = 1f - projectile.localAI[0] / 100f; + num4 *= num5; + if (projPosY > 0f) + { + projPosY *= 1f + num4; + projPosX *= 1f - num4; + } + else + { + num5 = Math.Abs(projectile.velocity.X) / 3f; + if (num5 > 1f) + { + num5 = 1f; + } + num5 -= 0.5f; + num4 *= num5; + if (num4 > 0f) + { + num4 *= 2f; + } + projPosY *= 1f + num4; + projPosX *= 1f - num4; + } + } + rotation2 = (float)Math.Atan2((double)projPosY, (double)projPosX) - 1.57f; + Microsoft.Xna.Framework.Color color2 = Lighting.GetColor((int)value.X / 16, (int)(value.Y / 16f), new Microsoft.Xna.Framework.Color(101, 149, 154, 100)); //aerialite blue + + Main.spriteBatch.Draw(Main.fishingLineTexture, new Vector2(value.X - Main.screenPosition.X + (float)Main.fishingLineTexture.Width * 0.5f, value.Y - Main.screenPosition.Y + (float)Main.fishingLineTexture.Height * 0.5f), new Microsoft.Xna.Framework.Rectangle?(new Microsoft.Xna.Framework.Rectangle(0, 0, Main.fishingLineTexture.Width, (int)num)), color2, rotation2, new Vector2((float)Main.fishingLineTexture.Width * 0.5f, 0f), 1f, SpriteEffects.None, 0f); + } + } + } + return false; + } + } +} diff --git a/Projectiles/Typeless/HeronBobber.png b/Projectiles/Typeless/HeronBobber.png new file mode 100644 index 0000000000..e24fbf9704 Binary files /dev/null and b/Projectiles/Typeless/HeronBobber.png differ diff --git a/Projectiles/Typeless/NavyBobber.cs b/Projectiles/Typeless/NavyBobber.cs index 0015f06ecc..397213bf71 100644 --- a/Projectiles/Typeless/NavyBobber.cs +++ b/Projectiles/Typeless/NavyBobber.cs @@ -4,7 +4,7 @@ using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; -using CalamityMod.Items.Fishing; +using CalamityMod.Items.Fishing.FishingRods; namespace CalamityMod.Projectiles.Typeless { public class NavyBobber : ModProjectile diff --git a/Projectiles/Typeless/SerpentsBiteHook.png b/Projectiles/Typeless/SerpentsBiteHook.png new file mode 100644 index 0000000000..c4a48f39ee Binary files /dev/null and b/Projectiles/Typeless/SerpentsBiteHook.png differ diff --git a/Projectiles/Typeless/SlurperBobber.cs b/Projectiles/Typeless/SlurperBobber.cs index 41562fda79..a4c53a3d0b 100644 --- a/Projectiles/Typeless/SlurperBobber.cs +++ b/Projectiles/Typeless/SlurperBobber.cs @@ -4,7 +4,7 @@ using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; -using CalamityMod.Items.Fishing; +using CalamityMod.Items.Fishing.FishingRods; namespace CalamityMod.Projectiles.Typeless { public class SlurperBobber : ModProjectile diff --git a/Projectiles/Typeless/VerstaltiteBobber.cs b/Projectiles/Typeless/VerstaltiteBobber.cs index b2cd1da094..4fa2c4941a 100644 --- a/Projectiles/Typeless/VerstaltiteBobber.cs +++ b/Projectiles/Typeless/VerstaltiteBobber.cs @@ -4,7 +4,7 @@ using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; -using CalamityMod.Items.Fishing; +using CalamityMod.Items.Fishing.FishingRods; namespace CalamityMod.Projectiles.Typeless { public class VerstaltiteBobber : ModProjectile diff --git a/Projectiles/Typeless/WulfrumBobber.cs b/Projectiles/Typeless/WulfrumBobber.cs index 8aaed997c1..d180075c76 100644 --- a/Projectiles/Typeless/WulfrumBobber.cs +++ b/Projectiles/Typeless/WulfrumBobber.cs @@ -4,7 +4,7 @@ using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; -using CalamityMod.Items.Fishing; +using CalamityMod.Items.Fishing.FishingRods; namespace CalamityMod.Projectiles.Typeless { public class WulfrumBobber : ModProjectile diff --git a/Tiles/Abyss/Voidstone.cs b/Tiles/Abyss/Voidstone.cs index 0d9b69e724..2fb46a569c 100644 --- a/Tiles/Abyss/Voidstone.cs +++ b/Tiles/Abyss/Voidstone.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Tiles.Abyss TileID.Sets.ChecksForMerge[Type] = true; soundType = 21; mineResist = 10f; - minPick = 190; + minPick = 180; drop = ModContent.ItemType(); AddMapEntry(new Color(10, 10, 10)); } diff --git a/Tiles/Astral/AstralCrateTile.cs b/Tiles/Astral/AstralCrateTile.cs index ede7c6f469..9b962de188 100644 --- a/Tiles/Astral/AstralCrateTile.cs +++ b/Tiles/Astral/AstralCrateTile.cs @@ -1,5 +1,5 @@ using CalamityMod.Dusts; -using CalamityMod.Items.Fishing; +using CalamityMod.Items.Fishing.AstralCatches; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Tiles/FurnitureProfaned/ProfanedRock.cs b/Tiles/FurnitureProfaned/ProfanedRock.cs index afd5fba6bc..8f8b8f1b51 100644 --- a/Tiles/FurnitureProfaned/ProfanedRock.cs +++ b/Tiles/FurnitureProfaned/ProfanedRock.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned TileMerge.MergeSmoothTiles(Type); soundType = 21; - mineResist = 15f; + mineResist = 4f; minPick = 225; drop = ModContent.ItemType(); AddMapEntry(new Color(84, 38, 33)); diff --git a/Tiles/FurnitureProfaned/ProfanedSlab.cs b/Tiles/FurnitureProfaned/ProfanedSlab.cs index fe5640caa4..8431951683 100644 --- a/Tiles/FurnitureProfaned/ProfanedSlab.cs +++ b/Tiles/FurnitureProfaned/ProfanedSlab.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned TileMerge.MergeTile(Type, ModContent.TileType()); soundType = 21; - mineResist = 10f; + mineResist = 4f; minPick = 225; drop = ModContent.ItemType(); AddMapEntry(new Color(122, 66, 59)); diff --git a/Tiles/FurnitureProfaned/RunicProfanedBrick.cs b/Tiles/FurnitureProfaned/RunicProfanedBrick.cs index d9a3e67289..2a20cc9f67 100644 --- a/Tiles/FurnitureProfaned/RunicProfanedBrick.cs +++ b/Tiles/FurnitureProfaned/RunicProfanedBrick.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned TileMerge.MergeSmoothTiles(Type); soundType = 21; - mineResist = 10f; + mineResist = 4f; minPick = 225; drop = ModContent.ItemType(); AddMapEntry(new Color(122, 66, 59)); diff --git a/Tiles/FurnitureVoid/SmoothVoidstone.cs b/Tiles/FurnitureVoid/SmoothVoidstone.cs index 0d2b46d765..0575eeaa53 100644 --- a/Tiles/FurnitureVoid/SmoothVoidstone.cs +++ b/Tiles/FurnitureVoid/SmoothVoidstone.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Tiles.FurnitureVoid soundType = 21; mineResist = 7f; - minPick = 190; + minPick = 180; drop = ModContent.ItemType(); AddMapEntry(new Color(27, 24, 31)); } diff --git a/Tiles/FurnitureVoid/VoidstoneSlab.cs b/Tiles/FurnitureVoid/VoidstoneSlab.cs index da8a3184b2..cb3753725a 100644 --- a/Tiles/FurnitureVoid/VoidstoneSlab.cs +++ b/Tiles/FurnitureVoid/VoidstoneSlab.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Tiles.FurnitureVoid Main.tileBlockLight[Type] = true; soundType = 21; mineResist = 7f; - minPick = 190; + minPick = 180; drop = ModContent.ItemType(); AddMapEntry(new Color(27, 24, 31)); animationFrameHeight = 270; diff --git a/Tiles/SunkenSea/SunkenCrateTile.png b/Tiles/SunkenSea/SunkenCrateTile.png new file mode 100644 index 0000000000..7bff36134e Binary files /dev/null and b/Tiles/SunkenSea/SunkenCrateTile.png differ diff --git a/Utilities/CalamityRecipes.cs b/Utilities/CalamityRecipes.cs index f52050e382..f709f82674 100644 --- a/Utilities/CalamityRecipes.cs +++ b/Utilities/CalamityRecipes.cs @@ -1,6 +1,6 @@ using CalamityMod.Items.Accessories; using CalamityMod.Items.Accessories.Wings; -using CalamityMod.Items.Fishing; +using CalamityMod.Items.Fishing.AstralCatches; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Items.Weapons.Melee;