diff --git a/Items/Armor/Aerospec/AerospecHat.cs b/Items/Armor/Aerospec/AerospecHat.cs index c904929b74..4f2840128b 100644 --- a/Items/Armor/Aerospec/AerospecHat.cs +++ b/Items/Armor/Aerospec/AerospecHat.cs @@ -31,9 +31,7 @@ namespace CalamityMod.Items.Armor.Aerospec public override void UpdateArmorSet(Player player) { - player.setBonus = "5% increased movement speed and magic critical strike chance\n" + - "Taking over 25 damage in one hit will cause a spread of homing feathers to fall\n" + - "Allows you to fall more quickly and disables fall damage"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); var modPlayer = player.Calamity(); modPlayer.aeroSet = true; player.noFallDmg = true; diff --git a/Items/Armor/Aerospec/AerospecHeadgear.cs b/Items/Armor/Aerospec/AerospecHeadgear.cs index 3eb6b12740..1694d60e9d 100644 --- a/Items/Armor/Aerospec/AerospecHeadgear.cs +++ b/Items/Armor/Aerospec/AerospecHeadgear.cs @@ -38,10 +38,7 @@ namespace CalamityMod.Items.Armor.Aerospec public override void UpdateArmorSet(Player player) { - player.setBonus = "5% increased movement speed and rogue critical strike chance\n" + - "+80 maximum stealth\n" + - "Taking over 25 damage in one hit will cause a spread of homing feathers to fall\n" + - "Allows you to fall more quickly and disables fall damage"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); var modPlayer = player.Calamity(); modPlayer.aeroSet = true; modPlayer.rogueStealthMax += 0.8f; diff --git a/Items/Armor/Aerospec/AerospecHelm.cs b/Items/Armor/Aerospec/AerospecHelm.cs index 38dd0eff22..66c8272e2f 100644 --- a/Items/Armor/Aerospec/AerospecHelm.cs +++ b/Items/Armor/Aerospec/AerospecHelm.cs @@ -31,10 +31,7 @@ namespace CalamityMod.Items.Armor.Aerospec public override void UpdateArmorSet(Player player) { - player.setBonus = "5% increased movement speed and melee critical strike chance\n" + - "Enemies are more likely to target you\n" + - "Taking over 25 damage in one hit will cause a spread of homing feathers to fall\n" + - "Allows you to fall more quickly and disables fall damage"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); var modPlayer = player.Calamity(); modPlayer.aeroSet = true; player.noFallDmg = true; diff --git a/Items/Armor/Aerospec/AerospecHelmet.cs b/Items/Armor/Aerospec/AerospecHelmet.cs index 83b93e063e..bc1f4eb66c 100644 --- a/Items/Armor/Aerospec/AerospecHelmet.cs +++ b/Items/Armor/Aerospec/AerospecHelmet.cs @@ -33,10 +33,7 @@ namespace CalamityMod.Items.Armor.Aerospec public override void UpdateArmorSet(Player player) { - player.setBonus = "11% increased minion damage and +1 max minion\n" + - "Summons a valkyrie to protect you\n" + - "Taking over 25 damage in one hit will cause a spread of homing feathers to fall\n" + - "Allows you to fall more quickly and disables fall damage"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); var modPlayer = player.Calamity(); modPlayer.valkyrie = true; modPlayer.aeroSet = true; diff --git a/Items/Armor/Aerospec/AerospecHood.cs b/Items/Armor/Aerospec/AerospecHood.cs index 9066fbd5ee..4d11017c6b 100644 --- a/Items/Armor/Aerospec/AerospecHood.cs +++ b/Items/Armor/Aerospec/AerospecHood.cs @@ -31,9 +31,7 @@ namespace CalamityMod.Items.Armor.Aerospec public override void UpdateArmorSet(Player player) { - player.setBonus = "5% increased movement speed and ranged critical strike chance\n" + - "Taking over 25 damage in one hit will cause a spread of homing feathers to fall\n" + - "Allows you to fall more quickly and disables fall damage"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); var modPlayer = player.Calamity(); modPlayer.aeroSet = true; player.noFallDmg = true; diff --git a/Items/Armor/Astral/AstralHelm.cs b/Items/Armor/Astral/AstralHelm.cs index aba5badef3..486ca5485c 100644 --- a/Items/Armor/Astral/AstralHelm.cs +++ b/Items/Armor/Astral/AstralHelm.cs @@ -31,10 +31,7 @@ namespace CalamityMod.Items.Armor.Astral public override void UpdateArmorSet(Player player) { - player.setBonus = "5% increased movement speed and +3 max minions\n" + - "35% increased damage and 25% increased critical strike chance\n" + - "Whenever you crit an enemy, a barrage of stars will rain down\n" + - "This effect has a 1 second cooldown before it can trigger again"; + player.setBonus = this.GetLocalizedValue("SetBonus"); var modPlayer = player.Calamity(); modPlayer.astralStarRain = true; player.moveSpeed += 0.05f; diff --git a/Items/Armor/Auric/AuricTeslaHoodedFacemask.cs b/Items/Armor/Auric/AuricTeslaHoodedFacemask.cs index b3f92e88b7..fc8749d9bc 100644 --- a/Items/Armor/Auric/AuricTeslaHoodedFacemask.cs +++ b/Items/Armor/Auric/AuricTeslaHoodedFacemask.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Armor.Auric public override void UpdateArmorSet(Player player) { - player.setBonus = "Ranged Tarragon, Bloodflare and God Slayer armor effects"; + player.setBonus = this.GetLocalizedValue("SetBonus"); var modPlayer = player.Calamity(); modPlayer.tarraSet = true; modPlayer.tarraRanged = true; diff --git a/Items/Armor/Auric/AuricTeslaPlumedHelm.cs b/Items/Armor/Auric/AuricTeslaPlumedHelm.cs index 91eb63dfbd..168166e0a5 100644 --- a/Items/Armor/Auric/AuricTeslaPlumedHelm.cs +++ b/Items/Armor/Auric/AuricTeslaPlumedHelm.cs @@ -36,8 +36,7 @@ namespace CalamityMod.Items.Armor.Auric public override void UpdateArmorSet(Player player) { - player.setBonus = "Rogue Tarragon, Bloodflare and God Slayer armor effects\n" + - "+130 maximum stealth"; + player.setBonus = this.GetLocalizedValue("SetBonus"); var modPlayer = player.Calamity(); modPlayer.tarraSet = true; modPlayer.tarraThrowing = true; diff --git a/Items/Armor/Auric/AuricTeslaRoyalHelm.cs b/Items/Armor/Auric/AuricTeslaRoyalHelm.cs index 6b35beefe5..ed0eabed47 100644 --- a/Items/Armor/Auric/AuricTeslaRoyalHelm.cs +++ b/Items/Armor/Auric/AuricTeslaRoyalHelm.cs @@ -38,8 +38,7 @@ namespace CalamityMod.Items.Armor.Auric public override void UpdateArmorSet(Player player) { - player.setBonus = "Melee Tarragon, Bloodflare and God Slayer effects\n" + - "Enemies are more likely to target you"; + player.setBonus = this.GetLocalizedValue("SetBonus"); var modPlayer = player.Calamity(); modPlayer.tarraSet = true; modPlayer.tarraMelee = true; diff --git a/Items/Armor/Auric/AuricTeslaSpaceHelmet.cs b/Items/Armor/Auric/AuricTeslaSpaceHelmet.cs index 42ec2e2347..68dd2a414c 100644 --- a/Items/Armor/Auric/AuricTeslaSpaceHelmet.cs +++ b/Items/Armor/Auric/AuricTeslaSpaceHelmet.cs @@ -38,9 +38,7 @@ namespace CalamityMod.Items.Armor.Auric public override void UpdateArmorSet(Player player) { - player.setBonus = "Summoner Tarragon, Bloodflare and Silva armor effects\n" + - "Max run speed and acceleration boosted by 5%\n" + - "+6 max minions and 75% increased minion damage"; + player.setBonus = this.GetLocalizedValue("SetBonus"); var modPlayer = player.Calamity(); modPlayer.tarraSet = true; modPlayer.tarraSummon = true; diff --git a/Items/Armor/Auric/AuricTeslaWireHemmedVisage.cs b/Items/Armor/Auric/AuricTeslaWireHemmedVisage.cs index 1958c33fb3..9e1bc1ae5c 100644 --- a/Items/Armor/Auric/AuricTeslaWireHemmedVisage.cs +++ b/Items/Armor/Auric/AuricTeslaWireHemmedVisage.cs @@ -36,8 +36,7 @@ namespace CalamityMod.Items.Armor.Auric public override void UpdateArmorSet(Player player) { - player.setBonus = "Magic Tarragon, Bloodflare and Silva armor effects\n" + - "Max run speed and acceleration boosted by 5%"; + player.setBonus = this.GetLocalizedValue("SetBonus"); var modPlayer = player.Calamity(); modPlayer.tarraSet = true; modPlayer.tarraMage = true; diff --git a/Items/Armor/Bloodflare/BloodflareHeadMagic.cs b/Items/Armor/Bloodflare/BloodflareHeadMagic.cs index 566cc6a32e..2eeff0a658 100644 --- a/Items/Armor/Bloodflare/BloodflareHeadMagic.cs +++ b/Items/Armor/Bloodflare/BloodflareHeadMagic.cs @@ -36,11 +36,7 @@ namespace CalamityMod.Items.Armor.Bloodflare var modPlayer = player.Calamity(); modPlayer.bloodflareSet = true; modPlayer.bloodflareMage = true; - player.setBonus = "Greatly increases life regen\n" + - "Enemies below 50% life drop a heart when struck\n" + - "This effect has a 5 second cooldown\n" + - "Magic weapons fire ghostly bolts every 1.67 seconds\n" + - "Magic critical strikes cause flame explosions every 2 seconds"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); player.crimsonRegen = true; } diff --git a/Items/Armor/Bloodflare/BloodflareHeadMelee.cs b/Items/Armor/Bloodflare/BloodflareHeadMelee.cs index 44b8c5c618..df8c28f09b 100644 --- a/Items/Armor/Bloodflare/BloodflareHeadMelee.cs +++ b/Items/Armor/Bloodflare/BloodflareHeadMelee.cs @@ -36,14 +36,7 @@ namespace CalamityMod.Items.Armor.Bloodflare var modPlayer = player.Calamity(); modPlayer.bloodflareSet = true; modPlayer.bloodflareMelee = true; - player.setBonus = "Greatly increases life regen\n" + - "Enemies are more likely to target you\n" + - "Enemies below 50% life drop a heart when struck\n" + - "This effect has a 5 second cooldown\n" + - "True melee strikes will heal you\n" + - "After striking an enemy 15 times with true melee you will enter a blood frenzy for 5 seconds\n" + - "During this you will gain 25% increased melee damage, critical strike chance, and contact damage is halved\n" + - "This effect has a 30 second cooldown"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); player.crimsonRegen = true; player.aggro += 900; } diff --git a/Items/Armor/Bloodflare/BloodflareHeadRanged.cs b/Items/Armor/Bloodflare/BloodflareHeadRanged.cs index ba6d85ebf5..5aaa719932 100644 --- a/Items/Armor/Bloodflare/BloodflareHeadRanged.cs +++ b/Items/Armor/Bloodflare/BloodflareHeadRanged.cs @@ -40,12 +40,7 @@ namespace CalamityMod.Items.Armor.Bloodflare modPlayer.bloodflareSet = true; modPlayer.bloodflareRanged = true; var hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString(); - player.setBonus = "Greatly increases life regen\n" + - "Enemies below 50% life drop a heart when struck\n" + - "This effect has a 5 second cooldown\n" + - "Press " + hotkey + " to unleash the lost souls of polterghast to destroy your enemies\n" + - "This effect has a 30 second cooldown\n" + - "Ranged weapons fire bloodsplosion orbs every 2.5 seconds"; + player.setBonus = this.GetLocalization("SetBonus").WithFormatArgs(hotkey).ToString() + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); player.crimsonRegen = true; } diff --git a/Items/Armor/Bloodflare/BloodflareHeadRogue.cs b/Items/Armor/Bloodflare/BloodflareHeadRogue.cs index 257702c1fb..d9277c9e52 100644 --- a/Items/Armor/Bloodflare/BloodflareHeadRogue.cs +++ b/Items/Armor/Bloodflare/BloodflareHeadRogue.cs @@ -38,13 +38,7 @@ namespace CalamityMod.Items.Armor.Bloodflare modPlayer.bloodflareThrowing = true; modPlayer.rogueStealthMax += 1.2f; modPlayer.wearingRogueArmor = true; - player.setBonus = "Greatly increases life regen\n" + - "Enemies below 50% life drop a heart when struck\n" + - "This effect has a 5 second cooldown\n" + - "+120 maximum stealth\n" + - "Being over 80% life boosts your defense by 30 and rogue crit by 5%\n" + - "Being below 80% life boosts your rogue damage by 10%\n" + - "Rogue critical strikes have a 50% chance to heal you"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); player.crimsonRegen = true; } diff --git a/Items/Armor/Bloodflare/BloodflareHeadSummon.cs b/Items/Armor/Bloodflare/BloodflareHeadSummon.cs index 4902bf224e..8c1e8ef600 100644 --- a/Items/Armor/Bloodflare/BloodflareHeadSummon.cs +++ b/Items/Armor/Bloodflare/BloodflareHeadSummon.cs @@ -37,13 +37,7 @@ namespace CalamityMod.Items.Armor.Bloodflare modPlayer.bloodflareSet = true; modPlayer.bloodflareSummon = true; modPlayer.WearingPostMLSummonerSet = true; - player.setBonus = "50% increased minion damage and +3 max minions\n" + - "Greatly increases life regen\n" + - "Enemies below 50% life drop a heart when struck\n" + - "This effect has a 5 second cooldown\n" + - "Summons polterghast mines to circle you\n" + - "At 90% life and above you gain 10% increased minion damage\n" + - "At 50% life and below you gain 20 defense and 2 life regen"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); player.crimsonRegen = true; player.GetDamage() += 0.5f; player.maxMinions += 3; diff --git a/Items/Armor/Brimflame/BrimflameScowl.cs b/Items/Armor/Brimflame/BrimflameScowl.cs index 56093222ac..9bdf3139e3 100644 --- a/Items/Armor/Brimflame/BrimflameScowl.cs +++ b/Items/Armor/Brimflame/BrimflameScowl.cs @@ -78,11 +78,7 @@ namespace CalamityMod.Items.Armor.Brimflame player.GetDamage() += 0.15f; player.GetCritChance() += 15; var hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString(); - player.setBonus = "Grants an additional 15% increased magic damage and crit\n" + - "Press " + hotkey + " to trigger a brimflame frenzy effect\n" + - "While under this effect, you get an additional 40% increase to magic damage\n" + - "However, this comes at the cost of rapid life loss and no mana regeneration\n" + - "This can be toggled off, however, a brimflame frenzy has a 30 second cooldown"; + player.setBonus = this.GetLocalization("SetBonus").WithFormatArgs(hotkey).ToString(); } public override void AddRecipes() diff --git a/Items/Armor/Daedalus/DaedalusHeadMagic.cs b/Items/Armor/Daedalus/DaedalusHeadMagic.cs index 61725cc8e1..bb2b4abe1b 100644 --- a/Items/Armor/Daedalus/DaedalusHeadMagic.cs +++ b/Items/Armor/Daedalus/DaedalusHeadMagic.cs @@ -33,9 +33,7 @@ namespace CalamityMod.Items.Armor.Daedalus public override void UpdateArmorSet(Player player) { - player.setBonus = "5% increased magic damage\n" + - "You have a 10% chance to absorb physical attacks and projectiles when hit\n" + - "If you absorb an attack you are healed for 1/2 of that attack's damage"; + player.setBonus = this.GetLocalizedValue("SetBonus"); var modPlayer = player.Calamity(); modPlayer.daedalusAbsorb = true; player.GetDamage() += 0.05f; diff --git a/Items/Armor/Daedalus/DaedalusHeadMelee.cs b/Items/Armor/Daedalus/DaedalusHeadMelee.cs index 58416522db..d699c62bb5 100644 --- a/Items/Armor/Daedalus/DaedalusHeadMelee.cs +++ b/Items/Armor/Daedalus/DaedalusHeadMelee.cs @@ -33,11 +33,7 @@ namespace CalamityMod.Items.Armor.Daedalus public override void UpdateArmorSet(Player player) { - player.setBonus = "5% increased melee damage\n" + - "Enemies are more likely to target you\n" + - "You reflect projectiles back at enemies\n" + - "Reflected projectiles deal 50% less damage to you\n" + - "This reflect has a 90 second cooldown which is shared with all other dodges and reflects"; + player.setBonus = this.GetLocalizedValue("SetBonus"); var modPlayer = player.Calamity(); modPlayer.daedalusReflect = true; player.GetDamage() += 0.05f; diff --git a/Items/Armor/Daedalus/DaedalusHeadRanged.cs b/Items/Armor/Daedalus/DaedalusHeadRanged.cs index f86ea5cfc8..fb9cf3a62e 100644 --- a/Items/Armor/Daedalus/DaedalusHeadRanged.cs +++ b/Items/Armor/Daedalus/DaedalusHeadRanged.cs @@ -33,8 +33,7 @@ namespace CalamityMod.Items.Armor.Daedalus public override void UpdateArmorSet(Player player) { - player.setBonus = "5% increased ranged damage\n" + - "Getting hit causes you to emit a blast of crystal shards"; + player.setBonus = this.GetLocalizedValue("SetBonus"); var modPlayer = player.Calamity(); modPlayer.daedalusShard = true; player.GetDamage() += 0.05f; diff --git a/Items/Armor/Daedalus/DaedalusHeadRogue.cs b/Items/Armor/Daedalus/DaedalusHeadRogue.cs index 184f1ec6bc..390f68944a 100644 --- a/Items/Armor/Daedalus/DaedalusHeadRogue.cs +++ b/Items/Armor/Daedalus/DaedalusHeadRogue.cs @@ -33,9 +33,7 @@ namespace CalamityMod.Items.Armor.Daedalus public override void UpdateArmorSet(Player player) { - player.setBonus = "5% increased rogue damage\n" + - "+105 maximum stealth\n" + - "Rogue projectiles throw out crystal shards as they travel"; + player.setBonus = this.GetLocalizedValue("SetBonus"); var modPlayer = player.Calamity(); modPlayer.daedalusSplit = true; modPlayer.rogueStealthMax += 1.05f; diff --git a/Items/Armor/Daedalus/DaedalusHeadSummon.cs b/Items/Armor/Daedalus/DaedalusHeadSummon.cs index 3e61a99d39..31d9d58f3b 100644 --- a/Items/Armor/Daedalus/DaedalusHeadSummon.cs +++ b/Items/Armor/Daedalus/DaedalusHeadSummon.cs @@ -36,8 +36,7 @@ namespace CalamityMod.Items.Armor.Daedalus public override void UpdateArmorSet(Player player) { - player.setBonus = "20% increased minion damage and +2 max minions\n" + - "A daedalus crystal floats above you to protect you"; + player.setBonus = this.GetLocalizedValue("SetBonus"); var modPlayer = player.Calamity(); modPlayer.daedalusCrystal = true; if (player.whoAmI == Main.myPlayer) diff --git a/Items/Armor/Demonshade/DemonshadeHelm.cs b/Items/Armor/Demonshade/DemonshadeHelm.cs index f3b27c8b79..320d499bd4 100644 --- a/Items/Armor/Demonshade/DemonshadeHelm.cs +++ b/Items/Armor/Demonshade/DemonshadeHelm.cs @@ -42,11 +42,7 @@ namespace CalamityMod.Items.Armor.Demonshade public override void UpdateArmorSet(Player player) { var hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString(); - player.setBonus = "100% increased minion damage and +10 max minions\n" + - "Shadowbeams and demon scythes will fire down when you are hit\n" + - "A friendly red devil follows you around\n" + - "Press " + hotkey + " to enrage nearby enemies with a dark magic spell for 10 seconds\n" + - "This makes them take 2.25x total damage, but they will deal 1.25x damage to you"; + player.setBonus = this.GetLocalization("SetBonus").WithFormatArgs(hotkey).ToString(); var modPlayer = player.Calamity(); modPlayer.dsSetBonus = true; modPlayer.wearingRogueArmor = true; diff --git a/Items/Armor/DesertProwler/DesertProwlerSet.cs b/Items/Armor/DesertProwler/DesertProwlerSet.cs index 8e48b9a3ec..e92d15d609 100644 --- a/Items/Armor/DesertProwler/DesertProwlerSet.cs +++ b/Items/Armor/DesertProwler/DesertProwlerSet.cs @@ -26,6 +26,7 @@ namespace CalamityMod.Items.Armor.DesertProwler public static readonly SoundStyle SmokeBombEndSound = new("CalamityMod/Sounds/Custom/AbilitySounds/DesertProwlerSmokeBombEnd"); public static readonly SoundStyle CDResetSound = new("CalamityMod/Sounds/Custom/AbilitySounds/DesertProwlerCDReset"); + public static int FlatDamageBonus = 1; public static int SmokeCooldown = 25 * 60; public static int SmokeDuration = 5 * 60; public static int LightsOutReset = (int)(1.5f * 60); @@ -81,8 +82,8 @@ namespace CalamityMod.Items.Armor.DesertProwler public override void UpdateArmorSet(Player player) { - player.setBonus = "Ranged attacks deal an extra 1 flat damage"; //More gets edited in elsewhere - + player.setBonus = this.GetLocalization("SetBonus").WithFormatArgs(FlatDamageBonus).ToString(); //More gets edited in elsewhere + DesertProwlerPlayer armorPlayer = player.GetModPlayer(); armorPlayer.desertProwlerSet = true; @@ -169,19 +170,13 @@ namespace CalamityMod.Items.Armor.DesertProwler if (setBonusIndex != -1) { - TooltipLine setBonus1 = new TooltipLine(item.Mod, "CalamityMod:SetBonus1", "Sandsmoke Bomb - Double tap DOWN to shroud yourself in a small cloud of sand"); + TooltipLine setBonus1 = new TooltipLine(item.Mod, "CalamityMod:SetBonus1", CalamityUtils.GetTextValueFromModItem("AbilityBrief")); setBonus1.OverrideColor = Color.Lerp(new Color(255, 229, 156), new Color(233, 225, 198), 0.5f + 0.5f * (float)Math.Sin(Main.GlobalTimeWrappedHourly * 3f)); tooltips.Insert(setBonusIndex + 1, setBonus1); - TooltipLine setBonus2 = new TooltipLine(item.Mod, "CalamityMod:SetBonus2", "While the sand cloud is active, gain increased mobility but heavily reduced defense"); + TooltipLine setBonus2 = new TooltipLine(item.Mod, "CalamityMod:SetBonus2", CalamityUtils.GetTextFromModItem("AbilityDescription").WithFormatArgs(FreeCrit, BonusDamageCap, LightsOutReset / 60f).ToString()); setBonus2.OverrideColor = new Color(204, 181, 72); tooltips.Insert(setBonusIndex + 2, setBonus2); - - TooltipLine setBonus3 = new TooltipLine(item.Mod, "CalamityMod:SetBonus3", $"Using a ranged weapon instantly dispels the sand cloak, but guarantees a supercrit for {FreeCrit}% damage\n" + - $"The super crit applies only as long as the resulting hit wouldn't exceed {BonusDamageCap} damage\n" + - $"Landing the killing blow on an enemy with this shot shortens the ability's cooldown to {LightsOutReset / 60f} seconds"); - setBonus3.OverrideColor = new Color(204, 181, 72); - tooltips.Insert(setBonusIndex + 3, setBonus3); } } } @@ -212,7 +207,6 @@ namespace CalamityMod.Items.Armor.DesertProwler public override void SetStaticDefaults() { - if (Main.netMode == NetmodeID.Server) return; @@ -233,7 +227,6 @@ namespace CalamityMod.Items.Armor.DesertProwler public override void ModifyTooltips(List tooltips) => DesertProwlerHat.ModifySetTooltips(this, tooltips); - public override void UpdateEquip(Player player) { player.GetCritChance() += 5; @@ -301,7 +294,7 @@ namespace CalamityMod.Items.Armor.DesertProwler public override void ModifyWeaponDamage(Item item, ref StatModifier damage) { if (desertProwlerSet && item.CountsAsClass() && item.ammo == AmmoID.None) - damage.Flat += 1f; + damage.Flat += DesertProwlerHat.FlatDamageBonus; } public override void PostUpdate() diff --git a/Items/Armor/Empyrean/EmpyreanMask.cs b/Items/Armor/Empyrean/EmpyreanMask.cs index eb536e6c89..7f812503a7 100644 --- a/Items/Armor/Empyrean/EmpyreanMask.cs +++ b/Items/Armor/Empyrean/EmpyreanMask.cs @@ -65,10 +65,7 @@ namespace CalamityMod.Items.Armor.Empyrean var modPlayer = player.Calamity(); modPlayer.xerocSet = true; modPlayer.rogueStealthMax += 1.15f; - player.setBonus = "9% increased rogue damage and velocity\n" + - "+115 maximum stealth\n" + - "Rogue projectiles have special effects on enemy hits\n" + - "Imbued with cosmic wrath and rage when you are damaged"; + player.setBonus = this.GetLocalizedValue("SetBonus"); if (player.statLife <= (int)(player.statLifeMax2 * 0.5)) { player.AddBuff(BuffID.Wrath, 2); diff --git a/Items/Armor/FathomSwarmer/FathomSwarmerVisage.cs b/Items/Armor/FathomSwarmer/FathomSwarmerVisage.cs index 4128b1d6ce..92de3cad77 100644 --- a/Items/Armor/FathomSwarmer/FathomSwarmerVisage.cs +++ b/Items/Armor/FathomSwarmer/FathomSwarmerVisage.cs @@ -32,10 +32,7 @@ namespace CalamityMod.Items.Armor.FathomSwarmer public override void UpdateArmorSet(Player player) { - player.setBonus = "10% increased minion damage and +2 max minions\n" + - "Grants the ability to climb walls\n" + - "30% increased minion damage while submerged in liquid\n" + - "Provides a moderate amount of light and moderately reduces breath loss in the abyss"; + player.setBonus = this.GetLocalizedValue("SetBonus"); var modPlayer = player.Calamity(); modPlayer.fathomSwarmer = true; player.spikedBoots = 2; diff --git a/Items/Armor/Fearmonger/FearmongerGreathelm.cs b/Items/Armor/Fearmonger/FearmongerGreathelm.cs index 84d409fe42..61f4091029 100644 --- a/Items/Armor/Fearmonger/FearmongerGreathelm.cs +++ b/Items/Armor/Fearmonger/FearmongerGreathelm.cs @@ -41,12 +41,7 @@ namespace CalamityMod.Items.Armor.Fearmonger public override void UpdateArmorSet(Player player) { - player.setBonus = "20% increased minion damage and +2 max minions\n" + - "Minions no longer deal less damage while wielding non-summoner weapons\n" + - "Immunity to all forms of frost and flame\n" + - "All minion attacks grant colossal life regeneration\n" + - "15% increased damage reduction during the Pumpkin and Frost Moons\n" + - "This extra damage reduction ignores the soft cap"; + player.setBonus = this.GetLocalizedValue("SetBonus"); // This bool encompasses cross-class nerf immunity, colossal life regen on minion attack, and the holiday moon DR // TODO -- Fearmonger life regen from minion attacks needs some sort of cool visual effect diff --git a/Items/Armor/ForbiddenCirclet.cs b/Items/Armor/ForbiddenCirclet.cs index 25ef4c299e..8ee91cc844 100644 --- a/Items/Armor/ForbiddenCirclet.cs +++ b/Items/Armor/ForbiddenCirclet.cs @@ -39,11 +39,7 @@ namespace CalamityMod.Items.Armor { int stormMana = (int)(manaCost * player.manaCost); string hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString(); - player.setBonus = "+40 maximum stealth\n" + - "Press " + hotkey + " to call an ancient storm to the cursor location\n" + - "The ancient storm costs " + stormMana + " mana and benefits from both summon and rogue bonuses\n" + - "Rogue stealth strikes spawn homing eaters on enemy hits\n" + - "Rogue and summon attacks will scale off of the stat with a higher boost"; + player.setBonus = this.GetLocalization("SetBonus").WithFormatArgs(hotkey, stormMana).ToString(); CalamityPlayer modPlayer = player.Calamity(); modPlayer.forbiddenCirclet = true; modPlayer.rogueStealthMax += 0.4f; diff --git a/Items/Armor/GemTech/GemTechHeadgear.cs b/Items/Armor/GemTech/GemTechHeadgear.cs index e1f3699f3a..6c16b88d91 100644 --- a/Items/Armor/GemTech/GemTechHeadgear.cs +++ b/Items/Armor/GemTech/GemTechHeadgear.cs @@ -2,6 +2,7 @@ using CalamityMod.Rarities; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; +using System; using System.Collections.Generic; using System.Linq; using Terraria; @@ -77,7 +78,7 @@ namespace CalamityMod.Items.Armor.GemTech if (player.Calamity().GemTechState.IsRedGemActive) player.Calamity().rogueStealthMax += RogueStealthBoost * 0.01f; - player.setBonus = "Mucho Texto"; + player.setBonus = "Mucho Texto"; //Replaced below } public static void ModifySetTooltips(ModItem item, List tooltips) @@ -88,21 +89,16 @@ namespace CalamityMod.Items.Armor.GemTech if (setBonusIndex != -1) { - tooltips[setBonusIndex].Text = "Power Gems - Six gem fragments idly orbit you; one for each class, and a base gem"; - tooltips[setBonusIndex].OverrideColor = Color.Lerp(Color.White, Main.DiscoColor, 0.3f); - + tooltips[setBonusIndex].Text = CalamityUtils.GetTextValueFromModItem("AbilityBrief"); + tooltips[setBonusIndex].OverrideColor = Color.Lerp(Color.White, Main.DiscoColor, 0.3f); if (!Main.keyState.IsKeyDown(LeftShift)) { - TooltipLine briefDescription = new TooltipLine(item.Mod, "CalamityMod:SetBonus1", - "Each active gem provides a bonus for its respective class, while the defensive gem grants defensive boosts\n" + - "Powerful enemy hits will dislodge gems, launching them into the nearest enemy for huge damage\n" + - "Lost gems regenerate after a while\n" + - "The lost gem is the same class as the weapon you are using, so better prepare for some weapon switching action!"); + TooltipLine briefDescription = new TooltipLine(item.Mod, "CalamityMod:SetBonus1", CalamityUtils.GetTextValueFromModItem("AbilityDescription")); briefDescription.OverrideColor = Color.Lerp(Color.White, Main.DiscoColor, 0.5f); tooltips.Insert(setBonusIndex + 1, briefDescription); - TooltipLine itemDisplay = new TooltipLine(item.Mod, "CalamityMod:ExpandedDisplay", "Hold SHIFT to see an expanded description"); + TooltipLine itemDisplay = new TooltipLine(item.Mod, "CalamityMod:ExpandedDisplay", CalamityUtils.GetTextValue("Misc.ShiftToExpand")); itemDisplay.OverrideColor = new Color(190, 190, 190); tooltips.Add(itemDisplay); } @@ -110,48 +106,42 @@ namespace CalamityMod.Items.Armor.GemTech else { setBonusIndex++; - TooltipLine largerDescription = new TooltipLine(item.Mod, "CalamityMod:SetBonus1", - $"A gem is lost when you take more than { GemBreakDamageLowerBound } damage in a single hit. The type of gem lost is the same as the class of the previous when you used\n" + - "If said gem has already been lost, the base gem is lost instead\n" + - $"When a gem is lost, it breaks off and homes towards the nearest enemy or boss, if one is present, dealing a base of {GemDamage} damage\n" + - $"Gems have a {GemRegenTime / 60} second delay before they appear again"); + TooltipLine largerDescription = new TooltipLine(item.Mod, "CalamityMod:SetBonus1", CalamityUtils.GetTextFromModItem("GeneralGemInfo").WithFormatArgs(GemBreakDamageLowerBound, GemDamage, GemRegenTime / 60).ToString()); largerDescription.OverrideColor = Color.Lerp(Color.White, Main.DiscoColor, 0.5f); tooltips.Insert(setBonusIndex, largerDescription); setBonusIndex++; - TooltipLine redGemTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus2", "[i:" + ItemID.Ruby + "]" + $"The red gem grants { RogueStealthBoost } maximum stealth, increased rogue stats, and makes stealth only consumable by rogue weapons"); + TooltipLine redGemTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus2", CalamityUtils.GetTextFromModItem("RedGemInfo").WithFormatArgs(ItemID.Ruby, RogueStealthBoost).ToString()); redGemTooltip.OverrideColor = new Color(224, 24, 0); tooltips.Insert(setBonusIndex, redGemTooltip); setBonusIndex++; - TooltipLine yellowGemTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus3", "[i:" + ItemID.Topaz + "]" + $"The yellow gem provides increased melee stats and makes melee attacks release shards on hit with a cooldown. This cooldown is shorter for true melee attacks"); + TooltipLine yellowGemTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus3", CalamityUtils.GetTextFromModItem("YellowGemInfo").WithFormatArgs(ItemID.Topaz).ToString()); yellowGemTooltip.OverrideColor = new Color(237, 170, 43); tooltips.Insert(setBonusIndex, yellowGemTooltip); setBonusIndex++; - TooltipLine greenGemTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus4", "[i:" + ItemID.Emerald + "]" + $"The green gem provides increased ranged stats and causes flechettes to fly swiftly towards targets when they are damaged by a ranged projectile"); + TooltipLine greenGemTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus4", CalamityUtils.GetTextFromModItem("GreenGemInfo").WithFormatArgs(ItemID.Emerald).ToString()); greenGemTooltip.OverrideColor = new Color(37, 188, 108); tooltips.Insert(setBonusIndex, greenGemTooltip); setBonusIndex++; - TooltipLine blueGemTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus5", "[i:" + ItemID.Sapphire + "]" + $"The blue gem grants {SummonMinionCountBoost} extra maximum minions, increased minion damage, and negates the minion damage penalty while wielding non-summoner weapons"); + TooltipLine blueGemTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus5", CalamityUtils.GetTextFromModItem("BlueGemInfo").WithFormatArgs(ItemID.Sapphire, SummonMinionCountBoost).ToString()); blueGemTooltip.OverrideColor = new Color(37, 119, 206); tooltips.Insert(setBonusIndex, blueGemTooltip); setBonusIndex++; - TooltipLine purpleGemTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus6", "[i:" + ItemID.Amethyst + "]" + $"The violet gem grants {MagicManaBoost} extra maximum mana, increased magic stats, and makes mana rapidly regenerate when holding a non-magic weapon"); + TooltipLine purpleGemTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus6", CalamityUtils.GetTextFromModItem("PurpleGemInfo").WithFormatArgs(ItemID.Amethyst, MagicManaBoost).ToString()); purpleGemTooltip.OverrideColor = new Color(200, 58, 209); tooltips.Insert(setBonusIndex, purpleGemTooltip); setBonusIndex++; - TooltipLine pinkGemTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus7", "[i:" + ItemID.Diamond + "]" + $"The pink base gem grants {BaseGemDefenseBoost} extra defense, extra damage reduction, increased movement speed, jump speed, and +{BaseGemLifeRegenBoost} life regen"); + TooltipLine pinkGemTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus7", CalamityUtils.GetTextFromModItem("PinkGemInfo").WithFormatArgs(ItemID.Diamond, BaseGemDefenseBoost, BaseGemLifeRegenBoost).ToString()); pinkGemTooltip.OverrideColor = new Color(255, 115, 206); tooltips.Insert(setBonusIndex, pinkGemTooltip); setBonusIndex++; - TooltipLine liferegenTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus8", - $"When all gems exist simultaneously, hitting a target with any weapon grants you +{AllGemsWeaponUseLifeRegenBoost} life regen for {AllGemsLifeRegenBoostTime / 60} seconds\n" + - $"This is increased to +{AllGemsMultiWeaponUseLifeRegenBoost} life regen if a weapon of another class is used during that {AllGemsLifeRegenBoostTime / 60} second period for {AllGemsMultiWeaponLifeRegenBoostTime / 60f} seconds"); + TooltipLine liferegenTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus8", CalamityUtils.GetTextFromModItem("GemBonusInfo").WithFormatArgs(AllGemsWeaponUseLifeRegenBoost, AllGemsLifeRegenBoostTime / 60, AllGemsMultiWeaponUseLifeRegenBoost, AllGemsMultiWeaponLifeRegenBoostTime / 60f).ToString()); liferegenTooltip.OverrideColor = new Color(230, 230, 230); tooltips.Insert(setBonusIndex, liferegenTooltip); } diff --git a/Items/Armor/GodSlayer/GodSlayerHeadMelee.cs b/Items/Armor/GodSlayer/GodSlayerHeadMelee.cs index 27bdb563cd..8914d7da96 100644 --- a/Items/Armor/GodSlayer/GodSlayerHeadMelee.cs +++ b/Items/Armor/GodSlayer/GodSlayerHeadMelee.cs @@ -38,15 +38,7 @@ namespace CalamityMod.Items.Armor.GodSlayer modPlayer.godSlayer = true; modPlayer.godSlayerDamage = true; var hotkey = CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString(); - player.setBonus = "Allows you to dash for an immense distance in 8 directions\n" + - "Press " + hotkey + " while holding down the movement keys in the direction you want to dash\n" + - "Enemies you dash through take massive damage\n" + - "During the dash you are immune to most debuffs\n" + - "The dash has a " + GodslayerArmorDash.GodslayerCooldown + " second cooldown\n" + - "Enemies are more likely to target you\n" + - "Taking over 80 damage in one hit will cause you to release a swarm of high-damage god killer darts\n" + - "Enemies take a lot of damage when they hit you\n" + - "An attack that would deal 80 damage or less will have its damage reduced to 1"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextFromModItem("CommonSetBonus").WithFormatArgs(hotkey, GodslayerArmorDash.GodslayerCooldown).ToString(); player.thorns += 2.5f; player.aggro += 1000; diff --git a/Items/Armor/GodSlayer/GodSlayerHeadRanged.cs b/Items/Armor/GodSlayer/GodSlayerHeadRanged.cs index 7f17786878..33a5922779 100644 --- a/Items/Armor/GodSlayer/GodSlayerHeadRanged.cs +++ b/Items/Armor/GodSlayer/GodSlayerHeadRanged.cs @@ -38,12 +38,7 @@ namespace CalamityMod.Items.Armor.GodSlayer modPlayer.godSlayer = true; modPlayer.godSlayerRanged = true; var hotkey = CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString(); - player.setBonus = "Allows you to dash for an immense distance in 8 directions\n" + - "Press " + hotkey + " while holding down the movement keys in the direction you want to dash\n" + - "Enemies you dash through take massive damage\n" + - "During the dash you are immune to most debuffs\n" + - "The dash has a " + GodslayerArmorDash.GodslayerCooldown + " second cooldown\n" + - "You fire a god killer shrapnel round while firing ranged weapons every 2.5 seconds"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextFromModItem("CommonSetBonus").WithFormatArgs(hotkey, GodslayerArmorDash.GodslayerCooldown).ToString(); if (modPlayer.godSlayerDashHotKeyPressed || (player.dashDelay != 0 && modPlayer.LastUsedDashID == GodslayerArmorDash.ID)) { diff --git a/Items/Armor/GodSlayer/GodSlayerHeadRogue.cs b/Items/Armor/GodSlayer/GodSlayerHeadRogue.cs index de35e2ff58..f50c93d10a 100644 --- a/Items/Armor/GodSlayer/GodSlayerHeadRogue.cs +++ b/Items/Armor/GodSlayer/GodSlayerHeadRogue.cs @@ -40,14 +40,7 @@ namespace CalamityMod.Items.Armor.GodSlayer modPlayer.rogueStealthMax += 1.2f; modPlayer.wearingRogueArmor = true; var hotkey = CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString(); - player.setBonus = "Allows you to dash for an immense distance in 8 directions\n" + - "Press " + hotkey + " while holding down the movement keys in the direction you want to dash\n" + - "Enemies you dash through take massive damage\n" + - "During the dash you are immune to most debuffs\n" + - "The dash has a " + GodslayerArmorDash.GodslayerCooldown + " second cooldown\n" + - "+120 maximum stealth\n" + - "While at full HP all of your rogue stats are boosted by 10%\n" + - "If you take over 80 damage in one hit you will be given extra immunity frames"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextFromModItem("CommonSetBonus").WithFormatArgs(hotkey, GodslayerArmorDash.GodslayerCooldown).ToString(); if (modPlayer.godSlayerDashHotKeyPressed || (player.dashDelay != 0 && modPlayer.LastUsedDashID == GodslayerArmorDash.ID)) { diff --git a/Items/Armor/Hydrothermic/HydrothermicHeadMagic.cs b/Items/Armor/Hydrothermic/HydrothermicHeadMagic.cs index 5998d3bf97..d4d495576a 100644 --- a/Items/Armor/Hydrothermic/HydrothermicHeadMagic.cs +++ b/Items/Armor/Hydrothermic/HydrothermicHeadMagic.cs @@ -33,10 +33,7 @@ namespace CalamityMod.Items.Armor.Hydrothermic public override void UpdateArmorSet(Player player) { - player.setBonus = "5% increased magic damage and 15% reduced mana usage\n" + - "Inferno effect when below 50% life\n" + - "Magic attacks summon damaging and healing flare orbs on hit\n" + - "You emit a blazing explosion when you are hit"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); var modPlayer = player.Calamity(); modPlayer.ataxiaBlaze = true; modPlayer.ataxiaMage = true; diff --git a/Items/Armor/Hydrothermic/HydrothermicHeadMelee.cs b/Items/Armor/Hydrothermic/HydrothermicHeadMelee.cs index 4a5a594cd8..6200b4da62 100644 --- a/Items/Armor/Hydrothermic/HydrothermicHeadMelee.cs +++ b/Items/Armor/Hydrothermic/HydrothermicHeadMelee.cs @@ -34,11 +34,7 @@ namespace CalamityMod.Items.Armor.Hydrothermic public override void UpdateArmorSet(Player player) { - player.setBonus = "5% increased melee damage\n" + - "Enemies are more likely to target you\n" + - "Inferno effect when below 50% life\n" + - "Melee attacks and projectiles cause chaos flames to erupt on enemy hits\n" + - "You emit a blazing explosion when you are hit"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); var modPlayer = player.Calamity(); modPlayer.ataxiaBlaze = true; modPlayer.ataxiaGeyser = true; diff --git a/Items/Armor/Hydrothermic/HydrothermicHeadRanged.cs b/Items/Armor/Hydrothermic/HydrothermicHeadRanged.cs index e7788aec13..02ab1549f8 100644 --- a/Items/Armor/Hydrothermic/HydrothermicHeadRanged.cs +++ b/Items/Armor/Hydrothermic/HydrothermicHeadRanged.cs @@ -33,10 +33,7 @@ namespace CalamityMod.Items.Armor.Hydrothermic public override void UpdateArmorSet(Player player) { - player.setBonus = "5% increased ranged damage\n" + - "Inferno effect when below 50% life\n" + - "You fire a homing chaos flare when using ranged weapons every 0.33 seconds\n" + - "You emit a blazing explosion when you are hit"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); var modPlayer = player.Calamity(); modPlayer.ataxiaBlaze = true; modPlayer.ataxiaBolt = true; diff --git a/Items/Armor/Hydrothermic/HydrothermicHeadRogue.cs b/Items/Armor/Hydrothermic/HydrothermicHeadRogue.cs index d41e0da9b1..cc88018fc7 100644 --- a/Items/Armor/Hydrothermic/HydrothermicHeadRogue.cs +++ b/Items/Armor/Hydrothermic/HydrothermicHeadRogue.cs @@ -33,11 +33,7 @@ namespace CalamityMod.Items.Armor.Hydrothermic public override void UpdateArmorSet(Player player) { - player.setBonus = "5% increased rogue damage\n" + - "+110 maximum stealth\n" + - "Inferno effect when below 50% life\n" + - "Rogue weapons unleash a volley of homing chaos flames around the player every 2.5 seconds\n" + - "You emit a blazing explosion when you are hit"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); var modPlayer = player.Calamity(); modPlayer.ataxiaBlaze = true; modPlayer.ataxiaVolley = true; diff --git a/Items/Armor/Hydrothermic/HydrothermicHeadSummon.cs b/Items/Armor/Hydrothermic/HydrothermicHeadSummon.cs index 7643bfd8d4..a392bb7b0d 100644 --- a/Items/Armor/Hydrothermic/HydrothermicHeadSummon.cs +++ b/Items/Armor/Hydrothermic/HydrothermicHeadSummon.cs @@ -35,10 +35,7 @@ namespace CalamityMod.Items.Armor.Hydrothermic public override void UpdateArmorSet(Player player) { - player.setBonus = "40% increased minion damage and +2 max minions\n" + - "Inferno effect when below 50% life\n" + - "Summons a hydrothermic vent to protect you\n" + - "You emit a blazing explosion when you are hit"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); var modPlayer = player.Calamity(); modPlayer.ataxiaBlaze = true; modPlayer.chaosSpirit = true; diff --git a/Items/Armor/MarniteArchitect/MarniteArchitectSet.cs b/Items/Armor/MarniteArchitect/MarniteArchitectSet.cs index 93f268659a..d342da0e54 100644 --- a/Items/Armor/MarniteArchitect/MarniteArchitectSet.cs +++ b/Items/Armor/MarniteArchitect/MarniteArchitectSet.cs @@ -94,7 +94,7 @@ namespace CalamityMod.Items.Armor.MarniteArchitect public override void UpdateArmorSet(Player player) { - player.setBonus = "Marnite Lift"; + player.setBonus = "Marnite Lift"; //Replaced below player.GetModPlayer().setEquipped = true; } @@ -116,17 +116,12 @@ namespace CalamityMod.Items.Armor.MarniteArchitect if (setBonusIndex != -1) { - TooltipLine setBonus1 = new TooltipLine(item.Mod, "CalamityMod:SetBonus1", "Marnite Lift - You can summon a lift under your feet to reach higher up"); - setBonus1.OverrideColor = Color.Lerp(new Color(255, 243, 161), new Color(137, 162, 255), 0.5f + 0.5f * (float)Math.Sin(Main.GlobalTimeWrappedHourly * 3f)); - tooltips[setBonusIndex] = setBonus1; + tooltips[setBonusIndex].Text = CalamityUtils.GetTextValueFromModItem("AbilityBrief"); + tooltips[setBonusIndex].OverrideColor = Color.Lerp(new Color(255, 243, 161), new Color(137, 162, 255), 0.5f + 0.5f * (float)Math.Sin(Main.GlobalTimeWrappedHourly * 3f)); - TooltipLine setBonus2 = new TooltipLine(item.Mod, "CalamityMod:SetBonus2", "The lift gets summoned when the mount hotkey gets pressed [c/D4C870:without any mounts equipped]"); - setBonus2.OverrideColor = new Color(145, 197, 239); - tooltips.Insert(setBonusIndex + 1, setBonus2); - - TooltipLine setBonus3 = new TooltipLine(item.Mod, "CalamityMod:SetBonus3", "Using the Up and Down keys can change the lift's height"); - setBonus3.OverrideColor = new Color(145, 197, 239); - tooltips.Insert(setBonusIndex + 2, setBonus3); + TooltipLine setBonus1 = new TooltipLine(item.Mod, "CalamityMod:SetBonus1", CalamityUtils.GetTextValueFromModItem("AbilityDescription")); + setBonus1.OverrideColor = new Color(145, 197, 239); + tooltips.Insert(setBonusIndex + 1, setBonus1); } } diff --git a/Items/Armor/Mollusk/MolluskShellmet.cs b/Items/Armor/Mollusk/MolluskShellmet.cs index ef7f77ceb7..08e48e47cd 100644 --- a/Items/Armor/Mollusk/MolluskShellmet.cs +++ b/Items/Armor/Mollusk/MolluskShellmet.cs @@ -37,9 +37,7 @@ namespace CalamityMod.Items.Armor.Mollusk public override void UpdateArmorSet(Player player) { - player.setBonus = "Two shellfishes aid you in combat\n" + - "10% increased damage\n" + - "Your horizontal movement is slowed"; + player.setBonus = this.GetLocalizedValue("SetBonus"); var modPlayer = player.Calamity(); player.GetDamage() += 0.1f; modPlayer.molluskSet = true; diff --git a/Items/Armor/OmegaBlue/OmegaBlueHelmet.cs b/Items/Armor/OmegaBlue/OmegaBlueHelmet.cs index 902afe197f..2e121810aa 100644 --- a/Items/Armor/OmegaBlue/OmegaBlueHelmet.cs +++ b/Items/Armor/OmegaBlue/OmegaBlueHelmet.cs @@ -66,12 +66,7 @@ namespace CalamityMod.Items.Armor.OmegaBlue public override void UpdateArmorSet(Player player) { var hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString(); - player.setBonus = "Increases armor penetration by 15\n" + - "10% increased damage and critical strike chance and +2 max minions\n" + - "Short-ranged tentacles heal you by sucking enemy life\n" + - "Press " + hotkey + " to activate abyssal madness for 5 seconds\n" + - "Abyssal madness increases damage, critical strike chance, and tentacle aggression/range\n" + - "This effect has a 25 second cooldown"; + player.setBonus = this.GetLocalization("SetBonus").WithFormatArgs(hotkey).ToString(); var mp = player.Calamity(); player.GetArmorPenetration() += 15; diff --git a/Items/Armor/PlagueReaper/PlagueReaperMask.cs b/Items/Armor/PlagueReaper/PlagueReaperMask.cs index 72aefaf177..8438660bb3 100644 --- a/Items/Armor/PlagueReaper/PlagueReaperMask.cs +++ b/Items/Armor/PlagueReaper/PlagueReaperMask.cs @@ -37,16 +37,11 @@ namespace CalamityMod.Items.Armor.PlagueReaper public override void UpdateArmorSet(Player player) { var hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString(); - player.setBonus = "25% reduced ammo usage and 5% increased flight time\n" + - "Enemies receive 10% more damage from ranged projectiles when afflicted by the Plague\n" + - "Getting hit causes plague cinders to rain from above\n" + - "Press " + hotkey + " to blind yourself for 5 seconds but massively boost your ranged damage\n" + - "This has a 25 second cooldown."; + player.setBonus = this.GetLocalization("SetBonus").WithFormatArgs(hotkey).ToString(); var modPlayer = player.Calamity(); modPlayer.plagueReaper = true; player.ammoCost75 = true; - var hasPlagueBlackoutCD = modPlayer.cooldowns.TryGetValue(PlagueBlackout.ID, out var cd); if (hasPlagueBlackoutCD && cd.timeLeft > 1500) { diff --git a/Items/Armor/Plaguebringer/PlaguebringerVisor.cs b/Items/Armor/Plaguebringer/PlaguebringerVisor.cs index be1d062321..48629edf23 100644 --- a/Items/Armor/Plaguebringer/PlaguebringerVisor.cs +++ b/Items/Armor/Plaguebringer/PlaguebringerVisor.cs @@ -42,9 +42,7 @@ namespace CalamityMod.Items.Armor.Plaguebringer public override void UpdateArmorSet(Player player) { - player.setBonus = "Grants a plague dash to ram enemies and afflict them with the plague\n" + - "Summons a lil' plaguebringer to protect you and empower nearby minions\n" + - "+3 max minions"; + player.setBonus = this.GetLocalizedValue("SetBonus"); player.Calamity().plaguebringerPatronSet = true; player.Calamity().DashID = PlaguebringerArmorDash.ID; diff --git a/Items/Armor/Prismatic/PrismaticHelmet.cs b/Items/Armor/Prismatic/PrismaticHelmet.cs index 9316128dd5..c64f2c50e5 100644 --- a/Items/Armor/Prismatic/PrismaticHelmet.cs +++ b/Items/Armor/Prismatic/PrismaticHelmet.cs @@ -40,10 +40,7 @@ namespace CalamityMod.Items.Armor.Prismatic player.manaCost *= 0.85f; player.manaRegenBonus += 8; var hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString(); - player.setBonus = "+40 max mana and 15% reduced mana cost\n" + - "Increased mana regeneration rate\n" + - "Press " + hotkey + " to unleash a barrage of death lasers at the cursor for the next 5 seconds\n" + - "This has a 30 second cooldown"; + player.setBonus = this.GetLocalization("SetBonus").WithFormatArgs(hotkey).ToString(); } public override void UpdateEquip(Player player) diff --git a/Items/Armor/Reaver/ReaverHeadExplore.cs b/Items/Armor/Reaver/ReaverHeadExplore.cs index 9ed96901e4..bb67093e5b 100644 --- a/Items/Armor/Reaver/ReaverHeadExplore.cs +++ b/Items/Armor/Reaver/ReaverHeadExplore.cs @@ -36,12 +36,7 @@ namespace CalamityMod.Items.Armor.Reaver public override void UpdateArmorSet(Player player) { - player.setBonus = "Highlights all treasure nearby\n" + - "Increased item grab range and block placement range\n" + - "Mining tiles restores breath while underwater\n" + - "Summons a reaver orb to light up the area around you\n" + - "Reduces enemy aggression, even in the abyss\n" + - "Provides a small amount of light in the abyss"; + player.setBonus = this.GetLocalizedValue("SetBonus"); var modPlayer = player.Calamity(); modPlayer.reaverExplore = true; modPlayer.wearingRogueArmor = true; diff --git a/Items/Armor/Reaver/ReaverHeadMobility.cs b/Items/Armor/Reaver/ReaverHeadMobility.cs index 0db6139d41..5ae977cc60 100644 --- a/Items/Armor/Reaver/ReaverHeadMobility.cs +++ b/Items/Armor/Reaver/ReaverHeadMobility.cs @@ -37,10 +37,7 @@ namespace CalamityMod.Items.Armor.Reaver var modPlayer = player.Calamity(); modPlayer.reaverSpeed = true; modPlayer.wearingRogueArmor = true; - player.setBonus = "Grants immunity to fall damage and allows constant jumping\n" + - "10% increased flight time and horizontal wing speed\n" + - "Hooks fly out and retract 10% faster\n" + - "Reduces the cooldown of dashes"; + player.setBonus = this.GetLocalizedValue("SetBonus"); player.noFallDmg = true; player.autoJump = true; if (player.miscCounter % 3 == 2 && player.dashDelay > 0) diff --git a/Items/Armor/Reaver/ReaverHeadTank.cs b/Items/Armor/Reaver/ReaverHeadTank.cs index bb0347859c..d4e8eed064 100644 --- a/Items/Armor/Reaver/ReaverHeadTank.cs +++ b/Items/Armor/Reaver/ReaverHeadTank.cs @@ -42,13 +42,7 @@ namespace CalamityMod.Items.Armor.Reaver player.aggro += 600; modPlayer.reaverDefense = true; modPlayer.wearingRogueArmor = true; - player.setBonus = "+10 defense and +3 life regen\n" + - "Enemies are more likely to target you\n" + - "Reduces the life regen lost from damage over time debuffs by 20%\n" + - "All attacks have a small chance to steal life and speed up the rate of life regen\n" + - "20% decreased movement speed and flight time\n" + - "Enemy damage is reflected and summons a thorn spike\n" + - "Reaver Rage has a 25% chance to activate when you are damaged"; + player.setBonus = this.GetLocalizedValue("SetBonus"); //Reaver Rage provides 30% damage to offset the helm "bonus", 5 def, and 5% melee speed. } diff --git a/Items/Armor/Silva/SilvaHeadMagic.cs b/Items/Armor/Silva/SilvaHeadMagic.cs index af804e4ee0..249483a7c4 100644 --- a/Items/Armor/Silva/SilvaHeadMagic.cs +++ b/Items/Armor/Silva/SilvaHeadMagic.cs @@ -38,11 +38,7 @@ namespace CalamityMod.Items.Armor.Silva var modPlayer = player.Calamity(); modPlayer.silvaSet = true; modPlayer.silvaMage = true; - player.setBonus = "All projectiles spawn healing leaf orbs on enemy hits\n" + - "Max run speed and acceleration boosted by 5%\n" + - "If you are reduced to 1 HP you will not die from any further damage for 8 seconds\n" + - "This effect has a 5 minute cooldown. The cooldown does not decrement if any bosses or events are active.\n" + - "Magic projectiles which cannot pierce will occasionally set off potent blasts of nature energy"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); } public override void UpdateEquip(Player player) diff --git a/Items/Armor/Silva/SilvaHeadSummon.cs b/Items/Armor/Silva/SilvaHeadSummon.cs index c06512889a..9e5b31111e 100644 --- a/Items/Armor/Silva/SilvaHeadSummon.cs +++ b/Items/Armor/Silva/SilvaHeadSummon.cs @@ -45,12 +45,7 @@ namespace CalamityMod.Items.Armor.Silva modPlayer.silvaSet = true; modPlayer.silvaSummon = true; modPlayer.WearingPostMLSummonerSet = true; - player.setBonus = "65% increased minion damage and +5 max minions\n" + - "All projectiles spawn healing leaf orbs on enemy hits\n" + - "Max run speed and acceleration boosted by 5%\n" + - "If you are reduced to 1 HP you will not die from any further damage for 8 seconds\n" + - "This effect has a 5 minute cooldown. The cooldown does not decrement if any bosses or events are active.\n" + - "Summons an ancient leaf prism to blast your enemies with life energy"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); if (player.whoAmI == Main.myPlayer) { var source = player.GetSource_ItemUse(Item); diff --git a/Items/Armor/SnowRuffian/SnowRuffianMask.cs b/Items/Armor/SnowRuffian/SnowRuffianMask.cs index d24496ac4d..c11953eef2 100644 --- a/Items/Armor/SnowRuffian/SnowRuffianMask.cs +++ b/Items/Armor/SnowRuffian/SnowRuffianMask.cs @@ -39,9 +39,7 @@ namespace CalamityMod.Items.Armor.SnowRuffian var modPlayer = player.Calamity(); modPlayer.snowRuffianSet = true; modPlayer.rogueStealthMax += 0.5f; - player.setBonus = "5% increased rogue damage\n" + - "+50 maximum stealth\n" + - "You can glide to negate fall damage"; + player.setBonus = this.GetLocalizedValue("SetBonus"); player.GetDamage() += 0.05f; player.Calamity().wearingRogueArmor = true; diff --git a/Items/Armor/Statigel/StatigelHeadMagic.cs b/Items/Armor/Statigel/StatigelHeadMagic.cs index 934aa91544..9cc2f25378 100644 --- a/Items/Armor/Statigel/StatigelHeadMagic.cs +++ b/Items/Armor/Statigel/StatigelHeadMagic.cs @@ -28,9 +28,7 @@ namespace CalamityMod.Items.Armor.Statigel public override void UpdateArmorSet(Player player) { - player.setBonus = "When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" + - "Grants an extra jump and increased jump height\n" + - "12% increased jump speed"; + player.setBonus = CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); var modPlayer = player.Calamity(); modPlayer.statigelSet = true; modPlayer.statigelJump = true; diff --git a/Items/Armor/Statigel/StatigelHeadMelee.cs b/Items/Armor/Statigel/StatigelHeadMelee.cs index 873fe9da55..acd1a28d60 100644 --- a/Items/Armor/Statigel/StatigelHeadMelee.cs +++ b/Items/Armor/Statigel/StatigelHeadMelee.cs @@ -28,10 +28,7 @@ namespace CalamityMod.Items.Armor.Statigel public override void UpdateArmorSet(Player player) { - player.setBonus = "Enemies are more likely to target you\n" + - "When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" + - "Grants an extra jump and increased jump height\n" + - "12% increased jump speed"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); var modPlayer = player.Calamity(); modPlayer.statigelSet = true; modPlayer.statigelJump = true; diff --git a/Items/Armor/Statigel/StatigelHeadRanged.cs b/Items/Armor/Statigel/StatigelHeadRanged.cs index 4066be9a16..a5b09ab939 100644 --- a/Items/Armor/Statigel/StatigelHeadRanged.cs +++ b/Items/Armor/Statigel/StatigelHeadRanged.cs @@ -28,9 +28,7 @@ namespace CalamityMod.Items.Armor.Statigel public override void UpdateArmorSet(Player player) { - player.setBonus = "When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" + - "Grants an extra jump and increased jump height\n" + - "12% increased jump speed"; + player.setBonus = CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); var modPlayer = player.Calamity(); modPlayer.statigelSet = true; modPlayer.statigelJump = true; diff --git a/Items/Armor/Statigel/StatigelHeadRogue.cs b/Items/Armor/Statigel/StatigelHeadRogue.cs index f5ba9fb107..49603e828e 100644 --- a/Items/Armor/Statigel/StatigelHeadRogue.cs +++ b/Items/Armor/Statigel/StatigelHeadRogue.cs @@ -28,10 +28,7 @@ namespace CalamityMod.Items.Armor.Statigel public override void UpdateArmorSet(Player player) { - player.setBonus = "When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" + - "Grants an extra jump and increased jump height\n" + - "12% increased jump speed\n" + - "+90 maximum stealth"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); var modPlayer = player.Calamity(); modPlayer.statigelSet = true; modPlayer.statigelJump = true; diff --git a/Items/Armor/Statigel/StatigelHeadSummon.cs b/Items/Armor/Statigel/StatigelHeadSummon.cs index 972aa4dc3f..1ecc128a5c 100644 --- a/Items/Armor/Statigel/StatigelHeadSummon.cs +++ b/Items/Armor/Statigel/StatigelHeadSummon.cs @@ -31,11 +31,7 @@ namespace CalamityMod.Items.Armor.Statigel public override void UpdateArmorSet(Player player) { - player.setBonus = "18% increased minion damage and +1 max minion\n" + - "Summons a mini slime god to fight for you, the type depends on what world evil you have\n" + - "When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" + - "Grants an extra jump and increased jump height\n" + - "12% increased jump speed"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); var modPlayer = player.Calamity(); modPlayer.statigelSet = true; modPlayer.slimeGod = true; diff --git a/Items/Armor/Sulphurous/SulphurousHelmet.cs b/Items/Armor/Sulphurous/SulphurousHelmet.cs index 42447e1dcc..b4b39a2ca6 100644 --- a/Items/Armor/Sulphurous/SulphurousHelmet.cs +++ b/Items/Armor/Sulphurous/SulphurousHelmet.cs @@ -28,10 +28,7 @@ namespace CalamityMod.Items.Armor.Sulphurous public override void UpdateArmorSet(Player player) { - player.setBonus = "+70 maximum stealth\n" + - "Attacking and being attacked by enemies inflicts poison\n" + - "Grants an additional jump that summons a sulphurous bubble\n" + - "Provides increased underwater mobility and reduces the severity of the sulphuric waters"; + player.setBonus = this.GetLocalizedValue("SetBonus"); var modPlayer = player.Calamity(); modPlayer.sulfurSet = true; modPlayer.sulfurJump = true; diff --git a/Items/Armor/Tarragon/TarragonHeadMagic.cs b/Items/Armor/Tarragon/TarragonHeadMagic.cs index de3b1b81ba..38ad105e8d 100644 --- a/Items/Armor/Tarragon/TarragonHeadMagic.cs +++ b/Items/Armor/Tarragon/TarragonHeadMagic.cs @@ -37,12 +37,7 @@ namespace CalamityMod.Items.Armor.Tarragon var modPlayer = player.Calamity(); modPlayer.tarraSet = true; modPlayer.tarraMage = true; - player.setBonus = "Reduces enemy spawn rates\n" + - "Increased heart pickup range\n" + - "Enemies have a chance to drop extra hearts on death\n" + - "On every 5th critical strike you will fire a leaf storm\n" + - "Magic projectiles heal you on enemy hits\n" + - "Amount healed is based on projectile damage"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); } public override void UpdateEquip(Player player) diff --git a/Items/Armor/Tarragon/TarragonHeadMelee.cs b/Items/Armor/Tarragon/TarragonHeadMelee.cs index fed18e0c73..0f3c3426ff 100644 --- a/Items/Armor/Tarragon/TarragonHeadMelee.cs +++ b/Items/Armor/Tarragon/TarragonHeadMelee.cs @@ -39,12 +39,7 @@ namespace CalamityMod.Items.Armor.Tarragon modPlayer.tarraMelee = true; player.aggro += 800; var hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString(); - player.setBonus = "Increased heart pickup range\n" + - "Enemies have a chance to drop extra hearts on death\n" + - "Enemies are more likely to target you\n" + - "You have a 25% chance to gain a life regen buff when you take damage\n" + - "Press " + hotkey + " to cloak yourself in life energy that heavily reduces enemy contact damage for 10 seconds\n" + - "This has a 30 second cooldown"; + player.setBonus = this.GetLocalization("SetBonus").WithFormatArgs(hotkey).ToString() + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); } public override void UpdateEquip(Player player) diff --git a/Items/Armor/Tarragon/TarragonHeadRanged.cs b/Items/Armor/Tarragon/TarragonHeadRanged.cs index c050586919..23faee24f2 100644 --- a/Items/Armor/Tarragon/TarragonHeadRanged.cs +++ b/Items/Armor/Tarragon/TarragonHeadRanged.cs @@ -37,10 +37,7 @@ namespace CalamityMod.Items.Armor.Tarragon var modPlayer = player.Calamity(); modPlayer.tarraSet = true; modPlayer.tarraRanged = true; - player.setBonus = "Reduces enemy spawn rates\n" + - "Increased heart pickup range\n" + - "Enemies have a chance to drop extra hearts on death\n" + - "Ranged projectiles split into homing life energy and leaves on death"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); } public override void UpdateEquip(Player player) diff --git a/Items/Armor/Tarragon/TarragonHeadRogue.cs b/Items/Armor/Tarragon/TarragonHeadRogue.cs index 4d9aae85e6..6141a20d97 100644 --- a/Items/Armor/Tarragon/TarragonHeadRogue.cs +++ b/Items/Armor/Tarragon/TarragonHeadRogue.cs @@ -39,13 +39,7 @@ namespace CalamityMod.Items.Armor.Tarragon modPlayer.tarraThrowing = true; modPlayer.rogueStealthMax += 1.15f; modPlayer.wearingRogueArmor = true; - player.setBonus = "Reduces enemy spawn rates\n" + - "Increased heart pickup range\n" + - "Enemies have a chance to drop extra hearts on death\n" + - "+115 maximum stealth\n" + - "After every 25 rogue critical hits you will gain 3 seconds of damage immunity\n" + - "This effect can only occur once every 30 seconds\n" + - "While under the effects of a debuff you gain 10% increased rogue damage"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); } public override void UpdateEquip(Player player) diff --git a/Items/Armor/Tarragon/TarragonHeadSummon.cs b/Items/Armor/Tarragon/TarragonHeadSummon.cs index 03b1a473da..7bcd10cc8c 100644 --- a/Items/Armor/Tarragon/TarragonHeadSummon.cs +++ b/Items/Armor/Tarragon/TarragonHeadSummon.cs @@ -38,11 +38,7 @@ namespace CalamityMod.Items.Armor.Tarragon modPlayer.tarraSet = true; modPlayer.tarraSummon = true; modPlayer.WearingPostMLSummonerSet = true; - player.setBonus = "50% increased minion damage and +3 max minions\n" + - "Reduces enemy spawn rates\n" + - "Increased heart pickup range\n" + - "Enemies have a chance to drop extra hearts on death\n" + - "Summons a life aura around you that damages nearby enemies"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); player.GetDamage() += 0.5f; player.maxMinions += 3; } diff --git a/Items/Armor/TitanHeart/TitanHeartMask.cs b/Items/Armor/TitanHeart/TitanHeartMask.cs index e6d5ace573..850e1feb01 100644 --- a/Items/Armor/TitanHeart/TitanHeartMask.cs +++ b/Items/Armor/TitanHeart/TitanHeartMask.cs @@ -27,10 +27,7 @@ namespace CalamityMod.Items.Armor.TitanHeart public override void UpdateArmorSet(Player player) { - player.setBonus = "15% increased rogue damage and knockback\n" + - "+100 maximum stealth\n" + - "Stealth strikes deal double knockback and cause an astral explosion\n" + - "Grants immunity to knockback"; + player.setBonus = this.GetLocalizedValue("SetBonus"); var modPlayer = player.Calamity(); modPlayer.titanHeartSet = true; player.GetDamage() += 0.15f; diff --git a/Items/Armor/Umbraphile/UmbraphileHood.cs b/Items/Armor/Umbraphile/UmbraphileHood.cs index d8a46fa190..d9722652e7 100644 --- a/Items/Armor/Umbraphile/UmbraphileHood.cs +++ b/Items/Armor/Umbraphile/UmbraphileHood.cs @@ -34,9 +34,7 @@ namespace CalamityMod.Items.Armor.Umbraphile var modPlayer = player.Calamity(); modPlayer.umbraphileSet = true; modPlayer.rogueStealthMax += 1.1f; - player.setBonus = "+110 maximum stealth\n" + - "Rogue weapons have a chance to create explosions on hit\n" + - "Stealth strikes always create an explosion"; + player.setBonus = this.GetLocalizedValue("SetBonus"); player.Calamity().wearingRogueArmor = true; } diff --git a/Items/Armor/Victide/VictideHeadMagic.cs b/Items/Armor/Victide/VictideHeadMagic.cs index 2e1fa1f503..b70520e07e 100644 --- a/Items/Armor/Victide/VictideHeadMagic.cs +++ b/Items/Armor/Victide/VictideHeadMagic.cs @@ -27,10 +27,7 @@ namespace CalamityMod.Items.Armor.Victide public override void UpdateArmorSet(Player player) { - player.setBonus = "+3 life regen and 10% increased magic damage while submerged in liquid\n" + - "When using any weapon you have a 10% chance to throw a returning seashell projectile\n" + - "This seashell does true damage and does not benefit from any damage class\n" + - "Provides increased underwater mobility and slightly reduces breath loss in the abyss"; + player.setBonus = CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); var modPlayer = player.Calamity(); modPlayer.victideSet = true; player.ignoreWater = true; diff --git a/Items/Armor/Victide/VictideHeadMelee.cs b/Items/Armor/Victide/VictideHeadMelee.cs index 0f05137152..b88b84eaea 100644 --- a/Items/Armor/Victide/VictideHeadMelee.cs +++ b/Items/Armor/Victide/VictideHeadMelee.cs @@ -27,11 +27,7 @@ namespace CalamityMod.Items.Armor.Victide public override void UpdateArmorSet(Player player) { - player.setBonus = "Enemies are more likely to target you\n" + - "+3 life regen and 10% increased melee damage while submerged in liquid\n" + - "When using any weapon you have a 10% chance to throw a returning seashell projectile\n" + - "This seashell does true damage and does not benefit from any damage class\n" + - "Provides increased underwater mobility and slightly reduces breath loss in the abyss"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); var modPlayer = player.Calamity(); modPlayer.victideSet = true; player.ignoreWater = true; diff --git a/Items/Armor/Victide/VictideHeadRanged.cs b/Items/Armor/Victide/VictideHeadRanged.cs index 25d370f28c..1afff18e7f 100644 --- a/Items/Armor/Victide/VictideHeadRanged.cs +++ b/Items/Armor/Victide/VictideHeadRanged.cs @@ -27,10 +27,7 @@ namespace CalamityMod.Items.Armor.Victide public override void UpdateArmorSet(Player player) { - player.setBonus = "+3 life regen and 10% increased ranged damage while submerged in liquid\n" + - "When using any weapon you have a 10% chance to throw a returning seashell projectile\n" + - "This seashell does true damage and does not benefit from any damage class\n" + - "Provides increased underwater mobility and slightly reduces breath loss in the abyss"; + player.setBonus = CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); var modPlayer = player.Calamity(); modPlayer.victideSet = true; player.ignoreWater = true; diff --git a/Items/Armor/Victide/VictideHeadRogue.cs b/Items/Armor/Victide/VictideHeadRogue.cs index 5fb50d2702..c791620ab4 100644 --- a/Items/Armor/Victide/VictideHeadRogue.cs +++ b/Items/Armor/Victide/VictideHeadRogue.cs @@ -27,11 +27,7 @@ namespace CalamityMod.Items.Armor.Victide public override void UpdateArmorSet(Player player) { - player.setBonus = "+3 life regen and 10% increased rogue damage while submerged in liquid\n" + - "When using any weapon you have a 10% chance to throw a returning seashell projectile\n" + - "This seashell does true damage and does not benefit from any damage class\n" + - "Provides increased underwater mobility and slightly reduces breath loss in the abyss\n" + - "+60 maximum stealth"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); var modPlayer = player.Calamity(); modPlayer.victideSet = true; modPlayer.rogueStealthMax += 0.6f; diff --git a/Items/Armor/Victide/VictideHeadSummon.cs b/Items/Armor/Victide/VictideHeadSummon.cs index d6e20b0c71..40f1a6571a 100644 --- a/Items/Armor/Victide/VictideHeadSummon.cs +++ b/Items/Armor/Victide/VictideHeadSummon.cs @@ -31,12 +31,7 @@ namespace CalamityMod.Items.Armor.Victide public override void UpdateArmorSet(Player player) { - player.setBonus = "+1 max minion\n" + - "Summons a sea snail to protect you\n" + - "When using any weapon you have a 10% chance to throw a returning seashell projectile\n" + - "This seashell does true damage and does not benefit from any damage class\n" + - "Provides increased underwater mobility and slightly reduces breath loss in the abyss\n" + - "+3 life regen and 10% increased minion damage while submerged in liquid"; + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); var modPlayer = player.Calamity(); modPlayer.victideSet = true; modPlayer.victideSummoner = true; diff --git a/Items/Armor/Wulfrum/WulfrumSet.cs b/Items/Armor/Wulfrum/WulfrumSet.cs index fe3f5b8139..6c451c6d1a 100644 --- a/Items/Armor/Wulfrum/WulfrumSet.cs +++ b/Items/Armor/Wulfrum/WulfrumSet.cs @@ -35,12 +35,12 @@ namespace CalamityMod.Items.Armor.Wulfrum public static readonly SoundStyle SetBreakSound = new("CalamityMod/Sounds/Custom/AbilitySounds/WulfrumBastionBreak"); public static readonly SoundStyle SetBreakSoundSafe = new("CalamityMod/Sounds/Custom/AbilitySounds/WulfrumBastionBreakSafely"); + public static int MinionSlotBoost = 1; public static int BastionBuildTime = (int)(0.55f * 60); public static int BastionTime = 30 * 60; public static int TimeLostPerHit = 2 * 60; public static int BastionCooldown = 20 * 60; - internal static Item DummyCannon = new Item(); //Used for the attack swap. Basically we force the player to hold a fake item. public static bool PowerModeEngaged(Player player, out CooldownInstance cd) @@ -115,10 +115,6 @@ namespace CalamityMod.Items.Armor.Wulfrum orig(); } - - public override void SetStaticDefaults() - { - } public override void SetDefaults() { Item.width = 18; @@ -140,8 +136,8 @@ namespace CalamityMod.Items.Armor.Wulfrum armorPlayer.wulfrumSet = true; - player.setBonus = "+1 max minion"; //The cooler part of the set bonus happens in modifytooltips because i can't recolor it otherwise. Madge - player.maxMinions++; + player.setBonus = this.GetLocalization("SetBonus").WithFormatArgs(MinionSlotBoost).ToString(); //The cooler part of the set bonus happens in modifytooltips because i can't recolor it otherwise. Madge + player.maxMinions += MinionSlotBoost; if (PowerModeEngaged(player, out var cd)) { if (cd.timeLeft == BastionCooldown + BastionTime) @@ -153,12 +149,10 @@ namespace CalamityMod.Items.Armor.Wulfrum player.statDefense += 13; player.endurance += 0.05f; //10% Dr in total with the chestplate - //Can't account for previous fullbody transformations but at this point, whatever. Item headItem = player.armor[10].type != 0 ? player.armor[10] : player.armor[0]; bool hatVisible = !transformationPlayer.transformationActive && headItem.type == ItemType(); - //Spawn the hat if (cd.timeLeft == BastionCooldown + BastionTime - (int)(BastionBuildTime * 0.9f) && hatVisible) { @@ -166,14 +160,12 @@ namespace CalamityMod.Items.Armor.Wulfrum GeneralParticleHandler.SpawnParticle(leftoverHat); } - //Visuals if (cd.timeLeft < BastionCooldown + BastionTime - BastionBuildTime) player.GetModPlayer().transformationActive = true; else if (cd.timeLeft <= BastionCooldown + BastionTime - (int)(BastionBuildTime * 0.9f)) player.GetModPlayer().forceHelmetOn = true; - //Swapping the arm. if (DummyCannon.IsAir) DummyCannon.SetDefaults(ItemType()); @@ -240,21 +232,19 @@ namespace CalamityMod.Items.Armor.Wulfrum if (setBonusIndex != -1) { - TooltipLine setBonus1 = new TooltipLine(item.Mod, "CalamityMod:SetBonus1", "Wulfrum Bastion - Double tap DOWN while dismounted to equip wulfrum power armor"); + TooltipLine setBonus1 = new TooltipLine(item.Mod, "CalamityMod:SetBonus1", CalamityUtils.GetTextValueFromModItem("AbilityBrief")); setBonus1.OverrideColor = Color.Lerp(new Color(194, 255, 67), new Color(112, 244, 244), 0.5f + 0.5f * (float)Math.Sin(Main.GlobalTimeWrappedHourly * 3f)); tooltips.Insert(setBonusIndex + 1, setBonus1); - TooltipLine setBonus2 = new TooltipLine(item.Mod, "CalamityMod:SetBonus2", "While the armor is active, you can only use the integrated fusion cannon, but your defensive stats are increased"); + int AmmoItem = ModContent.ItemType(); + string AmmoDisplay = $"[i:{AmmoItem}] {CalamityUtils.GetItemName(AmmoItem)}"; + TooltipLine setBonus2 = new TooltipLine(item.Mod, "CalamityMod:SetBonus2", CalamityUtils.GetTextFromModItem("AbilityDescription").WithFormatArgs(AmmoDisplay).ToString()); setBonus2.OverrideColor = new Color(110, 192, 93); tooltips.Insert(setBonusIndex + 2, setBonus2); - TooltipLine setBonus3 = new TooltipLine(item.Mod, "CalamityMod:SetBonus3", "Calling down the armor consumes one piece of wulfrum metal scrap, and the armor will lose durability faster when hit"); - setBonus3.OverrideColor = new Color(110, 192, 93); - tooltips.Insert(setBonusIndex + 3, setBonus3); - if (!Main.keyState.IsKeyDown(LeftShift)) { - TooltipLine itemDisplay = new TooltipLine(item.Mod, "CalamityMod:ArmorItemDisplay", "Hold SHIFT to see the stats of the fusion cannon"); + TooltipLine itemDisplay = new TooltipLine(item.Mod, "CalamityMod:ArmorItemDisplay", CalamityUtils.GetTextValueFromModItem("ShiftToExpand")); itemDisplay.OverrideColor = new Color(190, 190, 190); tooltips.Add(itemDisplay); } @@ -286,7 +276,6 @@ namespace CalamityMod.Items.Armor.Wulfrum public new string LocalizationCategory => "Items.Armor.PreHardmode"; public override void SetStaticDefaults() { - if (Main.netMode != NetmodeID.Server) { var equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body); diff --git a/Localization/en-US/Mods.CalamityMod.Items.Armor.Hardmode.hjson b/Localization/en-US/Mods.CalamityMod.Items.Armor.Hardmode.hjson index a97057f042..3f99bd80da 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Armor.Hardmode.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Armor.Hardmode.hjson @@ -10,6 +10,13 @@ AstralBreastplate: { AstralHelm: { DisplayName: Astral Helm Tooltip: Danger detection + SetBonus: + ''' + 5% increased movement speed and +3 max minions + 35% increased damage and 25% increased critical strike chance + Whenever you crit an enemy, a barrage of stars will rain down + This effect has a 1 second cooldown before it can trigger again + ''' } AstralLeggings: { @@ -47,6 +54,14 @@ BrimflameScowl: { Increases maximum mana by 70 and reduces mana usage by 10% Immunity to On Fire!, Brimstone Flames and Frostburn ''' + SetBonus: + ''' + Grants an additional 15% increased magic damage and crit + Press {0} to trigger a brimflame frenzy effect + While under this effect, you get an additional 40% increase to magic damage + However, this comes at the cost of rapid life loss and no mana regeneration + This can be toggled off, however, a brimflame frenzy has a 30 second cooldown + ''' } CirrusDress: { @@ -72,6 +87,12 @@ DaedalusHeadMagic: { 13% increased magic damage and 7% increased magic critical strike chance 10% reduced mana usage and +60 max mana ''' + SetBonus: + ''' + 5% increased magic damage + You have a 10% chance to absorb physical attacks and projectiles when hit + If you absorb an attack you are healed for 1/2 of that attack's damage + ''' } DaedalusHeadMelee: { @@ -81,6 +102,14 @@ DaedalusHeadMelee: { 10% increased melee damage and critical strike chance 15% increased melee speed ''' + SetBonus: + ''' + 5% increased melee damage + Enemies are more likely to target you + You reflect projectiles back at enemies + Reflected projectiles deal 50% less damage to you + This reflect has a 90 second cooldown which is shared with all other dodges and reflects + ''' } DaedalusHeadRanged: { @@ -90,6 +119,11 @@ DaedalusHeadRanged: { 13% increased ranged damage and 7% increased ranged critical strike chance Reduces ammo usage by 20% ''' + SetBonus: + ''' + 5% increased ranged damage + Getting hit causes you to emit a blast of crystal shards + ''' } DaedalusHeadRogue: { @@ -99,11 +133,22 @@ DaedalusHeadRogue: { 13% increased rogue damage and 7% increased rogue critical strike chance, increases rogue velocity by 15% 5% increased movement speed ''' + SetBonus: + ''' + 5% increased rogue damage + +105 maximum stealth + Rogue projectiles throw out crystal shards as they travel + ''' } DaedalusHeadSummon: { DisplayName: Daedalus Mask Tooltip: 5% increased minion damage + SetBonus: + ''' + 20% increased minion damage and +2 max minions + A daedalus crystal floats above you to protect you + ''' } DaedalusLeggings: { @@ -143,11 +188,26 @@ FathomSwarmerVisage: { 5% increased minion damage Provides breathing and light underwater ''' + SetBonus: + ''' + 10% increased minion damage and +2 max minions + Grants the ability to climb walls + 30% increased minion damage while submerged in liquid + Provides a moderate amount of light and moderately reduces breath loss in the abyss + ''' } ForbiddenCirclet: { DisplayName: Forbidden Circlet Tooltip: 10% increased minion damage and 15% increased rogue velocity + SetBonus: + ''' + +40 maximum stealth + Press {0} to call an ancient storm to the cursor location + The ancient storm costs {1} mana and benefits from both summon and rogue bonuses + Rogue stealth strikes spawn homing eaters on enemy hits + Rogue and summon attacks will scale off of the stat with a higher boost + ''' } HydrothermicArmor: { @@ -157,6 +217,11 @@ HydrothermicArmor: { +20 max life 8% increased damage and 4% increased critical strike chance ''' + CommonSetBonus: + ''' + Inferno effect when below 50% life + You emit a blazing explosion when you are hit + ''' } HydrothermicHeadMagic: { @@ -166,6 +231,11 @@ HydrothermicHeadMagic: { 12% increased magic damage, +100 max mana, and 10% increased magic critical strike chance Temporary immunity to lava, and immunity to fire damage ''' + SetBonus: + ''' + 5% increased magic damage and 15% reduced mana usage + Magic attacks summon damaging and healing flare orbs on hit + ''' } HydrothermicHeadMelee: { @@ -177,6 +247,12 @@ HydrothermicHeadMelee: { Melee attacks and melee projectiles inflict on fire Temporary immunity to lava and immunity to fire damage ''' + SetBonus: + ''' + 5% increased melee damage + Enemies are more likely to target you + Melee attacks and projectiles cause chaos flames to erupt on enemy hits + ''' } HydrothermicHeadRanged: { @@ -186,6 +262,11 @@ HydrothermicHeadRanged: { 12% increased ranged damage and 10% increased ranged critical strike chance Reduces ammo usage by 25%, temporary immunity to lava, and immunity to fire damage ''' + SetBonus: + ''' + 5% increased ranged damage + You fire a homing chaos flare when using ranged weapons every 0.33 seconds + ''' } HydrothermicHeadRogue: { @@ -196,6 +277,12 @@ HydrothermicHeadRogue: { 50% chance to not consume rogue items and 5% increased movement speed Temporary immunity to lava and immunity to fire damage ''' + SetBonus: + ''' + 5% increased rogue damage + +110 maximum stealth + Rogue weapons unleash a volley of homing chaos flames around the player every 2.5 seconds + ''' } HydrothermicHeadSummon: { @@ -205,6 +292,11 @@ HydrothermicHeadSummon: { 5% increased minion damage and increased minion knockback Temporary immunity to lava and immunity to fire damage ''' + SetBonus: + ''' + 40% increased minion damage and +2 max minions + Summons a hydrothermic vent to protect you + ''' } HydrothermicSubligar: { @@ -232,6 +324,12 @@ MolluskShellmet: { 5% increased damage and 4% increased critical strike chance You can move freely through liquids ''' + SetBonus: + ''' + Two shellfishes aid you in combat + 10% increased damage + Your horizontal movement is slowed + ''' } MolluskShellplate: { @@ -270,11 +368,25 @@ PlaguebringerVisor: { 15% increased minion damage +20 max life ''' + SetBonus: + ''' + Grants a plague dash to ram enemies and afflict them with the plague + Summons a lil' plaguebringer to protect you and empower nearby minions + +3 max minions + ''' } PlagueReaperMask: { DisplayName: Plague Reaper Mask Tooltip: 10% increased ranged damage and 8% increased ranged critical strike chance + SetBonus: + ''' + 25% reduced ammo usage and 5% increased flight time + Enemies receive 10% more damage from ranged projectiles when afflicted by the Plague + Getting hit causes plague cinders to rain from above + Press {0} to blind yourself for 5 seconds but massively boost your ranged damage + This has a 25 second cooldown. + ''' } PlagueReaperStriders: { @@ -311,11 +423,27 @@ ReaverHeadExplore: { 20% increased mining speed and block/wall placement speed Temporary immunity to lava and can move freely through liquids ''' + SetBonus: + ''' + Highlights all treasure nearby + Increased item grab range and block placement range + Mining tiles restores breath while underwater + Summons a reaver orb to light up the area around you + Reduces enemy aggression, even in the abyss + Provides a small amount of light in the abyss + ''' } ReaverHeadMobility: { DisplayName: Reaver Visage Tooltip: 10% increased jump speed and 15% increased movement speed + SetBonus: + ''' + Grants immunity to fall damage and allows constant jumping + 10% increased flight time and horizontal wing speed + Hooks fly out and retract 10% faster + Reduces the cooldown of dashes + ''' } ReaverHeadTank: { @@ -326,6 +454,16 @@ ReaverHeadTank: { +50 max life Passively regenerates one health point every second ''' + SetBonus: + ''' + +10 defense and +3 life regen + Enemies are more likely to target you + Reduces the life regen lost from damage over time debuffs by 20% + All attacks have a small chance to steal life and speed up the rate of life regen + 20% decreased movement speed and flight time + Enemy damage is reflected and summons a thorn spike + Reaver Rage has a 25% chance to activate when you are damaged + ''' } ReaverScaleMail: { @@ -358,6 +496,13 @@ TitanHeartMask: { 5% increased rogue damage and knockback Rogue weapons inflict the Astral Infection debuff ''' + SetBonus: + ''' + 15% increased rogue damage and knockback + +100 maximum stealth + Stealth strikes deal double knockback and cause an astral explosion + Grants immunity to knockback + ''' } UmbraphileBoots: { @@ -372,6 +517,12 @@ UmbraphileBoots: { UmbraphileHood: { DisplayName: Umbraphile Hood Tooltip: 8% increased rogue damage and 10% increased rogue velocity + SetBonus: + ''' + +110 maximum stealth + Rogue weapons have a chance to create explosions on hit + Stealth strikes always create an explosion + ''' } UmbraphileRegalia: { diff --git a/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson b/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson index 50462b7f1d..24c07880b1 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson @@ -21,26 +21,48 @@ AuricTeslaCuisses: { AuricTeslaHoodedFacemask: { DisplayName: Auric Tesla Hooded Facemask Tooltip: 30% increased ranged damage and critical strike chance + SetBonus: Ranged Tarragon, Bloodflare and God Slayer armor effects } AuricTeslaPlumedHelm: { DisplayName: Auric Tesla Plumed Helm Tooltip: 20% increased rogue damage, critical strike chance and 5% increased movement speed + SetBonus: + ''' + Rogue Tarragon, Bloodflare and God Slayer armor effects + +130 maximum stealth + ''' } AuricTeslaRoyalHelm: { DisplayName: Auric Tesla Royal Helm Tooltip: 20% increased melee damage and critical strike chance + SetBonus: + ''' + Melee Tarragon, Bloodflare and God Slayer effects + Enemies are more likely to target you + ''' } AuricTeslaSpaceHelmet: { DisplayName: Auric Tesla Space Helmet Tooltip: 15% increased minion damage + SetBonus: + ''' + Summoner Tarragon, Bloodflare and Silva armor effects + Max run speed and acceleration boosted by 5% + +6 max minions and 75% increased minion damage" + ''' } AuricTeslaWireHemmedVisage: { DisplayName: Auric Tesla Wire-Hemmed Visage Tooltip: 30% increased magic damage, 20% increased magic critical strike chance, +100 max mana and 20% reduced mana usage + SetBonus: + ''' + Magic Tarragon, Bloodflare and Silva armor effects + Max run speed and acceleration boosted by 5% + ''' } BloodflareBodyArmor: { @@ -50,6 +72,12 @@ BloodflareBodyArmor: { 12% increased damage and 8% increased critical strike chance +40 max life ''' + CommonSetBonus: + ''' + Greatly increases life regen + Enemies below 50% life drop a heart when struck + This effect has a 5 second cooldown + ''' } BloodflareCuisses: { @@ -64,6 +92,11 @@ BloodflareHeadMagic: { You can move freely through liquids and have temporary immunity to lava 20% increased magic damage, 10% increased magic critical strike chance, +100 max mana and 17% reduced mana usage ''' + SetBonus: + ''' + Magic weapons fire ghostly bolts every 1.67 seconds + Magic critical strikes cause flame explosions every 2 seconds + ''' } BloodflareHeadMelee: { @@ -73,6 +106,14 @@ BloodflareHeadMelee: { You can move freely through liquids and have temporary immunity to lava 10% increased melee damage and critical strike chance ''' + SetBonus: + ''' + Enemies are more likely to target you + True melee strikes will heal you + After striking an enemy 15 times with true melee you will enter a blood frenzy for 5 seconds + During this you will gain 25% increased melee damage, critical strike chance, and contact damage is halved + This effect has a 30 second cooldown + ''' } BloodflareHeadRanged: { @@ -82,6 +123,12 @@ BloodflareHeadRanged: { You can move freely through liquids and have temporary immunity to lava 10% increased ranged damage and critical strike chance ''' + SetBonus: + ''' + Press {0} to unleash the lost souls of polterghast to destroy your enemies + This effect has a 30 second cooldown + Ranged weapons fire bloodsplosion orbs every 2.5 seconds + ''' } BloodflareHeadRogue: { @@ -91,6 +138,13 @@ BloodflareHeadRogue: { You can move freely through liquids and have temporary immunity to lava 10% increased rogue damage and critical strike chance, 5% increased movement speed ''' + SetBonus: + ''' + +120 maximum stealth + Being over 80% life boosts your defense by 30 and rogue crit by 5% + Being below 80% life boosts your rogue damage by 10% + Rogue critical strikes have a 50% chance to heal you + ''' } BloodflareHeadSummon: { @@ -100,6 +154,13 @@ BloodflareHeadSummon: { You can move freely through liquids and have temporary immunity to lava 5% increased minion damage ''' + SetBonus: + ''' + 50% increased minion damage and +3 max minions + Summons polterghast mines to circle you + At 90% life and above you gain 10% increased minion damage + At 50% life and below you gain 20 defense and 2 life regen + ''' } DemonshadeBreastplate: { @@ -121,6 +182,14 @@ DemonshadeGreaves: { DemonshadeHelm: { DisplayName: Demonshade Helm Tooltip: 30% increased damage and 15% increased critical strike chance + SetBonus: + ''' + 100% increased minion damage and +10 max minions + Shadowbeams and demon scythes will fire down when you are hit + A friendly red devil follows you around + Press {0} to enrage nearby enemies with a dark magic spell for 10 seconds + This makes them take 2.25x total damage, but they will deal 1.25x damage to you + ''' } EmpyreanCloak: { @@ -149,6 +218,13 @@ EmpyreanMask: { 11% increased rogue damage and critical strike chance, 5% increased movement speed Temporary immunity to lava ''' + SetBonus: + ''' + 9% increased rogue damage and velocity + +115 maximum stealth + Rogue projectiles have special effects on enemy hits + Imbued with cosmic wrath and rage when you are damaged + ''' } FearmongerGreathelm: { @@ -159,6 +235,15 @@ FearmongerGreathelm: { +60 max mana and 10% reduced mana usage 10% increased minion damage ''' + SetBonus: + ''' + 20% increased minion damage and +2 max minions + Minions no longer deal less damage while wielding non-summoner weapons + Immunity to all forms of frost and flame + All minion attacks grant colossal life regeneration + 15% increased damage reduction during the Pumpkin and Frost Moons + This extra damage reduction ignores the soft cap + ''' } FearmongerGreaves: { @@ -189,6 +274,33 @@ GemTechBodyArmor: { GemTechHeadgear: { DisplayName: Gem Tech Headgear Tooltip: "'The Devil said: Revel in your victory; You've earned your damning. Pack your things and leave.'" + AbilityBrief: Power Gems - Six gem fragments idly orbit you; one for each class, and a base gem + AbilityDescription: + ''' + Each active gem provides a bonus for its respective class, while the defensive gem grants defensive boosts + Powerful enemy hits will dislodge gems, launching them into the nearest enemy for huge damage + Lost gems regenerate after a while + The lost gem is the same class as the weapon you are using, so better prepare for some weapon switching action! + ''' + GeneralGemInfo: + ''' + A gem is lost when you take more than {0} damage in a single hit. + The type of gem lost is the same as the class of the previous when you used + If said gem has already been lost, the base gem is lost instead + When a gem is lost, it breaks off and homes towards the nearest enemy or boss, if one is present, dealing a base of {1} damage + Gems have a {2} second delay before they appear again" + ''' + RedGemInfo: "[i:{0}] The red gem grants {1} maximum stealth, increased rogue stats, and makes stealth only consumable by rogue weapons" + YellowGemInfo: "[i:{0}] The yellow gem provides increased melee stats and makes melee attacks release shards on hit with a cooldown. This cooldown is shorter for true melee attacks" + GreenGemInfo: "[i:{0}] The green gem provides increased ranged stats and causes flechettes to fly swiftly towards targets when they are damaged by a ranged projectile" + BlueGemInfo: "[i:{0}] The blue gem grants {1} extra maximum minions, increased minion damage, and negates the minion damage penalty while wielding non-summoner weapons" + PurpleGemInfo: "[i:{0}] The violet gem grants {1} extra maximum mana, increased magic stats, and makes mana rapidly regenerate when holding a non-magic weapon" + PinkGemInfo: "[i:{0}] The pink base gem grants {1} extra defense, extra damage reduction, increased movement speed, jump speed, and +{2} life regen" + GemBonusInfo: + ''' + When all gems exist simultaneously, hitting a target with any weapon grants you +{0} life regen for {1} seconds + This is increased to +{2} life regen if a weapon of another class is used during that {1} second period for {3} seconds + ''' } GemTechSchynbaulds: { @@ -204,21 +316,43 @@ GodSlayerChestplate: { Enemies take damage when they hit you 11% increased damage and 6% increased critical strike chance ''' + CommonSetBonus: + ''' + Allows you to dash for an immense distance in 8 directions + Press {0} while holding down the movement keys in the direction you want to dash + Enemies you dash through take massive damage + During the dash you are immune to most debuffs + The dash has a {1} second cooldown + ''' } GodSlayerHeadMelee: { DisplayName: God Slayer Horned Greathelm Tooltip: 14% increased melee damage and critical strike chance + SetBonus: + ''' + Enemies are more likely to target you + Taking over 80 damage in one hit will cause you to release a swarm of high-damage god killer darts + Enemies take a lot of damage when they hit you + An attack that would deal 80 damage or less will have its damage reduced to 1 + ''' } GodSlayerHeadRanged: { DisplayName: God Slayer Helmet Tooltip: 14% increased ranged damage and critical strike chance + SetBonus: You fire a god killer shrapnel round while firing ranged weapons every 2.5 seconds } GodSlayerHeadRogue: { DisplayName: God Slayer Mask Tooltip: 14% increased rogue damage and critical strike chance, 5% increased movement speed + SetBonus: + ''' + +120 maximum stealth + While at full HP all of your rogue stats are boosted by 10% + If you take over 80 damage in one hit you will be given extra immunity frames + ''' } GodSlayerLeggings: { @@ -247,6 +381,15 @@ OmegaBlueHelmet: { You can move freely through liquids 12% increased damage and 8% increased critical strike chance ''' + SetBonus: + ''' + Increases armor penetration by 15 + 10% increased damage and critical strike chance and +2 max minions + Short-ranged tentacles heal you by sucking enemy life + Press {0} to activate abyssal madness for 5 seconds + Abyssal madness increases damage, critical strike chance, and tentacle aggression/range + This effect has a 25 second cooldown + ''' } OmegaBlueTentacles: { @@ -277,6 +420,13 @@ PrismaticHelmet: { Enemies with less than 500 max health deal no contact damage This does not occur while a boss is alive ''' + SetBonus: + ''' + +40 max mana and 15% reduced mana cost + Increased mana regeneration rate + Press {0} to unleash a barrage of death lasers at the cursor for the next 5 seconds + This has a 30 second cooldown + ''' } PrismaticRegalia: { @@ -297,6 +447,13 @@ SilvaArmor: { +80 max life 12% increased damage and 8% increased critical strike chance ''' + CommonSetBonus: + ''' + All projectiles spawn healing leaf orbs on enemy hits + Max run speed and acceleration boosted by 5% + If you are reduced to 1 HP you will not die from any further damage for 8 seconds + This effect has a 5 minute cooldown. The cooldown does not decrement if any bosses or events are active. + ''' } SilvaHeadMagic: { @@ -306,11 +463,17 @@ SilvaHeadMagic: { 23% increased magic damage and 13% increased magic critical strike chance +100 max mana and 19% reduced mana usage ''' + SetBonus: Magic projectiles which cannot pierce will occasionally set off potent blasts of nature energy } SilvaHeadSummon: { DisplayName: Silva Horned Hood Tooltip: 10% increased minion damage + SetBonus: + ''' + 65% increased minion damage and +5 max minions + Summons an ancient leaf prism to blast your enemies with life energy + ''' } SilvaLeggings: { @@ -329,6 +492,12 @@ TarragonBreastplate: { 10% increased damage and 5% increased critical strike chance +2 life regen and +40 max life ''' + CommonSetBonus: + ''' + Reduces enemy spawn rates + Increased heart pickup range + Enemies have a chance to drop extra hearts on death + ''' } TarragonHeadMagic: { @@ -339,6 +508,12 @@ TarragonHeadMagic: { 20% increased magic damage and 10% increased magic critical strike chance 5% increased damage reduction, +100 max mana, and 15% reduced mana usage ''' + SetBonus: + ''' + On every 5th critical strike you will fire a leaf storm + Magic projectiles heal you on enemy hits + Amount healed is based on projectile damage + ''' } TarragonHeadMelee: { @@ -349,6 +524,13 @@ TarragonHeadMelee: { 10% increased melee damage and critical strike chance 5% increased damage reduction ''' + SetBonus: + ''' + Enemies are more likely to target you + You have a 25% chance to gain a life regen buff when you take damage + Press {0} to cloak yourself in life energy that heavily reduces enemy contact damage for 10 seconds + This has a 30 second cooldown + ''' } TarragonHeadRanged: { @@ -359,24 +541,32 @@ TarragonHeadRanged: { 10% increased ranged damage and critical strike chance 5% increased damage reduction ''' + SetBonus: Ranged projectiles split into homing life energy and leaves on death } TarragonHeadRogue: { DisplayName: Tarragon Helmet Tooltip: ''' - Can move freely through liquids, 5% increased movement speed 10% increased rogue damage and critical strike chance - 5% increased damage reduction + 5% increased damage reduction and movement speed + ''' + SetBonus: + ''' + +115 maximum stealth + After every 25 rogue critical hits you will gain 3 seconds of damage immunity + This effect can only occur once every 30 seconds + While under the effects of a debuff you gain 10% increased rogue damage ''' } TarragonHeadSummon: { DisplayName: Tarragon Horned Helm - Tooltip: + Tooltip: 5% increased damage reduction and minion damage + SetBonus: ''' - Can move freely through liquids - 5% increased damage reduction and minion damage + 50% increased minion damage and +3 max minions + Summons a life aura around you that damages nearby enemies ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Armor.PreHardmode.hjson b/Localization/en-US/Mods.CalamityMod.Items.Armor.PreHardmode.hjson index 1b114ebdbd..527e632955 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Armor.PreHardmode.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Armor.PreHardmode.hjson @@ -1,31 +1,53 @@ AerospecBreastplate: { DisplayName: Aerospec Breastplate Tooltip: 3% increased critical strike chance + CommonSetBonus: + ''' + Taking over 25 damage in one hit will cause a spread of homing feathers to fall + Allows you to fall more quickly and disables fall damage + ''' } AerospecHat: { DisplayName: Aerospec Hat Tooltip: 8% increased magic damage and +20 max mana + SetBonus: 5% increased movement speed and magic critical strike chance } AerospecHeadgear: { DisplayName: Aerospec Headgear Tooltip: 8% increased rogue damage and 5% increased movement speed + SetBonus: + ''' + 5% increased movement speed and rogue critical strike chance + +80 maximum stealth + ''' } AerospecHelm: { DisplayName: Aerospec Helm Tooltip: 8% increased melee damage + SetBonus: + ''' + 5% increased movement speed and melee critical strike chance + Enemies are more likely to target you + ''' } AerospecHelmet: { DisplayName: Aerospec Helmet Tooltip: 5% increased movement speed and minion damage + SetBonus: + ''' + 11% increased minion damage and +1 max minion + Summons a valkyrie to protect you + ''' } AerospecHood: { DisplayName: Aerospec Hood Tooltip: 8% increased ranged damage + SetBonus: 5% increased movement speed and ranged critical strike chance } AerospecLeggings: { @@ -36,6 +58,15 @@ AerospecLeggings: { DesertProwlerHat: { DisplayName: Desert Prowler Hat Tooltip: 4% increased ranged critical strike chance and 20% chance to not consume ammo + SetBonus: Ranged attacks deal an extra {0} flat damage + AbilityBrief: Sandsmoke Bomb - Double tap DOWN to shroud yourself in a small cloud of sand + AbilityDescription: + ''' + While the sand cloud is active, gain increased mobility but heavily reduced defense + Using a ranged weapon instantly dispels the sand cloak, but guarantees a supercrit for {0}% damage + The super crit applies only as long as the resulting hit wouldn't exceed {1} damage + Landing the killing blow on an enemy with this shot shortens the ability's cooldown to {2} seconds + ''' } DesertProwlerPants: { @@ -51,6 +82,12 @@ DesertProwlerShirt: { MarniteArchitectHeadgear: { DisplayName: Marnite Architect Headgear Tooltip: Increases block placement range by 5 + AbilityBrief: Marnite Lift - You can summon a lift under your feet to reach higher up + AbilityDescription: + ''' + The lift gets summoned when the mount hotkey gets pressed [c/D4C870:without any mounts equipped] + Using the Up and Down keys can change the lift's height + ''' } MarniteArchitectToga: { @@ -71,11 +108,23 @@ SnowRuffianGreaves: { SnowRuffianMask: { DisplayName: Snow Ruffian Mask Tooltip: 2% increased rogue damage + SetBonus: + ''' + 5% increased rogue damage + +50 maximum stealth + You can glide to negate fall damage + ''' } StatigelArmor: { DisplayName: Statigel Armor Tooltip: 5% increased critical strike chance + CommonSetBonus: + ''' + When you take over 100 damage in one hit you become immune to damage for an extended period of time + Grants an extra jump and increased jump height + 12% increased jump speed + ''' } StatigelGreaves: { @@ -99,6 +148,7 @@ StatigelHeadMelee: { 10% increased melee damage and melee speed 7% increased melee critical strike chance ''' + SetBonus: Enemies are more likely to target you } StatigelHeadRanged: { @@ -117,11 +167,17 @@ StatigelHeadRogue: { 10% increased rogue damage and 34% chance to not consume rogue items 7% increased rogue critical strike chance and 5% increased movement speed ''' + SetBonus: +90 maximum stealth } StatigelHeadSummon: { DisplayName: Statigel Hood Tooltip: Increased minion knockback + SetBonus: + ''' + 18% increased minion damage and +1 max minion + Summons a mini slime god to fight for you, the type depends on what world evil you have + ''' } SulphurousBreastplate: { @@ -137,6 +193,13 @@ SulphurousHelmet: { 2% increased rogue critical strike chance Grants underwater breathing ''' + SetBonus: + ''' + +70 maximum stealth + Attacking and being attacked by enemies inflicts poison + Grants an additional jump that summons a sulphurous bubble + Provides increased underwater mobility and reduces the severity of the sulphuric waters + ''' } SulphurousLeggings: { @@ -155,6 +218,13 @@ VictideBreastplate: { 5% increased damage reduction and critical strike chance +5 defense and 10% increased damage reduction while submerged in liquid ''' + CommonSetBonus: + ''' + +3 life regen and 10% increased magic damage while submerged in liquid + When using any weapon you have a 10% chance to throw a returning seashell projectile + This seashell does true damage and does not benefit from any damage class + Provides increased underwater mobility and slightly reduces breath loss in the abyss + ''' } VictideGreaves: { @@ -174,6 +244,7 @@ VictideHeadMagic: { VictideHeadMelee: { DisplayName: Victide Shellmet Tooltip: 5% increased melee damage + SetBonus: Enemies are more likely to target you } VictideHeadRanged: { @@ -184,11 +255,17 @@ VictideHeadRanged: { VictideHeadRogue: { DisplayName: Victide Headcrab Tooltip: 5% increased rogue damage + SetBonus: +60 maximum stealth } VictideHeadSummon: { DisplayName: Victide Mask Tooltip: 10% increased minion damage + SetBonus: + ''' + +1 max minion + Summons a sea snail to protect you + ''' } WulfrumFusionCannon: { @@ -208,6 +285,14 @@ WulfrumHat: { 10% increased minion damage Comes equipped with hair extensions ''' + SetBonus: +1 max minion + AbilityBrief: Wulfrum Bastion - Double tap DOWN while dismounted to equip wulfrum power armor + AbilityDescription: + ''' + While the armor is active, you can only use the integrated fusion cannon, but your defensive stats are increased + Calling down the armor consumes one piece of {0}, and the armor will lose durability faster when hit + ''' + ShiftToExpand: Hold SHIFT to see the stats of the fusion cannon } WulfrumJacket: { diff --git a/Localization/en-US/Mods.CalamityMod.Misc.hjson b/Localization/en-US/Mods.CalamityMod.Misc.hjson index cc19fd7ccf..90b6925a1d 100644 --- a/Localization/en-US/Mods.CalamityMod.Misc.hjson +++ b/Localization/en-US/Mods.CalamityMod.Misc.hjson @@ -10,6 +10,7 @@ JungleSchematicRecipeCondition: Place a schematic from the lab deep within the j UnderworldSchematicRecipeCondition: Place a schematic from the lab near the edges of the underworld in your inventory at least once IceSchematicRecipeCondition: Place a schematic from the lab within the frozen caverns in your inventory at least once // Item Messages +ShiftToExpand: Hold SHIFT to see an expanded description LearnedSchematic: You learned how to create new things! ThirdSageBlessingText: You have been blessed by the Third Sage! ThirdSageBlessingText2: The Third Sage has rescinded its blessing...