From 69a676ff6093827d6502aaa9f7d5ed03227f2ec9 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Wed, 6 Nov 2019 21:26:40 -0500 Subject: [PATCH] added sunken sea fish, gemfish, stuffed fish, and spadefish --- CalPlayer/CalamityPlayer.cs | 133 ++++++++++++++++++ Items/Fishing/GlimmeringGemfish.cs | 47 +++++++ Items/Fishing/Spadefish.cs | 35 +++++ Items/Fishing/StuffedFish.cs | 62 ++++++++ .../SunkenSeaCatches/CoralskinFoolfish.cs | 23 +++ .../SunkenSeaCatches/EutrophicSandfish.cs | 41 ++++++ .../SunkenSeaCatches/GreenwaveLoach.cs | 23 +++ .../SunkenSeaCatches/PrismaticGuppy.cs | 23 +++ .../SunkenSeaCatches/RustedJingleBell.png | Bin 0 -> 653 bytes .../SunkenSeaCatches/ScarredAngelfish.cs | 23 +++ Items/Fishing/SunkenSeaCatches/Serpentuna.cs | 40 ++++++ .../SunkenSeaCatches/SparklingEmpress.png | Bin 0 -> 964 bytes Items/Fishing/SunkenSeaCatches/SunkenCrate.cs | 97 +++++++++++++ .../SunkenSeaCatches/SunkenSailfish.cs | 23 +++ Items/Fishing/SunkenSeaCatches/SurfClam.cs | 41 ++++++ NPCs/AquaticScourge/AquaticScourgeHead.cs | 14 +- Projectiles/Pets/BabyGhostBell.png | Bin 0 -> 1451 bytes Tiles/SunkenSea/SunkenCrateTile.cs | 40 ++++++ 18 files changed, 658 insertions(+), 7 deletions(-) create mode 100644 Items/Fishing/GlimmeringGemfish.cs create mode 100644 Items/Fishing/Spadefish.cs create mode 100644 Items/Fishing/StuffedFish.cs create mode 100644 Items/Fishing/SunkenSeaCatches/CoralskinFoolfish.cs create mode 100644 Items/Fishing/SunkenSeaCatches/EutrophicSandfish.cs create mode 100644 Items/Fishing/SunkenSeaCatches/GreenwaveLoach.cs create mode 100644 Items/Fishing/SunkenSeaCatches/PrismaticGuppy.cs create mode 100644 Items/Fishing/SunkenSeaCatches/RustedJingleBell.png create mode 100644 Items/Fishing/SunkenSeaCatches/ScarredAngelfish.cs create mode 100644 Items/Fishing/SunkenSeaCatches/Serpentuna.cs create mode 100644 Items/Fishing/SunkenSeaCatches/SparklingEmpress.png create mode 100644 Items/Fishing/SunkenSeaCatches/SunkenCrate.cs create mode 100644 Items/Fishing/SunkenSeaCatches/SunkenSailfish.cs create mode 100644 Items/Fishing/SunkenSeaCatches/SurfClam.cs create mode 100644 Projectiles/Pets/BabyGhostBell.png create mode 100644 Tiles/SunkenSea/SunkenCrateTile.cs diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 6a6a8e72e0..7d48e31320 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -13,6 +13,7 @@ using CalamityMod.Items.Accessories.Vanity; using CalamityMod.Items.DifficultyItems; using CalamityMod.Items.Fishing; using CalamityMod.Items.Fishing.AstralCatches; +using CalamityMod.Items.Fishing.SunkenSeaCatches; using CalamityMod.Items.Fishing.FishingRods; using CalamityMod.Items.Mounts; using CalamityMod.Items.Pets; @@ -7384,6 +7385,22 @@ namespace CalamityMod.CalPlayer break; } } + /*if (ZoneSunkenSea) + { + switch (Main.rand.Next(2)) + { + case 0: + rareItemList.Add(ModContent.ItemType()); + break; + case 1: + rareItemList.Add(ModContent.ItemType()); + break; + } + if (Main.hardMode) + { + rareItemList.Add(ModContent.ItemType()); + } + }*/ if (player.ZoneSnow && player.ZoneRockLayerHeight && (player.ZoneCorrupt || player.ZoneCrimson || player.ZoneHoly)) { rareItemList.Add(ItemID.ScalyTruffle); @@ -7400,6 +7417,10 @@ namespace CalamityMod.CalPlayer { rareItemList.Add(ItemID.CrystalSerpent); } + if (player.ZoneDirtLayerHeight) + { + rareItemList.Add(ModContent.ItemType()); + } if (rareItemList.Any()) { @@ -7420,6 +7441,10 @@ namespace CalamityMod.CalPlayer { biomeCrateList.Add(ModContent.ItemType()); } + if (ZoneSunkenSea) + { + biomeCrateList.Add(ModContent.ItemType()); + } if (player.ZoneCorrupt) { biomeCrateList.Add(ItemID.CorruptFishingCrate); @@ -7444,6 +7469,7 @@ namespace CalamityMod.CalPlayer { biomeCrateList.Add(ItemID.FloatingIslandFishingCrate); } + if (biomeCrateList.Any()) { @@ -7528,6 +7554,75 @@ namespace CalamityMod.CalPlayer } } + if (ZoneSunkenSea) //Sunken Sea, fishing in water + { + int sunkenFish = Main.rand.Next(100); + if (caughtType == ItemID.WoodenCrate) + { + caughtType = ItemID.WoodenCrate; + } + else if (caughtType == ItemID.IronCrate) + { + caughtType = ItemID.IronCrate; + } + else if (caughtType == ItemID.GoldenCrate) + { + caughtType = ItemID.GoldenCrate; + } + else if (caughtType == ItemID.FrogLeg) + { + caughtType = ItemID.FrogLeg; + } + else if (caughtType == ItemID.BalloonPufferfish) + { + caughtType = ItemID.BalloonPufferfish; + } + else if (caughtType == ItemID.ZephyrFish) + { + caughtType = ItemID.ZephyrFish; + } + else if (sunkenFish >= 85 && Main.hardMode) //15% + { + caughtType = ModContent.ItemType(); + } + else if (sunkenFish <= 84 && sunkenFish >= 70) //15% + { + caughtType = ModContent.ItemType(); + } + else if (sunkenFish <= 69 && sunkenFish >= 55) //15% + { + caughtType = ModContent.ItemType(); + } + else if (player.cratePotion && sunkenFish <= 9 && sunkenFish >= 28) //20% + { + caughtType = ModContent.ItemType(); + } + else if (!player.cratePotion && sunkenFish <= 9 && sunkenFish >= 18) //10% + { + caughtType = ModContent.ItemType(); + } + else if (sunkenFish <= 29 && sunkenFish >= 31) //3% + { + caughtType = ModContent.ItemType(); + } + /*else if (sunkenFish <= 6 && sunkenFish >= 8 && Main.hardMode) //3% + { + caughtType = ModContent.ItemType(); + } + else if (sunkenFish <= 3 && sunkenFish >= 5) //3% + { + caughtType = ModContent.ItemType(); + } + else if (sunkenFish <= 2 && sunkenFish >= 0) //3% + { + caughtType = ModContent.ItemType(); + }*/ + else //33% w/o crate pot, 23% w/ crate pot + 28% if prehardmode + { + caughtType = ModContent.ItemType(); + } + } + if ((player.ZoneCrimson || player.ZoneCorrupt) && player.ZoneRockLayerHeight) { if (Main.rand.NextBool(15)) @@ -7559,6 +7654,30 @@ namespace CalamityMod.CalPlayer caughtType = ModContent.ItemType(); } } + + if (player.ZoneOverworldHeight && Main.dayTime) + { + if (Main.rand.NextBool(15)) + { + caughtType = ModContent.ItemType(); + } + } + + if (player.ZoneRockLayerHeight) + { + if (Main.rand.NextBool(15)) + { + caughtType = ModContent.ItemType(); + } + } + + if (player.ZoneDirtLayerHeight) + { + if (Main.rand.NextBool(40)) + { + caughtType = ModContent.ItemType(); + } + } if (junk) { @@ -7639,6 +7758,20 @@ namespace CalamityMod.CalPlayer } } } + + //Quest Fish + if (ZoneSunkenSea && questFish == ModContent.ItemType() && Main.rand.NextBool(10)) + { + caughtType = ModContent.ItemType(); + } + if (ZoneSunkenSea && questFish == ModContent.ItemType() && Main.rand.NextBool(10)) + { + caughtType = ModContent.ItemType(); + } + if (ZoneSunkenSea && questFish == ModContent.ItemType() && Main.rand.NextBool(10)) + { + caughtType = ModContent.ItemType(); + } } public override void GetFishingLevel(Item fishingRod, Item bait, ref int fishingLevel) diff --git a/Items/Fishing/GlimmeringGemfish.cs b/Items/Fishing/GlimmeringGemfish.cs new file mode 100644 index 0000000000..b60cd4d7bf --- /dev/null +++ b/Items/Fishing/GlimmeringGemfish.cs @@ -0,0 +1,47 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Fishing +{ + public class GlimmeringGemfish : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Glimmering Gemfish"); + Tooltip.SetDefault("Right click to extract herbs and seeds"); + } + + public override void SetDefaults() + { + item.maxStack = 999; + item.consumable = true; + item.width = 34; + item.height = 30; + item.rare = 2; + item.value = Item.sellPrice(silver: 50); + } + + public override bool CanRightClick() + { + return true; + } + + public override void RightClick(Player player) + { + int gemMin = 1; + int gemMax = 3; + DropHelper.DropItemChance(player, ItemID.Amethyst, 0.5f, gemMin, gemMax); + DropHelper.DropItemChance(player, ItemID.Topaz, 0.4f, gemMin, gemMax); + DropHelper.DropItemChance(player, ItemID.Sapphire, 0.3f, gemMin, gemMax); + DropHelper.DropItemChance(player, ItemID.Emerald, 0.2f, gemMin, gemMax); + DropHelper.DropItemChance(player, ItemID.Ruby, 0.15f, gemMin, gemMax); + DropHelper.DropItemChance(player, ItemID.Diamond, 0.1f, gemMin, gemMax); + DropHelper.DropItemChance(player, ItemID.Amber, 0.25f, gemMin, gemMax); + /*Mod thorium = ModLoader.GetMod("ThoriumMod"); + DropHelper.DropItemChance(player, thorium.ItemType("Pearl"), 0.25f, gemMin, gemMax); + DropHelper.DropItemChance(player, thorium.ItemType("Opal"), 0.25f, gemMin, gemMax); + DropHelper.DropItemChance(player, thorium.ItemType("Onyx"), 0.25f, gemMin, gemMax);*/ + } + } +} diff --git a/Items/Fishing/Spadefish.cs b/Items/Fishing/Spadefish.cs new file mode 100644 index 0000000000..01c3a1e414 --- /dev/null +++ b/Items/Fishing/Spadefish.cs @@ -0,0 +1,35 @@ +using CalamityMod.Items.Materials; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Fishing +{ + public class Spadefish : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Spadefish"); + Tooltip.SetDefault("How can a fish be used to dig through the ground?\n" + + "Some questions are best left unanswered."); + } + + public override void SetDefaults() + { + item.damage = 15; + item.melee = true; + item.width = 46; + item.height = 44; + item.useTime = 8; + item.useAnimation = 16; + item.useTurn = true; + item.pick = 30; + item.useStyle = 1; + item.knockBack = 2f; + item.value = Item.buyPrice(0, 2, 0, 0); + item.rare = 2; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + } + } +} diff --git a/Items/Fishing/StuffedFish.cs b/Items/Fishing/StuffedFish.cs new file mode 100644 index 0000000000..5409c34724 --- /dev/null +++ b/Items/Fishing/StuffedFish.cs @@ -0,0 +1,62 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Fishing +{ + public class StuffedFish : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Stuffed Fish"); + Tooltip.SetDefault("Right click to extract herbs and seeds"); + } + + public override void SetDefaults() + { + item.maxStack = 999; + item.consumable = true; + item.width = 34; + item.height = 30; + item.rare = 2; + item.value = Item.sellPrice(silver: 50); + } + + public override bool CanRightClick() + { + return true; + } + + public override void RightClick(Player player) + { + int herbMin = 1; + int herbMax = 3; + int seedMin = 2; + int seedMax = 5; + DropHelper.DropItemChance(player, ItemID.Daybloom, 0.25f, herbMin, herbMax); + DropHelper.DropItemChance(player, ItemID.Moonglow, 0.25f, herbMin, herbMax); + DropHelper.DropItemChance(player, ItemID.Waterleaf, 0.25f, herbMin, herbMax); + DropHelper.DropItemChance(player, ItemID.Deathweed, 0.25f, herbMin, herbMax); + DropHelper.DropItemChance(player, ItemID.Shiverthorn, 0.25f, herbMin, herbMax); + DropHelper.DropItemChance(player, ItemID.Fireblossom, 0.25f, herbMin, herbMax); + DropHelper.DropItemChance(player, ItemID.Blinkroot, 0.25f, herbMin, herbMax); + DropHelper.DropItemChance(player, ItemID.DaybloomSeeds, 0.20f, seedMin, seedMax); + DropHelper.DropItemChance(player, ItemID.MoonglowSeeds, 0.20f, seedMin, seedMax); + DropHelper.DropItemChance(player, ItemID.WaterleafSeeds, 0.20f, seedMin, seedMax); + DropHelper.DropItemChance(player, ItemID.DeathweedSeeds, 0.20f, seedMin, seedMax); + DropHelper.DropItemChance(player, ItemID.ShiverthornSeeds, 0.20f, seedMin, seedMax); + DropHelper.DropItemChance(player, ItemID.FireblossomSeeds, 0.20f, seedMin, seedMax); + DropHelper.DropItemChance(player, ItemID.BlinkrootSeeds, 0.20f, seedMin, seedMax); + DropHelper.DropItemChance(player, ItemID.GrassSeeds, 0.1f, seedMin, seedMax); + DropHelper.DropItemChance(player, ItemID.JungleGrassSeeds, 0.1f, seedMin, seedMax); + DropHelper.DropItemChance(player, ItemID.MushroomGrassSeeds, 0.1f, seedMin, seedMax); + DropHelper.DropItemChance(player, ItemID.PumpkinSeed, 0.05f, seedMin, seedMax); + DropHelper.DropItemCondition(player, ItemID.CorruptSeeds, !WorldGen.crimson, 0.05f, seedMin, seedMax); + DropHelper.DropItemCondition(player, ItemID.CrimsonSeeds, WorldGen.crimson, 0.05f, seedMin, seedMax); + DropHelper.DropItemCondition(player, ItemID.HallowedSeeds, Main.hardMode, 0.05f, seedMin, seedMax); + /*Mod thorium = ModLoader.GetMod("ThoriumMod"); + DropHelper.DropItemChance(player, thorium.ItemType("MarineKelp"), 0.25f, herbMin, herbMax); + DropHelper.DropItemChance(player, thorium.ItemType("MarineKelpSeeds"), 0.1f, seedMin, seedMax);*/ + } + } +} diff --git a/Items/Fishing/SunkenSeaCatches/CoralskinFoolfish.cs b/Items/Fishing/SunkenSeaCatches/CoralskinFoolfish.cs new file mode 100644 index 0000000000..dc3459d78e --- /dev/null +++ b/Items/Fishing/SunkenSeaCatches/CoralskinFoolfish.cs @@ -0,0 +1,23 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Fishing.SunkenSeaCatches +{ + public class CoralskinFoolfish : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Coralskin Foolfish"); //Potion material + Tooltip.SetDefault("Camouflage is one of nature's best defenses"); + } + + public override void SetDefaults() + { + item.width = 28; + item.height = 28; + item.maxStack = 999; + item.value = Item.sellPrice(silver: 7); + item.rare = 2; + } + } +} diff --git a/Items/Fishing/SunkenSeaCatches/EutrophicSandfish.cs b/Items/Fishing/SunkenSeaCatches/EutrophicSandfish.cs new file mode 100644 index 0000000000..bcdfed9979 --- /dev/null +++ b/Items/Fishing/SunkenSeaCatches/EutrophicSandfish.cs @@ -0,0 +1,41 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.World; + +namespace CalamityMod.Items.Fishing.SunkenSeaCatches +{ + public class EutrophicSandfish : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Eutrophic Sandfish"); + } + + public override void SetDefaults() + { + item.questItem = true; + item.maxStack = 1; + item.width = 40; + item.height = 28; + item.uniqueStack = true; + item.rare = ItemRarityID.Quest; + } + + public override bool IsQuestFish() + { + return true; + } + + public override bool IsAnglerQuestAvailable() + { + return CalamityWorld.downedDesertScourge; + } + + public override void AnglerQuestChat(ref string description, ref string catchLocation) + { + description = "You ever get to see what would happen if a lizard that lived in the desert scurried too deep underground? I did, and they sure are cool! But it’s way too slippery for me to get my hands on it now. You go and get it so I can keep it as a pet!"; + catchLocation = "Caught in the Sunken Sea."; + } + } +} \ No newline at end of file diff --git a/Items/Fishing/SunkenSeaCatches/GreenwaveLoach.cs b/Items/Fishing/SunkenSeaCatches/GreenwaveLoach.cs new file mode 100644 index 0000000000..966e14f0ba --- /dev/null +++ b/Items/Fishing/SunkenSeaCatches/GreenwaveLoach.cs @@ -0,0 +1,23 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Fishing.SunkenSeaCatches +{ + public class GreenwaveLoach : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Greenwave Loach"); + Tooltip.SetDefault("An endangered fish that is highly prized in the market"); + } + + public override void SetDefaults() + { + item.width = 40; + item.height = 38; + item.maxStack = 999; + item.value = Item.sellPrice(gold: 10); + item.rare = 3; + } + } +} diff --git a/Items/Fishing/SunkenSeaCatches/PrismaticGuppy.cs b/Items/Fishing/SunkenSeaCatches/PrismaticGuppy.cs new file mode 100644 index 0000000000..2d8db179b3 --- /dev/null +++ b/Items/Fishing/SunkenSeaCatches/PrismaticGuppy.cs @@ -0,0 +1,23 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Fishing.SunkenSeaCatches +{ + public class PrismaticGuppy : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Prismatic Guppy"); + Tooltip.SetDefault("Throwing these in an aquarium would be insanity"); + } + + public override void SetDefaults() + { + item.width = 30; + item.height = 28; + item.maxStack = 999; + item.value = Item.sellPrice(silver: 7); + item.rare = 2; + } + } +} diff --git a/Items/Fishing/SunkenSeaCatches/RustedJingleBell.png b/Items/Fishing/SunkenSeaCatches/RustedJingleBell.png new file mode 100644 index 0000000000000000000000000000000000000000..0549aae29d9d56bb9b683c57c5c4bab567976658 GIT binary patch literal 653 zcmV;80&@L{P)Px#AY({UO#lFTCIA3{ga82g0001h=l}q9FaQARU;qF* zm;eA5aGbhPJOBUy24YJ`L;(K){{a7>y{D4^00G-cL_t(Y$HkUSOB+!XhM!RxYc!xH zC>E<|R04v8RuFL|l7)zL<*q2*6&L;qUHccrwJX=5bms@yGzi6DQ1JuAVvL|B7%1an zJd!ic#ohJY+{wM?T;`dZ^WNiNP&%1Xzulg00Cuwb9zbt$&;dBj7gSvF`Yd$6IxNXC zk#xqI0k|qYc(v;@t1AF3&o8RHXlt7TaCch@C9_XtB1w-Y0C4BNtHiyZy8xW*{{;16HORwdxgw8>L^S!uC;s(2r{?=ch5?A2AFKS!az&lLeWDNb z^#EkAZvaRXI{--jSPCVpZmg;K%=0Mut*)!q?Gu$As{nkCw*zoLIHm&SY=kJN#88JK zx~*2k@z?uZ{h(=FD$6Q(W$Y}4Wyo03jVmUl~;RuZDIm=-5ZF4-&(vdIB$~l687ros`&6iSGyo?-W6$* z(F5q5ne_wK*F*DylCJ3e`nsURIV$Zj01gfdUf3R{4pn50=n2Dxr5%GTD2M<601|XX nSad~LNk%$Pa%p95bYXO9Z*BlFgjnqF00000NkvXXu0mjf;%y!u literal 0 HcmV?d00001 diff --git a/Items/Fishing/SunkenSeaCatches/ScarredAngelfish.cs b/Items/Fishing/SunkenSeaCatches/ScarredAngelfish.cs new file mode 100644 index 0000000000..e9a1b797d5 --- /dev/null +++ b/Items/Fishing/SunkenSeaCatches/ScarredAngelfish.cs @@ -0,0 +1,23 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Fishing.SunkenSeaCatches +{ + public class ScarredAngelfish : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Scarred Angelfish"); //Bass substitute + Tooltip.SetDefault("The mark of a fallen angel"); + } + + public override void SetDefaults() + { + item.width = 28; + item.height = 26; + item.maxStack = 999; + item.value = Item.sellPrice(silver: 5); + item.rare = 1; + } + } +} diff --git a/Items/Fishing/SunkenSeaCatches/Serpentuna.cs b/Items/Fishing/SunkenSeaCatches/Serpentuna.cs new file mode 100644 index 0000000000..c6b9c09a0c --- /dev/null +++ b/Items/Fishing/SunkenSeaCatches/Serpentuna.cs @@ -0,0 +1,40 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Fishing.SunkenSeaCatches +{ + public class Serpentuna : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Serpentuna"); + } + + public override void SetDefaults() + { + item.questItem = true; + item.maxStack = 1; + item.width = 36; + item.height = 40; + item.uniqueStack = true; + item.rare = ItemRarityID.Quest; + } + + public override bool IsQuestFish() + { + return true; + } + + public override bool IsAnglerQuestAvailable() + { + return Main.hardMode; + } + + public override void AnglerQuestChat(ref string description, ref string catchLocation) + { + description = "Sea serpents are pretty but not as pretty as the look on someone's face when they find one in their chair. I need you to fetch me the props for my next big scare, and the deadline is tomorrow."; + catchLocation = "Caught in the Sunken Sea."; + } + } +} \ No newline at end of file diff --git a/Items/Fishing/SunkenSeaCatches/SparklingEmpress.png b/Items/Fishing/SunkenSeaCatches/SparklingEmpress.png new file mode 100644 index 0000000000000000000000000000000000000000..20b8ceea283cb927ddcae4d77c1d96a10229b24b GIT binary patch literal 964 zcmV;#13UbQP)Px#AY({UO#lFTCIA3{ga82g0001h=l}q9FaQARU;qF* zm;eA5aGbhPJOBUy24YJ`L;(K){{a7>y{D4^00R<9L_t(o!|j+$NEJ~S$A6>d6*S+9 zZ%quvL^NF(n9+05vJxW1WwkR}g;7aCxNH^FGAaWft8iloi7U+%H7bJgnW=G=>jU4@ z;@r>cndW*eG??nYIdi@{bLQON{J-y<8G}7i&e0kqR}ZjH`A~wGoL40L)KKn|3!6k0zFv zYw;J?9%=o;yh6Z7+;o`+IEd(W9yI}`#ykKNl%=a^S`+~N4PDyF^HbA+&x4Z1BFX0V zCPnb#gDbWK@%F`=5mD+%Ifkfl^5$_ZFg9PQ5#1jhW&osQ#{iI;9cykkpm=bqvr{8! zRsPi@T3^nW>`yN$F#tyUdH{zJRpf$V4FGc^0|3uzG5}wfBTRtAv`7OWAzT%T{)R3S zeAz4#f>w`;UO&ET8$WjWwsw7Meck399Yr)mW<0myHUV;72LVWRxrHd;%l?VC9|7Mk zNY-v4Yb7b3ZLB_{#n)rc0}$+P*5dx2grkT85Eqh93;@r_ zdjP^yO1B+YNIt8$uE-r$1f_2Ff9MBbxI=lqZKwtC)lbI~{b{Wa&paiETD^?T$T9%d zmcIbtnKVp*>ZiAC2X1e&CnH2flHL14RlN=l2?bzj(W9N`7@`69qq0A2t*`SERu7@9 z%04@-E0JXN%1{9Sz22%Jdjiqw$`SyxpI+LI>lmT|J!;)?`>S*Q)^zb;bW)4~5S5Sv z{QUMQb6FUEWjl^zi2C(tQeM8{C8CiPa#9CRTu|@fLb|P1)kCWXXTQyO+is2EPURS) ze*cwtHNB_=fYH7ljjYwHvX9IvEj9p#-t_*G2LtKvA&Q^u?`XaQK%CmPZm!t`@ZNu- zSk`<|W`!QM68&9r{^S^5_Cma mbVXQ6MmkS&X=QG7VRUJ4ZU8ZaSnTfr0000(); + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + } + + public override bool CanRightClick() + { + return true; + } + + public override void RightClick(Player player) + { + //Modded materials + DropHelper.DropItem(player, ModContent.ItemType(), 10, 30); + DropHelper.DropItem(player, ModContent.ItemType(), 10, 30); + if (CalamityWorld.downedDesertScourge) + { + DropHelper.DropItem(player, ModContent.ItemType(), 10, 20); + DropHelper.DropItem(player, ModContent.ItemType(), 5, 10); + } + if (Main.hardMode) + { + DropHelper.DropItemChance(player, ModContent.ItemType(), 0.5f, 5, 15); + } + + // Weapons + DropHelper.DropItemFromSetCondition(player, CalamityWorld.downedCLAM && Main.hardMode, 0.2f, + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType()); + + //Bait + DropHelper.DropItemChance(player, ItemID.MasterBait, 10, 1, 2); + DropHelper.DropItemChance(player, ItemID.JourneymanBait, 5, 1, 3); + DropHelper.DropItemChance(player, ItemID.ApprenticeBait, 3, 2, 3); + + //Potions + DropHelper.DropItemChance(player, ItemID.ObsidianSkinPotion, 10, 1, 3); + DropHelper.DropItemChance(player, ItemID.SwiftnessPotion, 10, 1, 3); + DropHelper.DropItemChance(player, ItemID.IronskinPotion, 10, 1, 3); + DropHelper.DropItemChance(player, ItemID.NightOwlPotion, 10, 1, 3); + DropHelper.DropItemChance(player, ItemID.ShinePotion, 10, 1, 3); + DropHelper.DropItemChance(player, ItemID.MiningPotion, 10, 1, 3); + DropHelper.DropItemChance(player, ItemID.HeartreachPotion, 10, 1, 3); + DropHelper.DropItemChance(player, ItemID.TrapsightPotion, 10, 1, 3); //Dangersense Potion + if (Main.hardMode) + { + DropHelper.DropItem(player, Main.rand.Next(100) >= 49 ? ItemID.GreaterHealingPotion: ItemID.GreaterManaPotion, 5, 10); + } + else + { + DropHelper.DropItem(player, Main.rand.Next(100) >= 49 ? ItemID.HealingPotion : ItemID.ManaPotion, 5, 10); + } + + //Money + DropHelper.DropItem(player, ItemID.SilverCoin, 10, 90); + DropHelper.DropItemChance(player, ItemID.GoldCoin, 0.5f, 1, 5); + } + } +} diff --git a/Items/Fishing/SunkenSeaCatches/SunkenSailfish.cs b/Items/Fishing/SunkenSeaCatches/SunkenSailfish.cs new file mode 100644 index 0000000000..c6080e730a --- /dev/null +++ b/Items/Fishing/SunkenSeaCatches/SunkenSailfish.cs @@ -0,0 +1,23 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Fishing.SunkenSeaCatches +{ + public class SunkenSailfish : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Sunken Sailfish"); //Potion material + Tooltip.SetDefault("Zooming at 60 miles per hour"); + } + + public override void SetDefaults() + { + item.width = 58; + item.height = 52; + item.maxStack = 999; + item.value = Item.sellPrice(silver: 7); + item.rare = 2; + } + } +} diff --git a/Items/Fishing/SunkenSeaCatches/SurfClam.cs b/Items/Fishing/SunkenSeaCatches/SurfClam.cs new file mode 100644 index 0000000000..1a43ffa981 --- /dev/null +++ b/Items/Fishing/SunkenSeaCatches/SurfClam.cs @@ -0,0 +1,41 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.World; + +namespace CalamityMod.Items.Fishing.SunkenSeaCatches +{ + public class SurfClam : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Surf Clam"); + } + + public override void SetDefaults() + { + item.questItem = true; + item.maxStack = 1; + item.width = 20; + item.height = 20; + item.uniqueStack = true; + item.rare = ItemRarityID.Quest; + } + + public override bool IsQuestFish() + { + return true; + } + + public override bool IsAnglerQuestAvailable() + { + return CalamityWorld.downedDesertScourge; + } + + public override void AnglerQuestChat(ref string description, ref string catchLocation) + { + description = "Did you know that clams are a delicacy? Rumor has it that a big colony lives beneath the Desert. Just talking about them makes me hungry. I need you to fetch one for me, so I can practice my culinary skills and curb my hunger."; + catchLocation = "Caught in the Sunken Sea."; + } + } +} \ No newline at end of file diff --git a/NPCs/AquaticScourge/AquaticScourgeHead.cs b/NPCs/AquaticScourge/AquaticScourgeHead.cs index 63d45a3aae..2979f43a1a 100644 --- a/NPCs/AquaticScourge/AquaticScourgeHead.cs +++ b/NPCs/AquaticScourge/AquaticScourgeHead.cs @@ -583,18 +583,18 @@ namespace CalamityMod.NPCs.AquaticScourge if (!Main.expertMode) { // Materials - DropHelper.DropItemCondition(npc, ItemID.SoulofSight, Main.hardMode, 20, 40); + DropHelper.DropItem(npc, ItemID.SoulofSight, 20, 40); DropHelper.DropItem(npc, ModContent.ItemType(), 11, 20); DropHelper.DropItem(npc, ItemID.Coral, 5, 9); DropHelper.DropItem(npc, ItemID.Seashell, 5, 9); DropHelper.DropItem(npc, ItemID.Starfish, 5, 9); - // Weapons (Hardmode only) - DropHelper.DropItemCondition(npc, ModContent.ItemType(), Main.hardMode, 4, 1, 1); - DropHelper.DropItemCondition(npc, ModContent.ItemType(), Main.hardMode, 4, 1, 1); - DropHelper.DropItemCondition(npc, ModContent.ItemType(), Main.hardMode, 4, 1, 1); - DropHelper.DropItemCondition(npc, ModContent.ItemType(), Main.hardMode, 4, 1, 1); - DropHelper.DropItemCondition(npc, ModContent.ItemType(), Main.hardMode, 4, 1, 1); + // Weapons + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); // Equipment DropHelper.DropItemChance(npc, ModContent.ItemType(), 9); diff --git a/Projectiles/Pets/BabyGhostBell.png b/Projectiles/Pets/BabyGhostBell.png new file mode 100644 index 0000000000000000000000000000000000000000..38199d7378c9071741f8ef9b02c421221211305f GIT binary patch literal 1451 zcmV;c1yuTpP)Px#AY({UO#lFTCIA3{ga82g0001h=l}q9FaQARU;qF* zm;eA5aGbhPJOBUy24YJ`L;(K){{a7>y{D4^00j9-L_t(|+U=Y@XcR#hhTk*kY$cUo zBSch$*aZ>=(Z))|fM~Gwr-@ieKs*s7m1yHnD=LB#QrReiCSVsKL@{8a2!f=wJl10K zW^>=&xASwW@J;4vBzL>F%j4|K?Dy_$3j?xua;5-)p~Itnzwa!s0RX-&-fsK9kbO&kh?7fR#`@Oh2S^)8e(=$qw=Re%-`utXF$ji*lqEl@B``Hl`fWO&vj7pO( zgPM85{b|_OtbL=gCQsZsU3);93^i-lXsk&&GJSdU5diS%`Acm5JrZixu2F5wc5!Im zAppSoYWes6OXC14qtcwl=J6N1KeuO;ZH;4h=v7XWG)SYHy}&Gry5H?-tIKO$ZPlJp z-?q7P&+!5P#?DP`e9{2`>^j)#+U~{G#{ht1XAS_U%>J7GTmZnI?{91W$7EZzXEc^~ zuRa6lHMhPxwDE7b-OAUMfsT`|QMRqubLCaM`&4O=W`8cs|C1B7XO#CczFc^E0|4-3 z`gYgnC$F~w05303v;g4p;`^?V=;7p1uNl2OAA3eQ0`P88&Tce%`@?o$gVL;o$7BDS z&g?0)tx5*%FSX;_HOjWZnYPweIr8|TZC}mouXPy|{i8+(3>GR&mHG*mR60vJEG;fl;nJp{MmBIPi-|_7Q>>BlL zoAPRxIn(c@B>-FVD8JcLI$3Be@@khOlQbPm`bK~KD08JTlx>hX6Jg%O9E#h=V%KPB z4gd9AyYJ^rOMWiEt2X62z8RxxpXQp;Yl$2y%D%~+%$KwozZs+IRqtx6S|X?AOs)*n zbv*k*!8YSWN(XgaWlD<)r zYxtRrG4fU4G=}(+&qP?GU-^2v@Y&9V+4W4(V?ALiqM34i zPm&qy)zvqlE5&4D$G@55Yxvgm?HVPlvGb`!&8*BoC0g4It?8RFnpfX6OApA5Hw}@wlH6aS z()); + } + } +}