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 0000000000..0549aae29d Binary files /dev/null and b/Items/Fishing/SunkenSeaCatches/RustedJingleBell.png differ 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 0000000000..20b8ceea28 Binary files /dev/null and b/Items/Fishing/SunkenSeaCatches/SparklingEmpress.png differ diff --git a/Items/Fishing/SunkenSeaCatches/SunkenCrate.cs b/Items/Fishing/SunkenSeaCatches/SunkenCrate.cs new file mode 100644 index 0000000000..1fa9781e91 --- /dev/null +++ b/Items/Fishing/SunkenSeaCatches/SunkenCrate.cs @@ -0,0 +1,97 @@ +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables; +using CalamityMod.Items.Placeables.Ores; +using CalamityMod.Items.Potions; +using CalamityMod.Items.Weapons.Magic; +using CalamityMod.Items.Weapons.Melee; +using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Weapons.Summon; +using CalamityMod.Tiles.SunkenSea; +using CalamityMod.World; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Fishing.SunkenSeaCatches +{ + public class SunkenCrate : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Sunken Crate"); + Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); + } + + public override void SetDefaults() + { + item.maxStack = 999; + item.consumable = true; + item.width = 32; + item.height = 32; + item.rare = 2; + item.value = Item.sellPrice(gold: 1); + item.createTile = ModContent.TileType(); + 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 0000000000..38199d7378 Binary files /dev/null and b/Projectiles/Pets/BabyGhostBell.png differ diff --git a/Tiles/SunkenSea/SunkenCrateTile.cs b/Tiles/SunkenSea/SunkenCrateTile.cs new file mode 100644 index 0000000000..598ad12280 --- /dev/null +++ b/Tiles/SunkenSea/SunkenCrateTile.cs @@ -0,0 +1,40 @@ +using CalamityMod.Dusts; +using CalamityMod.Items.Fishing.SunkenSeaCatches; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; + +namespace CalamityMod.Tiles.SunkenSea +{ + public class SunkenCrateTile : ModTile + { + public override void SetDefaults() + { + Main.tileSolidTop[Type] = true; + Main.tileLighted[Type] = true; + Main.tileFrameImportant[Type] = true; + Main.tileNoAttach[Type] = true; + Main.tileTable[Type] = true; + Main.tileLavaDeath[Type] = true; + Main.tileWaterDeath[Type] = false; + + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.addTile(Type); + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Sunken Crate"); + AddMapEntry(new Color(106, 218, 230), name); + dustType = 253; + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); + } + } +}