diff --git a/Buffs/StatBuffs/ElysianGuard.cs b/Buffs/StatBuffs/ElysianGuard.cs new file mode 100644 index 0000000000..04334f8bfb --- /dev/null +++ b/Buffs/StatBuffs/ElysianGuard.cs @@ -0,0 +1,20 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Buffs.StatBuffs +{ + public class ElysianGuard : ModBuff + { + public override void SetDefaults() + { + DisplayName.SetDefault("Elysian Guard"); + Description.SetDefault("Movement speed reduced, other stats buffed"); + Main.debuff[Type] = false; + Main.pvpBuff[Type] = true; + Main.buffNoSave[Type] = true; + Main.buffNoTimeDisplay[Type] = true; + longerExpertDebuff = false; + canBeCleared = false; + } + } +} diff --git a/Buffs/StatBuffs/ElysianGuard2.png b/Buffs/StatBuffs/ElysianGuard2.png deleted file mode 100644 index 79d964f9f8..0000000000 Binary files a/Buffs/StatBuffs/ElysianGuard2.png and /dev/null differ diff --git a/Buffs/Summon/AerospecSummonSetBuff.png b/Buffs/Summon/AerospecSummonSetBuff.png index 39423ecdd7..8721d5e8d7 100644 Binary files a/Buffs/Summon/AerospecSummonSetBuff.png and b/Buffs/Summon/AerospecSummonSetBuff.png differ diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 801fb5c0b2..b0a06a2b4c 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; @@ -3890,7 +3891,11 @@ namespace CalamityMod.CalPlayer bool flag14 = false; if (elysianGuard) { - float num29 = shieldInvinc; + if (player.whoAmI == Main.myPlayer) + { + player.AddBuff(ModContent.BuffType(), 2, false); + } + float num29 = shieldInvinc; shieldInvinc -= 0.08f; if (shieldInvinc < 0f) { @@ -7380,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); @@ -7396,6 +7417,10 @@ namespace CalamityMod.CalPlayer { rareItemList.Add(ItemID.CrystalSerpent); } + if (player.ZoneDirtLayerHeight) + { + rareItemList.Add(ModContent.ItemType()); + } if (rareItemList.Any()) { @@ -7416,6 +7441,10 @@ namespace CalamityMod.CalPlayer { biomeCrateList.Add(ModContent.ItemType()); } + if (ZoneSunkenSea) + { + biomeCrateList.Add(ModContent.ItemType()); + } if (player.ZoneCorrupt) { biomeCrateList.Add(ItemID.CorruptFishingCrate); @@ -7440,6 +7469,7 @@ namespace CalamityMod.CalPlayer { biomeCrateList.Add(ItemID.FloatingIslandFishingCrate); } + if (biomeCrateList.Any()) { @@ -7524,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)) @@ -7555,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) { @@ -7635,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/Accessories/HarpyRing.png b/Items/Accessories/HarpyRing.png index b81411ba3a..210a745724 100644 Binary files a/Items/Accessories/HarpyRing.png and b/Items/Accessories/HarpyRing.png differ diff --git a/Items/Accessories/Wings/CelestialTracers.cs b/Items/Accessories/Wings/CelestialTracers.cs index fcd43c945f..08cc95743e 100644 --- a/Items/Accessories/Wings/CelestialTracers.cs +++ b/Items/Accessories/Wings/CelestialTracers.cs @@ -89,9 +89,8 @@ namespace CalamityMod.Items.Accessories.Wings ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 25); - recipe.AddTile(ModContent.TileType()); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.AddTile(ModContent.TileType()); recipe.SetResult(this); recipe.AddRecipe(); } diff --git a/Items/Accessories/Wings/SkylineWings.png b/Items/Accessories/Wings/SkylineWings.png index e9afcbf6ef..5ab1b24807 100644 Binary files a/Items/Accessories/Wings/SkylineWings.png and b/Items/Accessories/Wings/SkylineWings.png differ diff --git a/Items/Accessories/Wings/SkylineWings_Wings.png b/Items/Accessories/Wings/SkylineWings_Wings.png index 2c0d4b4561..cf136ad3b2 100644 Binary files a/Items/Accessories/Wings/SkylineWings_Wings.png and b/Items/Accessories/Wings/SkylineWings_Wings.png differ diff --git a/Items/Armor/AerospecBreastplate.png b/Items/Armor/AerospecBreastplate.png index 633df0b377..4c63234392 100644 Binary files a/Items/Armor/AerospecBreastplate.png and b/Items/Armor/AerospecBreastplate.png differ diff --git a/Items/Armor/AerospecBreastplate_Arms.png b/Items/Armor/AerospecBreastplate_Arms.png index 58fb868eab..5b0bc165c9 100644 Binary files a/Items/Armor/AerospecBreastplate_Arms.png and b/Items/Armor/AerospecBreastplate_Arms.png differ diff --git a/Items/Armor/AerospecBreastplate_Body.png b/Items/Armor/AerospecBreastplate_Body.png index 0f1eb71595..de8ae5a9fe 100644 Binary files a/Items/Armor/AerospecBreastplate_Body.png and b/Items/Armor/AerospecBreastplate_Body.png differ diff --git a/Items/Armor/AerospecBreastplate_FemaleBody.png b/Items/Armor/AerospecBreastplate_FemaleBody.png index 490f54dfd8..de8ae5a9fe 100644 Binary files a/Items/Armor/AerospecBreastplate_FemaleBody.png and b/Items/Armor/AerospecBreastplate_FemaleBody.png differ diff --git a/Items/Armor/AerospecHat.png b/Items/Armor/AerospecHat.png index 857a092fde..1d3de087ea 100644 Binary files a/Items/Armor/AerospecHat.png and b/Items/Armor/AerospecHat.png differ diff --git a/Items/Armor/AerospecHat_Head.png b/Items/Armor/AerospecHat_Head.png index ce553aa7a2..bd39f02675 100644 Binary files a/Items/Armor/AerospecHat_Head.png and b/Items/Armor/AerospecHat_Head.png differ diff --git a/Items/Armor/AerospecHeadgear.png b/Items/Armor/AerospecHeadgear.png index f15585afa8..010f1d8f1f 100644 Binary files a/Items/Armor/AerospecHeadgear.png and b/Items/Armor/AerospecHeadgear.png differ diff --git a/Items/Armor/AerospecHeadgear_Head.png b/Items/Armor/AerospecHeadgear_Head.png index 2cca11d903..8f2eacae66 100644 Binary files a/Items/Armor/AerospecHeadgear_Head.png and b/Items/Armor/AerospecHeadgear_Head.png differ diff --git a/Items/Armor/AerospecHelm.png b/Items/Armor/AerospecHelm.png index bcb0738d7c..a2367b2de5 100644 Binary files a/Items/Armor/AerospecHelm.png and b/Items/Armor/AerospecHelm.png differ diff --git a/Items/Armor/AerospecHelm_Head.png b/Items/Armor/AerospecHelm_Head.png index e1bb65fb33..0bad122109 100644 Binary files a/Items/Armor/AerospecHelm_Head.png and b/Items/Armor/AerospecHelm_Head.png differ diff --git a/Items/Armor/AerospecHelmet.png b/Items/Armor/AerospecHelmet.png index e01b6b1d75..f4fa462d57 100644 Binary files a/Items/Armor/AerospecHelmet.png and b/Items/Armor/AerospecHelmet.png differ diff --git a/Items/Armor/AerospecHelmet_Head.png b/Items/Armor/AerospecHelmet_Head.png index b563e43d9d..7b96a9b879 100644 Binary files a/Items/Armor/AerospecHelmet_Head.png and b/Items/Armor/AerospecHelmet_Head.png differ diff --git a/Items/Armor/AerospecHood.png b/Items/Armor/AerospecHood.png index d2635accf9..5b42224abc 100644 Binary files a/Items/Armor/AerospecHood.png and b/Items/Armor/AerospecHood.png differ diff --git a/Items/Armor/AerospecHood_Head.png b/Items/Armor/AerospecHood_Head.png index 2043801414..0d496a7be3 100644 Binary files a/Items/Armor/AerospecHood_Head.png and b/Items/Armor/AerospecHood_Head.png differ diff --git a/Items/Armor/AerospecLeggings.png b/Items/Armor/AerospecLeggings.png index 66026642d5..1f1b3b5c5a 100644 Binary files a/Items/Armor/AerospecLeggings.png and b/Items/Armor/AerospecLeggings.png differ diff --git a/Items/Armor/AerospecLeggings_Legs.png b/Items/Armor/AerospecLeggings_Legs.png index 8122cffc13..9c4d7c9c14 100644 Binary files a/Items/Armor/AerospecLeggings_Legs.png and b/Items/Armor/AerospecLeggings_Legs.png differ diff --git a/Items/Armor/AuricTeslaBodyArmor.cs b/Items/Armor/AuricTeslaBodyArmor.cs index cc7728402b..19afcd5528 100644 --- a/Items/Armor/AuricTeslaBodyArmor.cs +++ b/Items/Armor/AuricTeslaBodyArmor.cs @@ -48,16 +48,8 @@ namespace CalamityMod.Items.Armor recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); - recipe.AddIngredient(ModContent.ItemType(), 100); - recipe.AddIngredient(ModContent.ItemType(), 30); - recipe.AddIngredient(ModContent.ItemType(), 30); - recipe.AddIngredient(ModContent.ItemType(), 20); - recipe.AddIngredient(ModContent.ItemType(), 15); - recipe.AddIngredient(ModContent.ItemType(), 10); - recipe.AddIngredient(ModContent.ItemType(), 7); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 3); - recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType(), 18); + recipe.AddIngredient(ModContent.ItemType()); recipe.AddTile(ModContent.TileType()); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Armor/AuricTeslaCuisses.cs b/Items/Armor/AuricTeslaCuisses.cs index 10d67d735f..7d96ee4414 100644 --- a/Items/Armor/AuricTeslaCuisses.cs +++ b/Items/Armor/AuricTeslaCuisses.cs @@ -42,16 +42,8 @@ namespace CalamityMod.Items.Armor recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); - recipe.AddIngredient(ModContent.ItemType(), 80); - recipe.AddIngredient(ModContent.ItemType(), 20); - recipe.AddIngredient(ModContent.ItemType(), 20); - recipe.AddIngredient(ModContent.ItemType(), 15); - recipe.AddIngredient(ModContent.ItemType(), 10); - recipe.AddIngredient(ModContent.ItemType(), 8); - recipe.AddIngredient(ModContent.ItemType(), 6); - recipe.AddIngredient(ModContent.ItemType(), 3); - recipe.AddIngredient(ModContent.ItemType(), 2); - recipe.AddIngredient(ItemID.FlyingCarpet); + recipe.AddIngredient(ModContent.ItemType(), 14); + recipe.AddIngredient(ItemID.FlyingCarpet); recipe.AddTile(ModContent.TileType()); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Armor/AuricTeslaHelm.cs b/Items/Armor/AuricTeslaHelm.cs index ab2f463d01..7c812a46bb 100644 --- a/Items/Armor/AuricTeslaHelm.cs +++ b/Items/Armor/AuricTeslaHelm.cs @@ -80,16 +80,8 @@ namespace CalamityMod.Items.Armor recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); - recipe.AddIngredient(ModContent.ItemType(), 60); - recipe.AddIngredient(ModContent.ItemType(), 10); - recipe.AddIngredient(ModContent.ItemType(), 10); - recipe.AddIngredient(ModContent.ItemType(), 8); - recipe.AddIngredient(ModContent.ItemType(), 6); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 2); - recipe.AddIngredient(ModContent.ItemType()); - recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType(), 10); + recipe.AddIngredient(ModContent.ItemType()); recipe.AddTile(ModContent.TileType()); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Armor/AuricTeslaHoodedFacemask.cs b/Items/Armor/AuricTeslaHoodedFacemask.cs index 1e47d991c0..3281d6edbb 100644 --- a/Items/Armor/AuricTeslaHoodedFacemask.cs +++ b/Items/Armor/AuricTeslaHoodedFacemask.cs @@ -78,15 +78,7 @@ namespace CalamityMod.Items.Armor recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); - recipe.AddIngredient(ModContent.ItemType(), 60); - recipe.AddIngredient(ModContent.ItemType(), 10); - recipe.AddIngredient(ModContent.ItemType(), 10); - recipe.AddIngredient(ModContent.ItemType(), 8); - recipe.AddIngredient(ModContent.ItemType(), 6); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 2); - recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType(), 10); recipe.AddIngredient(ModContent.ItemType()); recipe.AddTile(ModContent.TileType()); recipe.SetResult(this); diff --git a/Items/Armor/AuricTeslaPlumedHelm.cs b/Items/Armor/AuricTeslaPlumedHelm.cs index 4be839f37c..924a2b6bef 100644 --- a/Items/Armor/AuricTeslaPlumedHelm.cs +++ b/Items/Armor/AuricTeslaPlumedHelm.cs @@ -85,16 +85,8 @@ namespace CalamityMod.Items.Armor recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); - recipe.AddIngredient(ModContent.ItemType(), 60); - recipe.AddIngredient(ModContent.ItemType(), 10); - recipe.AddIngredient(ModContent.ItemType(), 10); - recipe.AddIngredient(ModContent.ItemType(), 8); - recipe.AddIngredient(ModContent.ItemType(), 6); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 2); - recipe.AddIngredient(ModContent.ItemType()); - recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType(), 10); + recipe.AddIngredient(ModContent.ItemType()); recipe.AddTile(ModContent.TileType()); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Armor/AuricTeslaSpaceHelmet.cs b/Items/Armor/AuricTeslaSpaceHelmet.cs index dfdd933668..bbeb2fcd0f 100644 --- a/Items/Armor/AuricTeslaSpaceHelmet.cs +++ b/Items/Armor/AuricTeslaSpaceHelmet.cs @@ -215,16 +215,8 @@ namespace CalamityMod.Items.Armor recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); - recipe.AddIngredient(ModContent.ItemType(), 60); - recipe.AddIngredient(ModContent.ItemType(), 10); - recipe.AddIngredient(ModContent.ItemType(), 10); - recipe.AddIngredient(ModContent.ItemType(), 8); - recipe.AddIngredient(ModContent.ItemType(), 6); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 2); - recipe.AddIngredient(ModContent.ItemType()); - recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType(), 10); + recipe.AddIngredient(ModContent.ItemType()); recipe.AddTile(ModContent.TileType()); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Armor/AuricTeslaWireHemmedVisage.cs b/Items/Armor/AuricTeslaWireHemmedVisage.cs index bf319cb612..46499fdd37 100644 --- a/Items/Armor/AuricTeslaWireHemmedVisage.cs +++ b/Items/Armor/AuricTeslaWireHemmedVisage.cs @@ -80,16 +80,8 @@ namespace CalamityMod.Items.Armor recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); - recipe.AddIngredient(ModContent.ItemType(), 60); - recipe.AddIngredient(ModContent.ItemType(), 10); - recipe.AddIngredient(ModContent.ItemType(), 10); - recipe.AddIngredient(ModContent.ItemType(), 8); - recipe.AddIngredient(ModContent.ItemType(), 6); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 2); - recipe.AddIngredient(ModContent.ItemType()); - recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType(), 10); + recipe.AddIngredient(ModContent.ItemType()); recipe.AddTile(ModContent.TileType()); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Fishing/GlimmeringGemfish.cs b/Items/Fishing/GlimmeringGemfish.cs new file mode 100644 index 0000000000..3bde547bbf --- /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..c7243ea999 --- /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 = 10; + item.useAnimation = 20; + 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..300fe24a7e --- /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/SerpentsBite.cs b/Items/Fishing/SunkenSeaCatches/SerpentsBite.cs new file mode 100644 index 0000000000..c125400388 --- /dev/null +++ b/Items/Fishing/SunkenSeaCatches/SerpentsBite.cs @@ -0,0 +1,30 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using static Terraria.ModLoader.ModContent; +using CalamityMod.Projectiles.Typeless; + +namespace CalamityMod.Items.Fishing.SunkenSeaCatches +{ + public class SerpentsBite : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Serpent's Bite"); + } + + public override void SetDefaults() + { + // Instead of copying these values, we can clone and modify the ones we want to copy + item.CloneDefaults(ItemID.AmethystHook); + item.shootSpeed = 18f; // how quickly the hook is shot. + item.shoot = ProjectileType(); + item.value = Item.buyPrice(0, 36, 0, 0); + item.rare = 5; + item.width = 30; + item.height = 32; + } + } +} 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/Items/Materials/AerialiteBar.png b/Items/Materials/AerialiteBar.png index 0fc1daff42..43b3240acd 100644 Binary files a/Items/Materials/AerialiteBar.png and b/Items/Materials/AerialiteBar.png differ diff --git a/Items/Materials/AuricBar.cs b/Items/Materials/AuricBar.cs new file mode 100644 index 0000000000..2245ec5433 --- /dev/null +++ b/Items/Materials/AuricBar.cs @@ -0,0 +1,52 @@ +using CalamityMod.Items.Placeables.Ores; +using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria; +using Terraria.DataStructures; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Materials +{ + public class AuricBar : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Auric Tesla Bar"); + Tooltip.SetDefault("It radiates godly energy"); + Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 15)); + } + + public override void SetDefaults() + { + item.width = 50; + item.height = 30; + item.maxStack = 999; + item.value = Item.sellPrice(gold: 24); + item.Calamity().postMoonLordRarity = 15; + } + + public override void Update(ref float gravity, ref float maxFallSpeed) + { + maxFallSpeed = 0f; + float num = (float)Main.rand.Next(90, 111) * 0.01f; + num *= Main.essScale; + Lighting.AddLight((int)((item.position.X + (float)(item.width / 2)) / 16f), (int)((item.position.Y + (float)(item.height / 2)) / 16f), 0.5f * num, 0.7f * num, 0f); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType(), 20); + recipe.AddIngredient(ModContent.ItemType(), 2); + recipe.AddIngredient(ModContent.ItemType(), 2); + recipe.AddIngredient(ModContent.ItemType(), 2); + recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType()); + recipe.AddTile(ModContent.TileType()); + recipe.SetResult(this, 2); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Materials/AuricBar.png b/Items/Materials/AuricBar.png new file mode 100644 index 0000000000..c9ea82cd75 Binary files /dev/null and b/Items/Materials/AuricBar.png differ diff --git a/Items/Materials/AuricBarGlow.png b/Items/Materials/AuricBarGlow.png new file mode 100644 index 0000000000..895b46dc3b Binary files /dev/null and b/Items/Materials/AuricBarGlow.png differ diff --git a/Items/Materials/ShadowspecBar.cs b/Items/Materials/ShadowspecBar.cs index 48c8db7321..2f8fbeaef0 100644 --- a/Items/Materials/ShadowspecBar.cs +++ b/Items/Materials/ShadowspecBar.cs @@ -26,13 +26,8 @@ namespace CalamityMod.Items.Materials public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ModContent.ItemType(), 3); - recipe.AddIngredient(ModContent.ItemType(), 3); - recipe.AddIngredient(ModContent.ItemType(), 3); - recipe.AddIngredient(ModContent.ItemType(), 3); + recipe.AddIngredient(ModContent.ItemType(), 3); recipe.AddIngredient(ModContent.ItemType()); - recipe.AddIngredient(ModContent.ItemType()); - recipe.AddIngredient(ModContent.ItemType()); recipe.AddTile(ModContent.TileType()); recipe.SetResult(this, 3); recipe.AddRecipe(); diff --git a/Items/Placeables/Ores/AerialiteOre.png b/Items/Placeables/Ores/AerialiteOre.png index e1634ed3e3..427137cf84 100644 Binary files a/Items/Placeables/Ores/AerialiteOre.png and b/Items/Placeables/Ores/AerialiteOre.png differ diff --git a/Items/Placeables/Ores/UelibloomOre.png b/Items/Placeables/Ores/UelibloomOre.png index abd4c411db..56293cede8 100644 Binary files a/Items/Placeables/Ores/UelibloomOre.png and b/Items/Placeables/Ores/UelibloomOre.png differ diff --git a/Items/Potions/GravityNormalizerPotion.cs b/Items/Potions/GravityNormalizerPotion.cs index 92028b55cf..93f4fed544 100644 --- a/Items/Potions/GravityNormalizerPotion.cs +++ b/Items/Potions/GravityNormalizerPotion.cs @@ -1,5 +1,6 @@ using CalamityMod.Buffs.Potions; using CalamityMod.Items.Materials; +using CalamityMod.Items.Fishing.AstralCatches; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -36,6 +37,7 @@ namespace CalamityMod.Items.Potions ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ItemID.GravitationPotion); recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType()); recipe.AddTile(TileID.AlchemyTable); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Potions/SoaringPotion.cs b/Items/Potions/SoaringPotion.cs index 95f6da9503..36810c05b2 100644 --- a/Items/Potions/SoaringPotion.cs +++ b/Items/Potions/SoaringPotion.cs @@ -1,4 +1,5 @@ using CalamityMod.Buffs.Potions; +using CalamityMod.Items.Fishing.SunkenSeaCatches; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; @@ -39,7 +40,7 @@ namespace CalamityMod.Items.Potions recipe.AddIngredient(ItemID.BottledWater); recipe.AddIngredient(ItemID.Feather); recipe.AddIngredient(ItemID.SoulofFlight); - recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType()); recipe.AddTile(TileID.AlchemyTable); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Potions/TitanScalePotion.cs b/Items/Potions/TitanScalePotion.cs index 7c62624f31..5bbbf5cd13 100644 --- a/Items/Potions/TitanScalePotion.cs +++ b/Items/Potions/TitanScalePotion.cs @@ -1,5 +1,6 @@ using CalamityMod.Buffs.Potions; using CalamityMod.Items.Materials; +using CalamityMod.Items.Fishing.SunkenSeaCatches; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -35,17 +36,18 @@ namespace CalamityMod.Items.Potions public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ItemID.TitanPotion); + recipe.AddIngredient(ItemID.TitanPotion, 4); recipe.AddIngredient(ItemID.BeetleHusk); + recipe.AddIngredient(ModContent.ItemType()); recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(this); + recipe.SetResult(this, 4); recipe.AddRecipe(); recipe = new ModRecipe(mod); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddIngredient(ModContent.ItemType(), 10); + recipe.AddIngredient(ItemID.BottledWater, 4); + recipe.AddIngredient(ModContent.ItemType(), 40); recipe.AddIngredient(ItemID.BeetleHusk); recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(this); + recipe.SetResult(this, 4); recipe.AddRecipe(); } } diff --git a/Items/SummonItems/EyeofExtinction.cs b/Items/SummonItems/EyeofExtinction.cs index 30955e6e30..c0e11c4d67 100644 --- a/Items/SummonItems/EyeofExtinction.cs +++ b/Items/SummonItems/EyeofExtinction.cs @@ -71,13 +71,7 @@ namespace CalamityMod.Items.SummonItems public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ModContent.ItemType(), 50); - recipe.AddIngredient(ModContent.ItemType(), 30); - recipe.AddIngredient(ModContent.ItemType(), 30); - recipe.AddIngredient(ModContent.ItemType(), 25); - recipe.AddIngredient(ModContent.ItemType(), 15); - recipe.AddIngredient(ModContent.ItemType(), 15); - recipe.AddIngredient(ModContent.ItemType(), 5); + recipe.AddIngredient(ModContent.ItemType(), 5); recipe.AddIngredient(ModContent.ItemType()); recipe.AddTile(ModContent.TileType()); recipe.SetResult(this); diff --git a/Items/Tools/AerialHamaxe.cs b/Items/Tools/AerialHamaxe.cs index fac1e19b6d..0e3a24a63c 100644 --- a/Items/Tools/AerialHamaxe.cs +++ b/Items/Tools/AerialHamaxe.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Tools item.damage = 20; item.melee = true; item.width = 44; - item.height = 46; + item.height = 44; item.useTime = 26; item.useAnimation = 26; item.useTurn = true; diff --git a/Items/Tools/AerialHamaxe.png b/Items/Tools/AerialHamaxe.png index a191bfdd05..a56771fe88 100644 Binary files a/Items/Tools/AerialHamaxe.png and b/Items/Tools/AerialHamaxe.png differ diff --git a/Items/Tools/SkyfringePickaxe.png b/Items/Tools/SkyfringePickaxe.png index 08ba469fff..54c4f881dd 100644 Binary files a/Items/Tools/SkyfringePickaxe.png and b/Items/Tools/SkyfringePickaxe.png differ diff --git a/Items/Weapons/Magic/SubsumingVortex.cs b/Items/Weapons/Magic/SubsumingVortex.cs index 44c70660eb..f5039ff717 100644 --- a/Items/Weapons/Magic/SubsumingVortex.cs +++ b/Items/Weapons/Magic/SubsumingVortex.cs @@ -65,14 +65,8 @@ namespace CalamityMod.Items.Weapons.Magic recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 3); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 25); - recipe.AddTile(ModContent.TileType()); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.AddTile(ModContent.TileType()); recipe.SetResult(this); recipe.AddRecipe(); } diff --git a/Items/Weapons/Magic/Tradewinds.png b/Items/Weapons/Magic/Tradewinds.png index 1d18e2be8d..110dac6501 100644 Binary files a/Items/Weapons/Magic/Tradewinds.png and b/Items/Weapons/Magic/Tradewinds.png differ diff --git a/Items/Weapons/Magic/VividClarity.cs b/Items/Weapons/Magic/VividClarity.cs index b59b8e5d0d..00426be7f6 100644 --- a/Items/Weapons/Magic/VividClarity.cs +++ b/Items/Weapons/Magic/VividClarity.cs @@ -102,14 +102,8 @@ namespace CalamityMod.Items.Weapons.Magic recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 3); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 25); - recipe.AddTile(ModContent.TileType()); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.AddTile(ModContent.TileType()); recipe.SetResult(this); recipe.AddRecipe(); } diff --git a/Items/Weapons/Melee/AirSpinner.png b/Items/Weapons/Melee/AirSpinner.png index 36c705f5ec..4fa3cfdb43 100644 Binary files a/Items/Weapons/Melee/AirSpinner.png and b/Items/Weapons/Melee/AirSpinner.png differ diff --git a/Items/Weapons/Melee/ArkoftheCosmos.cs b/Items/Weapons/Melee/ArkoftheCosmos.cs index b4c157a1f9..0809e34cd8 100644 --- a/Items/Weapons/Melee/ArkoftheCosmos.cs +++ b/Items/Weapons/Melee/ArkoftheCosmos.cs @@ -106,12 +106,8 @@ namespace CalamityMod.Items.Weapons.Melee ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 3); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 25); - recipe.AddTile(ModContent.TileType()); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.AddTile(ModContent.TileType()); recipe.SetResult(this); recipe.AddRecipe(); } diff --git a/Items/Weapons/Melee/DraedonsExoblade.cs b/Items/Weapons/Melee/DraedonsExoblade.cs index 4c87c2c429..d42b9fe669 100644 --- a/Items/Weapons/Melee/DraedonsExoblade.cs +++ b/Items/Weapons/Melee/DraedonsExoblade.cs @@ -128,14 +128,8 @@ namespace CalamityMod.Items.Weapons.Melee recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 3); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 25); - recipe.AddTile(ModContent.TileType()); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.AddTile(ModContent.TileType()); recipe.SetResult(this); recipe.AddRecipe(); } diff --git a/Items/Weapons/Melee/DragonPow.cs b/Items/Weapons/Melee/DragonPow.cs index 23a6477c09..f02a538023 100644 --- a/Items/Weapons/Melee/DragonPow.cs +++ b/Items/Weapons/Melee/DragonPow.cs @@ -61,14 +61,8 @@ namespace CalamityMod.Items.Weapons.Melee r.AddIngredient(ModContent.ItemType()); r.AddIngredient(ModContent.ItemType()); r.AddIngredient(ModContent.ItemType()); - r.AddIngredient(ModContent.ItemType(), 5); - r.AddIngredient(ModContent.ItemType(), 5); - r.AddIngredient(ModContent.ItemType(), 5); - r.AddIngredient(ModContent.ItemType(), 5); - r.AddIngredient(ModContent.ItemType(), 5); - r.AddIngredient(ModContent.ItemType(), 10); - r.AddIngredient(ModContent.ItemType(), 25); - r.AddRecipe(); + r.AddIngredient(ModContent.ItemType(), 8); + r.AddRecipe(); } } } diff --git a/Items/Weapons/Melee/ForsakenSaber.cs b/Items/Weapons/Melee/ForsakenSaber.cs index 1ff45aba67..0a6654f5b0 100644 --- a/Items/Weapons/Melee/ForsakenSaber.cs +++ b/Items/Weapons/Melee/ForsakenSaber.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - item.width = 54; + item.width = 46; item.damage = 65; item.melee = true; item.useAnimation = 18; @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Melee item.knockBack = 6; item.UseSound = SoundID.Item1; item.autoReuse = true; - item.height = 52; + item.height = 56; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Melee/ForsakenSaber.png b/Items/Weapons/Melee/ForsakenSaber.png index a657cd2327..950f44264d 100644 Binary files a/Items/Weapons/Melee/ForsakenSaber.png and b/Items/Weapons/Melee/ForsakenSaber.png differ diff --git a/Items/Weapons/Melee/GoldplumeSpear.png b/Items/Weapons/Melee/GoldplumeSpear.png index eeef29cfa1..c3e0a15891 100644 Binary files a/Items/Weapons/Melee/GoldplumeSpear.png and b/Items/Weapons/Melee/GoldplumeSpear.png differ diff --git a/Items/Weapons/Melee/Oracle.cs b/Items/Weapons/Melee/Oracle.cs index c1c6002eb9..59642dcd84 100644 --- a/Items/Weapons/Melee/Oracle.cs +++ b/Items/Weapons/Melee/Oracle.cs @@ -59,14 +59,8 @@ namespace CalamityMod.Items.Weapons.Melee r.AddIngredient(ModContent.ItemType()); r.AddIngredient(ModContent.ItemType()); r.AddIngredient(ModContent.ItemType()); - r.AddIngredient(ModContent.ItemType(), 5); - r.AddIngredient(ModContent.ItemType(), 5); - r.AddIngredient(ModContent.ItemType(), 5); - r.AddIngredient(ModContent.ItemType(), 5); - r.AddIngredient(ModContent.ItemType(), 5); - r.AddIngredient(ModContent.ItemType(), 3); - r.AddIngredient(ModContent.ItemType(), 25); - r.AddRecipe(); + r.AddIngredient(ModContent.ItemType(), 4); + r.AddRecipe(); } } } diff --git a/Items/Weapons/Melee/WindBlade.png b/Items/Weapons/Melee/WindBlade.png index b1a15e648d..36d003fbdc 100644 Binary files a/Items/Weapons/Melee/WindBlade.png and b/Items/Weapons/Melee/WindBlade.png differ diff --git a/Items/Weapons/Ranged/Drataliornus.cs b/Items/Weapons/Ranged/Drataliornus.cs index 14f0f7f9f6..d664429209 100644 --- a/Items/Weapons/Ranged/Drataliornus.cs +++ b/Items/Weapons/Ranged/Drataliornus.cs @@ -112,11 +112,8 @@ Right click to fire two devastating barrages of five empowered fireballs. recipe.AddIngredient(ModContent.ItemType(), 2); recipe.AddIngredient(ModContent.ItemType(), 2); recipe.AddIngredient(ModContent.ItemType(), 3); - recipe.AddIngredient(ModContent.ItemType(), 40); - recipe.AddIngredient(ModContent.ItemType(), 60); - recipe.AddIngredient(ModContent.ItemType(), 30); - recipe.AddIngredient(ModContent.ItemType(), 30); - recipe.AddIngredient(ModContent.ItemType(), 30); + recipe.AddIngredient(ModContent.ItemType(), 12); + recipe.AddIngredient(ModContent.ItemType(), 60); recipe.AddTile(ModContent.TileType()); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Weapons/Ranged/Galeforce.png b/Items/Weapons/Ranged/Galeforce.png index 0e46f86739..9bf40b407a 100644 Binary files a/Items/Weapons/Ranged/Galeforce.png and b/Items/Weapons/Ranged/Galeforce.png differ diff --git a/Items/Weapons/Ranged/HeavenlyGale.cs b/Items/Weapons/Ranged/HeavenlyGale.cs index bc0e036475..6a5d21a6e7 100644 --- a/Items/Weapons/Ranged/HeavenlyGale.cs +++ b/Items/Weapons/Ranged/HeavenlyGale.cs @@ -95,14 +95,8 @@ namespace CalamityMod.Items.Weapons.Ranged recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 3); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 25); - recipe.AddTile(ModContent.TileType()); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.AddTile(ModContent.TileType()); recipe.SetResult(this); recipe.AddRecipe(); } diff --git a/Items/Weapons/Ranged/Photoviscerator.cs b/Items/Weapons/Ranged/Photoviscerator.cs index 1ddf3a5c08..3b26f500c5 100644 --- a/Items/Weapons/Ranged/Photoviscerator.cs +++ b/Items/Weapons/Ranged/Photoviscerator.cs @@ -68,14 +68,8 @@ namespace CalamityMod.Items.Weapons.Ranged recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 3); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 25); - recipe.AddTile(ModContent.TileType()); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.AddTile(ModContent.TileType()); recipe.SetResult(this); recipe.AddRecipe(); } diff --git a/Items/Weapons/Ranged/TheBallista.png b/Items/Weapons/Ranged/TheBallista.png index 36692496e0..5ab9abf9ef 100644 Binary files a/Items/Weapons/Ranged/TheBallista.png and b/Items/Weapons/Ranged/TheBallista.png differ diff --git a/Items/Weapons/Rogue/Celestus.cs b/Items/Weapons/Rogue/Celestus.cs index d049921f3f..36470ea2e8 100644 --- a/Items/Weapons/Rogue/Celestus.cs +++ b/Items/Weapons/Rogue/Celestus.cs @@ -45,14 +45,8 @@ namespace CalamityMod.Items.Weapons.Rogue recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 3); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 25); - recipe.AddTile(ModContent.TileType()); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.AddTile(ModContent.TileType()); recipe.SetResult(this); recipe.AddRecipe(); } diff --git a/Items/Weapons/Rogue/FeatherKnife.png b/Items/Weapons/Rogue/FeatherKnife.png index eb0f069f02..0c0b80d6c9 100644 Binary files a/Items/Weapons/Rogue/FeatherKnife.png and b/Items/Weapons/Rogue/FeatherKnife.png differ diff --git a/Items/Weapons/Rogue/SpearofPaleolith.png b/Items/Weapons/Rogue/SpearofPaleolith.png index ead032cb98..a5d6a7b8cd 100644 Binary files a/Items/Weapons/Rogue/SpearofPaleolith.png and b/Items/Weapons/Rogue/SpearofPaleolith.png differ diff --git a/Items/Weapons/Summon/CosmicImmaterializer.cs b/Items/Weapons/Summon/CosmicImmaterializer.cs index 4de2ec347b..50f2e4d644 100644 --- a/Items/Weapons/Summon/CosmicImmaterializer.cs +++ b/Items/Weapons/Summon/CosmicImmaterializer.cs @@ -94,14 +94,8 @@ namespace CalamityMod.Items.Weapons.Summon recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 3); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 25); - recipe.AddTile(ModContent.TileType()); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.AddTile(ModContent.TileType()); recipe.SetResult(this); recipe.AddRecipe(); } 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/NPCs/NormalNPCs/AeroSlime.png b/NPCs/NormalNPCs/AeroSlime.png index 62589b496d..772db462c1 100644 Binary files a/NPCs/NormalNPCs/AeroSlime.png and b/NPCs/NormalNPCs/AeroSlime.png differ diff --git a/Projectiles/Magic/StickyFeather.png b/Projectiles/Magic/StickyFeather.png index 58b2a6a94a..45b6489022 100644 Binary files a/Projectiles/Magic/StickyFeather.png and b/Projectiles/Magic/StickyFeather.png differ diff --git a/Projectiles/Magic/TradewindsProjectile.png b/Projectiles/Magic/TradewindsProjectile.png index 59034069fc..9dab70ed9c 100644 Binary files a/Projectiles/Magic/TradewindsProjectile.png and b/Projectiles/Magic/TradewindsProjectile.png differ diff --git a/Projectiles/Melee/SandBlade.png b/Projectiles/Melee/SandBlade.png index 33659392e1..fccc308168 100644 Binary files a/Projectiles/Melee/SandBlade.png and b/Projectiles/Melee/SandBlade.png differ diff --git a/Projectiles/Melee/Spears/GoldplumeSpearProjectile.png b/Projectiles/Melee/Spears/GoldplumeSpearProjectile.png index 3f4b6d5601..1240e307bf 100644 Binary files a/Projectiles/Melee/Spears/GoldplumeSpearProjectile.png and b/Projectiles/Melee/Spears/GoldplumeSpearProjectile.png differ diff --git a/Projectiles/Melee/Yoyos/AirSpinnerProjectile.png b/Projectiles/Melee/Yoyos/AirSpinnerProjectile.png index 136e511bd3..7bb3d3fb51 100644 Binary files a/Projectiles/Melee/Yoyos/AirSpinnerProjectile.png and b/Projectiles/Melee/Yoyos/AirSpinnerProjectile.png differ 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/Projectiles/Ranged/BallistaGreatArrow.png b/Projectiles/Ranged/BallistaGreatArrow.png index afeea0b8fc..2883016d90 100644 Binary files a/Projectiles/Ranged/BallistaGreatArrow.png and b/Projectiles/Ranged/BallistaGreatArrow.png differ diff --git a/Projectiles/Rogue/FeatherKnifeProjectile.png b/Projectiles/Rogue/FeatherKnifeProjectile.png index 6f3569825a..0c0b80d6c9 100644 Binary files a/Projectiles/Rogue/FeatherKnifeProjectile.png and b/Projectiles/Rogue/FeatherKnifeProjectile.png differ diff --git a/Projectiles/Rogue/SpearofPaleolithProj.png b/Projectiles/Rogue/SpearofPaleolithProj.png index 44a2ad2834..2850b0d4d7 100644 Binary files a/Projectiles/Rogue/SpearofPaleolithProj.png and b/Projectiles/Rogue/SpearofPaleolithProj.png differ diff --git a/Projectiles/Summon/Valkyrie.cs b/Projectiles/Summon/Valkyrie.cs index bcf3c3abe7..12583f20f7 100644 --- a/Projectiles/Summon/Valkyrie.cs +++ b/Projectiles/Summon/Valkyrie.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Projectiles.Summon public override void SetStaticDefaults() { DisplayName.SetDefault("Valkyrie"); - Main.projFrames[projectile.type] = 2; + Main.projFrames[projectile.type] = 4; ProjectileID.Sets.MinionSacrificable[projectile.type] = true; ProjectileID.Sets.MinionTargettingFeature[projectile.type] = true; } @@ -246,12 +246,12 @@ namespace CalamityMod.Projectiles.Summon } } projectile.frameCounter++; - if (projectile.frameCounter > 14) + if (projectile.frameCounter > 7) { projectile.frame++; projectile.frameCounter = 0; } - if (projectile.frame > 1) + if (projectile.frame > 3) { projectile.frame = 0; } diff --git a/Projectiles/Summon/Valkyrie.png b/Projectiles/Summon/Valkyrie.png index 095fb07c95..4010acbc07 100644 Binary files a/Projectiles/Summon/Valkyrie.png and b/Projectiles/Summon/Valkyrie.png differ diff --git a/Projectiles/Typeless/SerpentsBiteHook.cs b/Projectiles/Typeless/SerpentsBiteHook.cs new file mode 100644 index 0000000000..d9ee46cbbc --- /dev/null +++ b/Projectiles/Typeless/SerpentsBiteHook.cs @@ -0,0 +1,86 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using static Terraria.ModLoader.ModContent; + +namespace CalamityMod.Projectiles.Typeless +{ + public class SerpentsBiteHook : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Serpent's Bite"); + } + + public override void SetDefaults() + { + projectile.CloneDefaults(ProjectileID.GemHookAmethyst); + } + + // Use this hook for hooks that can have multiple hooks mid-flight: Dual Hook, Web Slinger, Fish Hook, Static Hook, Lunar Hook + public override bool? CanUseGrapple(Player player) + { + int hooksOut = 0; + for (int l = 0; l < 1000; l++) + { + if (Main.projectile[l].active && Main.projectile[l].owner == Main.myPlayer && Main.projectile[l].type == projectile.type) + { + hooksOut++; + } + } + if (hooksOut > 2) // This hook can have 3 hooks out. + { + return false; + } + return true; + } + + // Amethyst Hook is 300, Static Hook is 600 + public override float GrappleRange() + { + return 450f; + } + + public override void NumGrappleHooks(Player player, ref int numHooks) + { + numHooks = 2; + } + + // default is 11, Lunar is 24 + public override void GrappleRetreatSpeed(Player player, ref float speed) + { + speed = 14f; + } + + public override void GrapplePullSpeed(Player player, ref float speed) + { + speed = 12; + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Vector2 playerCenter = Main.player[projectile.owner].MountedCenter; + Vector2 center = projectile.Center; + Vector2 distToProj = playerCenter - projectile.Center; + float projRotation = distToProj.ToRotation() - 1.57f; + float distance = distToProj.Length(); + while (distance > 30f && !float.IsNaN(distance)) + { + distToProj.Normalize(); //get unit vector + distToProj *= 24f; //speed = 24 + center += distToProj; //update draw position + distToProj = playerCenter - center; //update distance + distance = distToProj.Length(); + Color drawColor = lightColor; + + //Draw chain + spriteBatch.Draw(ModContent.GetTexture("CalamityMod/ExtraTextures/Chains/SerpentsBiteChain"), new Vector2(center.X - Main.screenPosition.X, center.Y - Main.screenPosition.Y), + new Rectangle(0, 0, Main.chain30Texture.Width, Main.chain30Texture.Height), drawColor, projRotation, + new Vector2(Main.chain30Texture.Width * 0.5f, Main.chain30Texture.Height * 0.5f), 1f, SpriteEffects.None, 0f); + } + return true; + } + } +} diff --git a/Projectiles/Typeless/StickyFeatherAero.png b/Projectiles/Typeless/StickyFeatherAero.png index 58b2a6a94a..45b6489022 100644 Binary files a/Projectiles/Typeless/StickyFeatherAero.png and b/Projectiles/Typeless/StickyFeatherAero.png differ diff --git a/Tiles/AerialiteBrick.png b/Tiles/AerialiteBrick.png index be4fb7a02e..401509d654 100644 Binary files a/Tiles/AerialiteBrick.png and b/Tiles/AerialiteBrick.png differ diff --git a/Tiles/Ores/UelibloomOre.png b/Tiles/Ores/UelibloomOre.png index f3f3a968cf..193f42016f 100644 Binary files a/Tiles/Ores/UelibloomOre.png and b/Tiles/Ores/UelibloomOre.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()); + } + } +} diff --git a/Utilities/CalamityRecipes.cs b/Utilities/CalamityRecipes.cs index f709f82674..28cb4dc1c5 100644 --- a/Utilities/CalamityRecipes.cs +++ b/Utilities/CalamityRecipes.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Accessories; using CalamityMod.Items.Accessories.Wings; using CalamityMod.Items.Fishing.AstralCatches; +using CalamityMod.Items.Fishing.SunkenSeaCatches; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Items.Weapons.Melee; @@ -25,6 +26,7 @@ namespace CalamityMod EditFireGauntletRecipe(); AddPotionRecipes(); + AddCookedFood(); AddToolRecipes(); AddProgressionRecipes(); AddEarlyGameWeaponRecipes(); @@ -87,20 +89,6 @@ namespace CalamityMod r.SetResult(ItemID.LifeFruit); r.AddRecipe(); - // Cooked Fish - r = GetNewRecipe(); - r.AddIngredient(ModContent.ItemType()); - r.AddTile(TileID.CookingPots); - r.SetResult(2425); - r.AddRecipe(); - - // Cooked Shrimp - r = GetNewRecipe(); - r.AddIngredient(ModContent.ItemType()); - r.AddTile(TileID.CookingPots); - r.SetResult(2426); - r.AddRecipe(); - // Glass r = GetNewRecipe(); r.AddIngredient(ModContent.ItemType(), 2); @@ -215,6 +203,35 @@ namespace CalamityMod } #endregion + #region Cooked Food + private static void AddCookedFood() + { + ModRecipe r = GetNewRecipe(); + r.AddIngredient(ModContent.ItemType()); + r.AddTile(TileID.CookingPots); + r.SetResult(ItemID.CookedFish); + r.AddRecipe(); + + r = GetNewRecipe(); + r.AddIngredient(ModContent.ItemType()); + r.AddTile(TileID.CookingPots); + r.SetResult(ItemID.CookedFish); + r.AddRecipe(); + + r = GetNewRecipe(); + r.AddIngredient(ModContent.ItemType()); + r.AddTile(TileID.CookingPots); + r.SetResult(ItemID.CookedFish); + r.AddRecipe(); + + r = GetNewRecipe(); + r.AddIngredient(ModContent.ItemType()); + r.AddTile(TileID.CookingPots); + r.SetResult(ItemID.CookedShrimp); + r.AddRecipe(); + } + #endregion + #region Tools // Essential tools such as the Magic Mirror and Rod of Discord private static void AddToolRecipes()