From f2ca4820ec5da1792df5cfc5b7f0cb6e58c5acd4 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Tue, 19 Apr 2022 16:46:46 -0500 Subject: [PATCH] 1 - Edited Rev item tooltip to say Hallowed instead of Titanium. 2 - Added Orange Phaseblade and Phasesaber to global item tweaks. 3 - True Excalibur recipe now requires 12 Chlorophyte Bars instead of 24. 4 - Edited Orange Phasesaber recipe to require 20 Crystal Shards instead of 50. --- CalPlayer/CalamityPlayerMiscEffects.cs | 2 +- Items/CalamityGlobalItemTooltip.cs | 2 +- Items/CalamityGlobalItemTweaks.cs | 2 ++ Items/DifficultyItems/Revenge.cs | 2 +- Utilities/CalamityRecipes.cs | 30 +++++++++++++++++--------- 5 files changed, 25 insertions(+), 13 deletions(-) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 5ffc1044bb..387969b8d8 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -203,7 +203,7 @@ namespace CalamityMod.CalPlayer if (Player.whoAmI == Main.myPlayer) { - // Titanium Armor nerf + // Hallowed Armor nerf if (Player.onHitDodge) { for (int l = 0; l < Player.MaxBuffs; l++) diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index 63a3b7bfda..90999db6c5 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -546,7 +546,7 @@ namespace CalamityMod.Items if (item.type == ItemID.MythrilChainmail) EditTooltipByNum(0, (line) => line.Text = $"{MythrilArmorSetChange.ChestplateDamagePercentageBoost + 7}% increased damage"); - // Mythril Hood. + // Mythril Greaves. if (item.type == ItemID.MythrilGreaves) EditTooltipByNum(0, (line) => line.Text = $"{MythrilArmorSetChange.LeggingsCritChanceBoost + 10}% increased critical strike chance"); diff --git a/Items/CalamityGlobalItemTweaks.cs b/Items/CalamityGlobalItemTweaks.cs index 37f8203ba7..bb30855d52 100644 --- a/Items/CalamityGlobalItemTweaks.cs +++ b/Items/CalamityGlobalItemTweaks.cs @@ -307,6 +307,8 @@ namespace CalamityMod.Items { ItemID.ObsidianSwordfish, Do(AutoReuse, TrueMelee, DamageExact(45)) }, { ItemID.OnyxBlaster, pointBlank }, { ItemID.OpticStaff, Do(AutoReuse, UseExact(25), DamageRatio(0.75f)) }, // NOTE: Optic Staff minions have local iframes, so they should be much better overall + { ItemID.OrangePhaseblade, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageRatio(2f)) }, + { ItemID.OrangePhasesaber, Do(ScaleRatio(1.5f), DamageExact(72), UseExact(20)) }, { ItemID.OrichalcumBreastplate, Do(DefenseDelta(+3)) }, { ItemID.OrichalcumChainsaw, Do(TrueMelee, AxePower(80), UseTimeExact(4), TileBoostExact(-1)) }, { ItemID.OrichalcumDrill, Do(TrueMelee, PickPower(160), UseTimeExact(4)) }, diff --git a/Items/DifficultyItems/Revenge.cs b/Items/DifficultyItems/Revenge.cs index 00aa17a79e..c217b9b084 100644 --- a/Items/DifficultyItems/Revenge.cs +++ b/Items/DifficultyItems/Revenge.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.DifficultyItems "Makes certain enemies block life steal and nerfs the effectiveness of life steal.\n" + // Misc lines - "Nerfs the effectiveness of the Titanium Armor set bonus.\n" + + "Nerfs the effectiveness of the Hallowed Armor set bonus.\n" + // Boss lines "All boss minions no longer drop hearts.\n" + diff --git a/Utilities/CalamityRecipes.cs b/Utilities/CalamityRecipes.cs index a22d960a99..45692f3a16 100644 --- a/Utilities/CalamityRecipes.cs +++ b/Utilities/CalamityRecipes.cs @@ -115,6 +115,7 @@ namespace CalamityMod EditPhoenixBlasterRecipe(); EditFlamarangRecipe(); EditTrueNightsEdgeRecipe(); + EditTrueExcaliburRecipe(); EditTerraBladeRecipe(); EditZenithRecipe(); EditMagiluminescenceRecipe(); @@ -165,9 +166,9 @@ namespace CalamityMod { s.requiredItem = new List(); for (int i = 0; i < 3; i++) - { - s.requiredItem.Add(new Item()); - } + { + s.requiredItem.Add(new Item()); + } s.requiredItem[0].SetDefaults(ModContent.ItemType(), false); s.requiredItem[0].stack = 6; s.requiredItem[1].SetDefaults(ItemID.GoldBar, false); @@ -240,6 +241,16 @@ namespace CalamityMod }); } + // Change True Excalibur's recipe to require 12 Chlorophyte Bars instead of 24 + private static void EditTrueExcaliburRecipe() + { + List rec = Main.recipe.ToList(); + rec.Where(x => x.createItem.type == ItemID.TrueExcalibur).ToList().ForEach(s => + { + s.requiredItem[1].stack = 12; + }); + } + // Change Terra Blade's recipe to require 7 Living Shards (forces the Blade to be post-Plantera) private static void EditTerraBladeRecipe() { @@ -532,7 +543,8 @@ namespace CalamityMod { List rec = Main.recipe.ToList(); rec.Where(x => x.createItem.type == ItemID.BluePhasesaber || x.createItem.type == ItemID.GreenPhasesaber || x.createItem.type == ItemID.PurplePhasesaber || - x.createItem.type == ItemID.RedPhasesaber || x.createItem.type == ItemID.WhitePhasesaber || x.createItem.type == ItemID.YellowPhasesaber).ToList().ForEach(s => + x.createItem.type == ItemID.RedPhasesaber || x.createItem.type == ItemID.WhitePhasesaber || x.createItem.type == ItemID.YellowPhasesaber || + x.createItem.type == ItemID.OrangePhasesaber).ToList().ForEach(s => { s.requiredItem[1].stack = 20; }); @@ -1552,16 +1564,16 @@ namespace CalamityMod { ItemID.HallowedHelmet, ItemID.HallowedHeadgear, - ItemID.HallowedMask/*, + ItemID.HallowedMask, ItemID.HallowedHood, ItemID.AncientHallowedHelmet, ItemID.AncientHallowedHeadgear, ItemID.AncientHallowedMask, - ItemID.AncientHallowedHood*/ + ItemID.AncientHallowedHood }); RecipeGroup.RegisterGroup("AnyHallowedHelmet", group); - /*group = new RecipeGroup(() => "Any Hallowed Platemail", new int[] + group = new RecipeGroup(() => "Any Hallowed Platemail", new int[] { ItemID.HallowedPlateMail, ItemID.AncientHallowedPlateMail @@ -1573,7 +1585,7 @@ namespace CalamityMod ItemID.HallowedGreaves, ItemID.AncientHallowedGreaves }); - RecipeGroup.RegisterGroup("AnyHallowedGreaves", group);*/ + RecipeGroup.RegisterGroup("AnyHallowedGreaves", group); group = new RecipeGroup(() => "Any Hardmode Anvil", new int[] { @@ -1693,7 +1705,6 @@ namespace CalamityMod ItemID.ArkhalisWings, ItemID.LeinforsWings, ItemID.BejeweledValkyrieWing, - /* ItemID.GhostarsWings, ItemID.GroxTheGreatWings, ItemID.FoodBarbarianWings, @@ -1701,7 +1712,6 @@ namespace CalamityMod ItemID.CreativeWings, ItemID.RainbowWings, ItemID.LongRainbowTrailWings, - */ ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(),