From 7a98de1d2c62043fc9da520e8f90c6958abab9bb Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Thu, 25 Aug 2022 23:05:00 -0400 Subject: [PATCH 1/4] Frostbrand 140 -> 97 --- Items/CalamityGlobalItemTweaks.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/CalamityGlobalItemTweaks.cs b/Items/CalamityGlobalItemTweaks.cs index 2197910985..5b4b1f1d3e 100644 --- a/Items/CalamityGlobalItemTweaks.cs +++ b/Items/CalamityGlobalItemTweaks.cs @@ -204,7 +204,7 @@ namespace CalamityMod.Items { ItemID.FlowerofFrost, Do(AutoReuse, ManaExact(7), UseExact(30), DamageExact(70), ShootSpeedExact(14)) }, { ItemID.FlyingKnife, Do(DamageExact(70)) }, { ItemID.FormatC, autoReuse }, - { ItemID.Frostbrand, Do(UseMeleeSpeed, DamageExact(140), UseTimeExact(20)) }, + { ItemID.Frostbrand, Do(UseMeleeSpeed, DamageExact(97), UseExact(23)) }, { ItemID.FrostburnArrow, Do(DamageExact(8)) }, { ItemID.FrostStaff, Do(DamageExact(160), UseExact(37), ShootSpeedExact(20f)) }, // has 1 extra update { ItemID.FrozenShield, Do(DefenseDelta(+7)) }, From d424554f251d4e1336d78c9a694fb2452430eeb8 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Thu, 25 Aug 2022 23:06:40 -0400 Subject: [PATCH 2/4] Fixed Angelic Alliance not using Recipe Groups for the Platemail and Greaves --- Items/Accessories/AngelicAlliance.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Items/Accessories/AngelicAlliance.cs b/Items/Accessories/AngelicAlliance.cs index 1bd6ddd2b0..966802e3bd 100644 --- a/Items/Accessories/AngelicAlliance.cs +++ b/Items/Accessories/AngelicAlliance.cs @@ -66,8 +66,8 @@ namespace CalamityMod.Items.Accessories { CreateRecipe(). AddRecipeGroup("AnyHallowedHelmet"). - AddIngredient(ItemID.HallowedPlateMail). - AddIngredient(ItemID.HallowedGreaves). + AddRecipeGroup("AnyHallowedPlatemail"). + AddRecipeGroup("AnyHallowedGreaves"). AddIngredient(ItemID.PaladinsShield). AddIngredient(ItemID.TrueExcalibur). AddIngredient(ItemID.CrossNecklace). From 8fc203babcb5e55bd743f034ade2b706622339ae Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Thu, 25 Aug 2022 23:16:51 -0400 Subject: [PATCH 3/4] Fixed Feather Crown not using a recipe group --- Items/Accessories/FeatherCrown.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Items/Accessories/FeatherCrown.cs b/Items/Accessories/FeatherCrown.cs index dcd7d27f7a..392558b512 100644 --- a/Items/Accessories/FeatherCrown.cs +++ b/Items/Accessories/FeatherCrown.cs @@ -64,14 +64,7 @@ namespace CalamityMod.Items.Accessories public override void AddRecipes() { CreateRecipe(). - AddIngredient(ItemID.GoldCrown). - AddIngredient(6). - AddIngredient(ItemID.Feather, 8). - AddTile(TileID.SkyMill). - Register(); - - CreateRecipe(). - AddIngredient(ItemID.PlatinumCrown). + AddRecipeGroup("AnyGoldCrown"). AddIngredient(6). AddIngredient(ItemID.Feather, 8). AddTile(TileID.SkyMill). From 71b7c3f9b22c90f023247b21fd0dc50da65e580e Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Thu, 25 Aug 2022 23:17:42 -0400 Subject: [PATCH 4/4] Made some of our recipe groups translate automatically --- Utilities/CalamityRecipes.cs | 63 ++++++++++++++++-------------------- 1 file changed, 28 insertions(+), 35 deletions(-) diff --git a/Utilities/CalamityRecipes.cs b/Utilities/CalamityRecipes.cs index 05850e1e9f..0540889c10 100644 --- a/Utilities/CalamityRecipes.cs +++ b/Utilities/CalamityRecipes.cs @@ -14,6 +14,7 @@ using CalamityMod.Items.Tools; using CalamityMod.Items.Weapons.Melee; using Terraria; using Terraria.ID; +using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod @@ -23,7 +24,7 @@ namespace CalamityMod { #region Recipe Group Definitions public static int HardmodeAnvil, HardmodeForge, AnyLargeGem, AnyFood; - public static int AnyCopperBar, AnySilverBar, AnyGoldOre, AnyGoldBar, AnyEvilBar, AnyCobaltBar, AnyMythrilBar, AnyAdamantiteBar; + public static int AnyCopperBar, AnySilverBar, AnyGoldBar, AnyEvilBar, AnyCobaltBar, AnyMythrilBar, AnyAdamantiteBar; public static int EvilPowder, Boss2Material, CursedFlameIchor, AnyEvilWater, AnyEvilFlask; public static int AnyStoneBlock, AnySnowBlock, AnyIceBlock, SiltGroup, AnyEvilBlock, AnyGoodBlock; public static int AnyWoodenSword, AnyHallowedHelmet, AnyHallowedPlatemail, AnyHallowedGreaves, AnyGoldCrown, LunarPickaxe, LunarHamaxe; @@ -175,7 +176,7 @@ namespace CalamityMod private static void AddOreAndBarRecipeGroups() { // Copper and Tin - RecipeGroup group = new RecipeGroup(() => "Any Copper Bar", new int[] + RecipeGroup group = new RecipeGroup(() => $"{Language.GetTextValue("LegacyMisc.37")} {Lang.GetItemNameValue(ItemID.CopperBar)}", new int[] { ItemID.CopperBar, ItemID.TinBar @@ -183,23 +184,15 @@ namespace CalamityMod AnyCopperBar = RecipeGroup.RegisterGroup("AnyCopperBar", group); // Silver and Tungsten - group = new RecipeGroup(() => "Any Silver Bar", new int[] + group = new RecipeGroup(() => $"{Language.GetTextValue("LegacyMisc.37")} {Lang.GetItemNameValue(ItemID.SilverBar)}", new int[] { ItemID.SilverBar, ItemID.TungstenBar, }); AnySilverBar = RecipeGroup.RegisterGroup("AnySilverBar", group); - // Gold and Platinum Ore - group = new RecipeGroup(() => "Any Gold Ore", new int[] - { - ItemID.GoldOre, - ItemID.PlatinumOre - }); - AnyGoldOre = RecipeGroup.RegisterGroup("AnyGoldOre", group); - // Gold and Platinum - group = new RecipeGroup(() => "Any Gold Bar", new int[] + group = new RecipeGroup(() => $"{Language.GetTextValue("LegacyMisc.37")} {Lang.GetItemNameValue(ItemID.GoldBar)}", new int[] { ItemID.GoldBar, ItemID.PlatinumBar @@ -215,7 +208,7 @@ namespace CalamityMod AnyEvilBar = RecipeGroup.RegisterGroup("AnyEvilBar", group); // Cobalt and Palladium - group = new RecipeGroup(() => "Any Cobalt Bar", new int[] + group = new RecipeGroup(() => $"{Language.GetTextValue("LegacyMisc.37")} {Lang.GetItemNameValue(ItemID.CobaltBar)}", new int[] { ItemID.CobaltBar, ItemID.PalladiumBar @@ -223,7 +216,7 @@ namespace CalamityMod AnyCobaltBar = RecipeGroup.RegisterGroup("AnyCobaltBar", group); // Mythril and Orichalcum - group = new RecipeGroup(() => "Any Mythril Bar", new int[] + group = new RecipeGroup(() => $"{Language.GetTextValue("LegacyMisc.37")} {Lang.GetItemNameValue(ItemID.MythrilBar)}", new int[] { ItemID.MythrilBar, ItemID.OrichalcumBar @@ -231,7 +224,7 @@ namespace CalamityMod AnyMythrilBar = RecipeGroup.RegisterGroup("AnyMythrilBar", group); // Adamantite and Titanium - group = new RecipeGroup(() => "Any Adamantite Bar", new int[] + group = new RecipeGroup(() => $"{Language.GetTextValue("LegacyMisc.37")} {Lang.GetItemNameValue(ItemID.AdamantiteBar)}", new int[] { ItemID.AdamantiteBar, ItemID.TitaniumBar @@ -285,7 +278,7 @@ namespace CalamityMod private static void AddBiomeBlockRecipeGroups() { // Vanilla Stone and Astral Stone - RecipeGroup group = new RecipeGroup(() => "Any Stone Block", new int[] + RecipeGroup group = new RecipeGroup(() => $"{Language.GetTextValue("LegacyMisc.37")} {Lang.GetItemNameValue(ItemID.StoneBlock)}", new int[] { ItemID.StoneBlock, ItemID.EbonstoneBlock, @@ -296,7 +289,7 @@ namespace CalamityMod AnyStoneBlock = RecipeGroup.RegisterGroup("AnyStoneBlock", group); // Vanilla Snow and Astral Snow - group = new RecipeGroup(() => "Any Snow Block", new int[] + group = new RecipeGroup(() => $"{Language.GetTextValue("LegacyMisc.37")} {Lang.GetItemNameValue(ItemID.SnowBlock)}", new int[] { ItemID.SnowBlock, ModContent.ItemType() @@ -304,7 +297,7 @@ namespace CalamityMod AnySnowBlock = RecipeGroup.RegisterGroup("AnySnowBlock", group); // Vanilla Ice and Astral Ice - group = new RecipeGroup(() => "Any Ice Block", new int[] + group = new RecipeGroup(() => $"{Language.GetTextValue("LegacyMisc.37")} {Lang.GetItemNameValue(ItemID.IceBlock)}", new int[] { ItemID.IceBlock, ItemID.PurpleIceBlock, @@ -314,8 +307,8 @@ namespace CalamityMod }); AnyIceBlock = RecipeGroup.RegisterGroup("AnyIceBlock", group); - // Silt, Slush, and Astral Silt - group = new RecipeGroup(() => "Any Silt", new int[] + // Silt, Slush, and Astral Silt, for Ancient Fossil + group = new RecipeGroup(() => $"{Language.GetTextValue("LegacyMisc.37")} {Lang.GetItemNameValue(ItemID.SiltBlock)}", new int[] { ItemID.SiltBlock, ItemID.SlushBlock, @@ -323,7 +316,7 @@ namespace CalamityMod }); SiltGroup = RecipeGroup.RegisterGroup("SiltGroup", group); - // Set of all generic Corruption/Crimson blocks + // Set of all generic Corruption/Crimson blocks, for Overloaded Sludge group = new RecipeGroup(() => "Any Evil Block", new int[] { ItemID.EbonstoneBlock, @@ -339,7 +332,7 @@ namespace CalamityMod }); AnyEvilBlock = RecipeGroup.RegisterGroup("AnyEvilBlock", group); - // Set of all generic Hallow blocks + // Set of all generic Hallow blocks, this recipe group is unused group = new RecipeGroup(() => "Any Good Block", new int[] { ItemID.PearlstoneBlock, @@ -353,8 +346,8 @@ namespace CalamityMod private static void AddEquipmentRecipeGroups() { - // Wooden Swords - RecipeGroup group = new RecipeGroup(() => "Any Wooden Sword", new int[] + // Wooden Swords for Broken Biome Blade + RecipeGroup group = new RecipeGroup(() => $"{Language.GetTextValue("LegacyMisc.37")} {Lang.GetItemNameValue(ItemID.WoodenSword)}", new int[] { ItemID.WoodenSword, ItemID.BorealWoodSword, @@ -366,8 +359,8 @@ namespace CalamityMod }); AnyWoodenSword = RecipeGroup.RegisterGroup("AnyWoodenSword", group); - // Hallowed Helmets - group = new RecipeGroup(() => "Any Hallowed Helmet", new int[] + // Hallowed Helmets for Angelic Alliance + group = new RecipeGroup(() => $"{Language.GetTextValue("LegacyMisc.37")} {Lang.GetItemNameValue(ItemID.HallowedHelmet)}", new int[] { ItemID.HallowedHelmet, ItemID.HallowedHeadgear, @@ -381,7 +374,7 @@ namespace CalamityMod AnyHallowedHelmet = RecipeGroup.RegisterGroup("AnyHallowedHelmet", group); // Hallowed Plate Mails - group = new RecipeGroup(() => "Any Hallowed Platemail", new int[] + group = new RecipeGroup(() => $"{Language.GetTextValue("LegacyMisc.37")} {Lang.GetItemNameValue(ItemID.HallowedPlateMail)}", new int[] { ItemID.HallowedPlateMail, ItemID.AncientHallowedPlateMail @@ -389,22 +382,22 @@ namespace CalamityMod AnyHallowedPlatemail = RecipeGroup.RegisterGroup("AnyHallowedPlatemail", group); // Hallowed Greaves - group = new RecipeGroup(() => "Any Hallowed Greaves", new int[] + group = new RecipeGroup(() => $"{Language.GetTextValue("LegacyMisc.37")} {Lang.GetItemNameValue(ItemID.HallowedGreaves)}", new int[] { ItemID.HallowedGreaves, ItemID.AncientHallowedGreaves }); AnyHallowedGreaves = RecipeGroup.RegisterGroup("AnyHallowedGreaves", group); - // Gold and Platinum Crowns - group = new RecipeGroup(() => "Any Gold Crown", new int[] + // Gold and Platinum Crowns for Feather Crown + group = new RecipeGroup(() => $"{Language.GetTextValue("LegacyMisc.37")} {Lang.GetItemNameValue(ItemID.GoldCrown)}", new int[] { ItemID.GoldCrown, ItemID.PlatinumCrown }); AnyGoldCrown = RecipeGroup.RegisterGroup("AnyGoldCrown", group); - // Vanilla Luminite Pickaxes and Genesis Pickaxe + // Vanilla Luminite Pickaxes and Genesis Pickaxe for Crystyl Crusher group = new RecipeGroup(() => "Any Lunar Pickaxe", new int[] { ItemID.SolarFlarePickaxe, @@ -415,7 +408,7 @@ namespace CalamityMod }); LunarPickaxe = RecipeGroup.RegisterGroup("LunarPickaxe", group); - // Luminite Hamaxes + // Luminite Hamaxes for Grax group = new RecipeGroup(() => "Any Lunar Hamaxe", new int[] { ItemID.LunarHamaxeSolar, @@ -426,7 +419,7 @@ namespace CalamityMod LunarHamaxe = RecipeGroup.RegisterGroup("LunarHamaxe", group); // Mana Flower+ for Ethereal Talisman - group = new RecipeGroup(() => "Any Mana Flower", new int[] + group = new RecipeGroup(() => $"{Language.GetTextValue("LegacyMisc.37")} {Lang.GetItemNameValue(ItemID.ManaFlower)}", new int[] { ItemID.ManaFlower, ItemID.ArcaneFlower, @@ -445,7 +438,7 @@ namespace CalamityMod QuiversGroup = RecipeGroup.RegisterGroup("QuiversGroup", group); // Tombstones for Grave Grimreaver - group = new RecipeGroup(() => "Any Tombstone", new int[] + group = new RecipeGroup(() => $"{Language.GetTextValue("LegacyMisc.37")} {Lang.GetItemNameValue(ItemID.Tombstone)}", new int[] { ItemID.Tombstone, ItemID.GraveMarker, @@ -461,7 +454,7 @@ namespace CalamityMod }); QuiversGroup = RecipeGroup.RegisterGroup("TombstonesGroup", group); - // Wings + // Wings for Seraph Tracers group = new RecipeGroup(() => "Any Wings", new int[] { ItemID.DemonWings,