spoofed every other set bonus tooltip

This commit is contained in:
Altixal committed 2025-07-30 15:03:38 +07:00
1 parent aba1c41418
commit ecb582822e
17 files changed
+40 -40

No files matched your search

+1 -1
View File
@@ -85,7 +85,7 @@ namespace CalamityMod.Items.Armor.Auric
{
Color[] armorColors = { AuricTeslaBodyArmor.tooltipTarragonColor, AuricTeslaBodyArmor.tooltipBloodflareColor, AuricTeslaBodyArmor.tooltipGodslayerColor };
var LocalizedText = CalamityUtils.GetTextFromModItem(Type, $"SetBonus{setBonusTooltipNumber}");
line.Text = (setBonusTooltipNumber == 3 ? LocalizedText.Format(CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString(), GodslayerArmorDash.GodslayerCooldown) : setBonusTooltipNumber == 2 ? LocalizedText.Format() : LocalizedText.Format(CalamityKeybinds.ArmorSetBonusHotKey.TooltipHotkeyString()));
line.Text = (setBonusTooltipNumber == 3 ? LocalizedText.Format(CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString(), GodslayerArmorDash.GodslayerCooldown) : setBonusTooltipNumber == 2 ? LocalizedText.Format() : LocalizedText.Format(CalamityUtils.GetArmorSetBonusKey()));
line.OverrideColor = armorColors[setBonusTooltipNumber - 1];
}
}
+1 -1
View File
@@ -80,7 +80,7 @@ namespace CalamityMod.Items.Armor.Auric
{
Color[] armorColors = { AuricTeslaBodyArmor.tooltipTarragonColor, AuricTeslaBodyArmor.tooltipBloodflareColor, AuricTeslaBodyArmor.tooltipGodslayerColor };
var LocalizedText = CalamityUtils.GetTextFromModItem(Type, $"SetBonus{setBonusTooltipNumber}");
line.Text = (setBonusTooltipNumber == 3 ? LocalizedText.Format(CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString(), GodslayerArmorDash.GodslayerCooldown) : setBonusTooltipNumber == 2 ? LocalizedText.Format(CalamityKeybinds.ArmorSetBonusHotKey.TooltipHotkeyString()) : LocalizedText.Format());
line.Text = (setBonusTooltipNumber == 3 ? LocalizedText.Format(CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString(), GodslayerArmorDash.GodslayerCooldown) : setBonusTooltipNumber == 2 ? LocalizedText.Format(CalamityUtils.GetArmorSetBonusKey()) : LocalizedText.Format());
line.OverrideColor = armorColors[setBonusTooltipNumber - 1];
}
}
+1 -1
View File
@@ -83,7 +83,7 @@ namespace CalamityMod.Items.Armor.Auric
{
Color[] armorColors = { AuricTeslaBodyArmor.tooltipTarragonColor, AuricTeslaBodyArmor.tooltipBloodflareColor, AuricTeslaBodyArmor.tooltipGodslayerColor };
var LocalizedText = CalamityUtils.GetTextFromModItem(Type, $"SetBonus{setBonusTooltipNumber}");
line.Text = (setBonusTooltipNumber == 3 ? LocalizedText.Format(CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString(), GodslayerArmorDash.GodslayerCooldown) : setBonusTooltipNumber == 2 ? LocalizedText.Format() : LocalizedText.Format(CalamityKeybinds.ArmorSetBonusHotKey.TooltipHotkeyString()));
line.Text = (setBonusTooltipNumber == 3 ? LocalizedText.Format(CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString(), GodslayerArmorDash.GodslayerCooldown) : setBonusTooltipNumber == 2 ? LocalizedText.Format() : LocalizedText.Format());
line.OverrideColor = armorColors[setBonusTooltipNumber - 1];
}
}
@@ -39,8 +39,7 @@ namespace CalamityMod.Items.Armor.Bloodflare
var modPlayer = player.Calamity();
modPlayer.bloodflareSet = true;
modPlayer.bloodflareRanged = true;
var hotkey = CalamityKeybinds.ArmorSetBonusHotKey.TooltipHotkeyString();
player.setBonus = this.GetLocalization("SetBonus").Format(hotkey) + "\n" + CalamityUtils.GetTextValueFromModItem<BloodflareBodyArmor>("CommonSetBonus");
player.setBonus = this.GetLocalization("SetBonus").Format(CalamityUtils.GetArmorSetBonusKey()) + "\n" + CalamityUtils.GetTextValueFromModItem<BloodflareBodyArmor>("CommonSetBonus");
player.crimsonRegen = true;
}
+1 -2
View File
@@ -77,8 +77,7 @@ namespace CalamityMod.Items.Armor.Brimflame
modPlayer.brimflameSet = true;
player.GetDamage<MagicDamageClass>() += 0.15f;
player.GetCritChance<MagicDamageClass>() += 15;
var hotkey = CalamityKeybinds.ArmorSetBonusHotKey.TooltipHotkeyString();
player.setBonus = this.GetLocalization("SetBonus").Format(hotkey);
player.setBonus = this.GetLocalization("SetBonus").Format(CalamityUtils.GetArmorSetBonusKey());
}
public override void AddRecipes()
+1 -2
View File
@@ -47,8 +47,7 @@ namespace CalamityMod.Items.Armor.Demonshade
public override void UpdateArmorSet(Player player)
{
var hotkey = CalamityKeybinds.ArmorSetBonusHotKey.TooltipHotkeyString();
player.setBonus = this.GetLocalization("SetBonus").Format(hotkey, (1f + MultDamageBoost).Round(), (1D + MultDamageTakenBoost).Round());
player.setBonus = this.GetLocalization("SetBonus").Format(CalamityUtils.GetArmorSetBonusKey(), (1f + MultDamageBoost).Round(), (1D + MultDamageTakenBoost).Round());
var modPlayer = player.Calamity();
modPlayer.dsSetBonus = true;
modPlayer.wearingRogueArmor = true;
@@ -67,8 +67,7 @@ namespace CalamityMod.Items.Armor.DesertProwler
public override void UpdateArmorSet(Player player)
{
Color AbilityBriefColor = Color.Lerp(new Color(255, 229, 156), new Color(233, 225, 198), 0.5f + 0.5f * MathF.Sin(Main.GlobalTimeWrappedHourly * 3f));
var hotkey = CalamityKeybinds.ArmorSetBonusHotKey.TooltipHotkeyString();
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusRogueStealth.ToStealth(), AbilityBriefColor.Hex3(), hotkey, FreeCrit, BonusDamageCap, LightsOutReset.FramesToSeconds()); //More gets edited in elsewhere
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusRogueStealth.ToStealth(), AbilityBriefColor.Hex3(), CalamityUtils.GetArmorSetBonusKey(), FreeCrit, BonusDamageCap, LightsOutReset.FramesToSeconds()); //More gets edited in elsewhere
player.Calamity().wearingRogueArmor = true;
player.Calamity().rogueStealthMax += SetBonusRogueStealth;
+1 -2
View File
@@ -44,8 +44,7 @@ namespace CalamityMod.Items.Armor
public override void UpdateArmorSet(Player player)
{
int stormMana = (int)(manaCost * player.manaCost);
string hotkey = CalamityKeybinds.ArmorSetBonusHotKey.TooltipHotkeyString();
player.setBonus = this.GetLocalization("SetBonus").Format(hotkey, stormMana);
player.setBonus = this.GetLocalization("SetBonus").Format(CalamityUtils.GetArmorSetBonusKey(), stormMana);
CalamityPlayer modPlayer = player.Calamity();
modPlayer.forbiddenCirclet = true;
modPlayer.rogueStealthMax += 0.4f;
+1 -2
View File
@@ -66,8 +66,7 @@ namespace CalamityMod.Items.Armor.OmegaBlue
public override void UpdateArmorSet(Player player)
{
var hotkey = CalamityKeybinds.ArmorSetBonusHotKey.TooltipHotkeyString();
player.setBonus = this.GetLocalization("SetBonus").Format(hotkey);
player.setBonus = this.GetLocalization("SetBonus").Format(CalamityUtils.GetArmorSetBonusKey());
var mp = player.Calamity();
player.maxMinions += 2;
+1 -2
View File
@@ -37,8 +37,7 @@ namespace CalamityMod.Items.Armor.PlagueReaper
public override void UpdateArmorSet(Player player)
{
var hotkey = CalamityKeybinds.ArmorSetBonusHotKey.TooltipHotkeyString();
player.setBonus = this.GetLocalization("SetBonus").Format(hotkey);
player.setBonus = this.GetLocalization("SetBonus").Format(CalamityUtils.GetArmorSetBonusKey());
var modPlayer = player.Calamity();
modPlayer.plagueReaper = true;
player.ammoCost75 = true;
+1 -2
View File
@@ -40,8 +40,7 @@ namespace CalamityMod.Items.Armor.Prismatic
player.statManaMax2 += 40;
player.manaCost -= 0.15f;
player.manaRegenBonus += 8;
var hotkey = CalamityKeybinds.ArmorSetBonusHotKey.TooltipHotkeyString();
player.setBonus = this.GetLocalization("SetBonus").Format(hotkey);
player.setBonus = this.GetLocalization("SetBonus").Format(CalamityUtils.GetArmorSetBonusKey());
}
public override void UpdateEquip(Player player)
+1 -2
View File
@@ -39,8 +39,7 @@ namespace CalamityMod.Items.Armor.Tarragon
modPlayer.tarraMelee = true;
player.GetAttackSpeed<MeleeDamageClass>() += 0.15f;
player.aggro += 800;
var hotkey = CalamityKeybinds.ArmorSetBonusHotKey.TooltipHotkeyString();
player.setBonus = this.GetLocalization("SetBonus").Format(hotkey) + "\n" + CalamityUtils.GetTextValueFromModItem<TarragonBreastplate>("CommonSetBonus");
player.setBonus = this.GetLocalization("SetBonus").Format(CalamityUtils.GetArmorSetBonusKey()) + "\n" + CalamityUtils.GetTextValueFromModItem<TarragonBreastplate>("CommonSetBonus");
}
public override void UpdateEquip(Player player)
+13 -9
View File
@@ -975,6 +975,14 @@ namespace CalamityMod.Items
// Pre-Hardmode armor tooltip edits
#region Pre-Hardmode Armor
// Gladiator
if (item.type == ItemID.GladiatorHelmet)
EditTooltipByName("Defense", (line) => line.Text += "\n" + CalamityUtils.GetText("Common.RogueDamage").Format(GladiatorArmorSetChange.HelmetRogueDamageBoostPercent));
if (item.type == ItemID.GladiatorBreastplate)
EditTooltipByName("Defense", (line) => line.Text += "\n" + CalamityUtils.GetText("Common.RogueCrit").Format(GladiatorArmorSetChange.ChestplateRogueCritBoostPercent));
if (item.type == ItemID.GladiatorLeggings)
EditTooltipByName("Defense", (line) => line.Text += "\n" + CalamityUtils.GetText("Common.RogueVelocity").Format(GladiatorArmorSetChange.LeggingRogueVelocityBoostPercent));
// Jungle
if (item.type == ItemID.JungleHat || item.type == ItemID.AncientCobaltHelmet)
{
@@ -1146,18 +1154,14 @@ namespace CalamityMod.Items
EditTooltipByName("SetBonus", (line) => VanillaArmorChangeManager.ApplySetBonusTooltipChanges(item, ref line.Text));
// Gladiator
if (item.type == ItemID.GladiatorHelmet)
EditTooltipByName("Defense", (line) => line.Text += "\n" +CalamityUtils.GetText("Common.RogueDamage").Format(GladiatorArmorSetChange.HelmetRogueDamageBoostPercent));
if (item.type == ItemID.GladiatorBreastplate)
EditTooltipByName("Defense", (line) => line.Text += "\n" +CalamityUtils.GetText("Common.RogueCrit").Format(GladiatorArmorSetChange.ChestplateRogueCritBoostPercent));
if (item.type == ItemID.GladiatorLeggings)
EditTooltipByName("Defense", (line) => line.Text += "\n" +CalamityUtils.GetText("Common.RogueVelocity").Format(GladiatorArmorSetChange.LeggingRogueVelocityBoostPercent));
// Forbidden (UNLESS you are wearing the Circlet, which is Summon/Rogue and does not get this line)
if ((item.type == ItemID.AncientBattleArmorHat || item.type == ItemID.AncientBattleArmorShirt || item.type == ItemID.AncientBattleArmorPants)
&& !Main.LocalPlayer.Calamity().forbiddenCirclet)
EditTooltipByName("SetBonus", (line) => line.Text = CalamityUtils.GetText($"Vanilla.Armor.SetBonus.Forbidden").Format(Language.GetTextValue(Main.ReversedUpDownArmorSetBonuses ? "Key.UP" : "Key.DOWN")));
EditTooltipByName("SetBonus", (line) => line.Text = CalamityUtils.GetText($"Vanilla.Armor.SetBonus.Forbidden").Format(CalamityUtils.GetArmorSetBonusKey()));
// Vortex (hotkey spoof)
if (item.type == ItemID.VortexHelmet || item.type == ItemID.VortexBreastplate || item.type == ItemID.VortexLeggings)
EditTooltipByName("SetBonus", (line) => line.Text = CalamityUtils.GetText($"Vanilla.Armor.SetBonus.Vortex").Format(CalamityUtils.GetArmorSetBonusKey()));
#endregion
// Provide the full stats of every vanilla yoyo
@@ -54,7 +54,7 @@ BrimflameScowl: {
SetBonus:
'''
Grants an additional 15% increased magic damage and critical strike chance
Press {0} to trigger a brimflame frenzy effect
{0} to trigger a brimflame frenzy effect
While under this effect, you get an additional 40% increase to magic damage
However, this inflicts rapid life loss and disables mana regeneration and mana potions
This can be toggled off, however, brimflame frenzy has a 30 second cooldown
@@ -189,7 +189,7 @@ ForbiddenCirclet: {
SetBonus:
'''
+40 maximum stealth
Press {0} to call an ancient storm to the cursor location
{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
@@ -403,7 +403,7 @@ PlagueReaperMask: {
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
{0} to blind yourself for 5 seconds but massively boost your ranged damage
This has a 25 second cooldown
'''
}
@@ -225,7 +225,7 @@ BloodflareHeadRanged: {
SetBonus: "{$BloodflareHeadRanged.SetBonusEffect}"
SetBonusEffect:
'''
Press {0} to unleash the lost souls of polterghast to destroy your enemies
{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
'''
@@ -292,7 +292,7 @@ DemonshadeHelm: {
100% increased summon 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
{0} to enrage nearby enemies with a dark magic spell for 10 seconds
This makes them take {1}x total damage, but they will deal {2}x damage to you
'''
}
@@ -505,7 +505,7 @@ OmegaBlueHelmet: {
'''
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
{0} to activate abyssal madness for 5 seconds
Abyssal madness increases damage and critical strike chance by 10%
It also increases tentacle aggression and range, and allows them to critically strike
This effect has a 25 second cooldown
@@ -544,7 +544,7 @@ PrismaticHelmet: {
'''
+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
{0} to unleash a barrage of death lasers at the cursor for the next 5 seconds
This has a 30 second cooldown
'''
}
@@ -648,7 +648,7 @@ TarragonHeadMelee: {
SetBonusEffect:
'''
Taking damage gives the Tarra Life buff, which grants +1.5 HP/s life regen
Press {0} to cloak yourself in life energy that heavily reduces enemy contact damage for 10 seconds
{0} to cloak yourself in life energy that heavily reduces enemy contact damage for 10 seconds
This has a 30 second cooldown
'''
}
@@ -70,7 +70,7 @@ DesertProwlerHat: {
SetBonus:
'''
{$Common.RogueStealth}
[c/{1}:Sandsmoke Bomb - Press {2} to shroud yourself in a small cloud of sand]
[c/{1}:Sandsmoke Bomb - {2} to shroud yourself in a small cloud of sand]
[c/CCB648:While the sand cloud is active, gain increased mobility but heavily reduced defense]
[c/CCB648:Using a rogue weapon instantly dispels the sand cloak, but guarantees a supercrit for {3}% damage]
[c/CCB648:The supercrit applies only as long as the resulting hit wouldn't exceed {4} damage]
@@ -49,7 +49,7 @@ SetBonus: {
'''
Forbidden:
'''
{$LegacyTooltip.48} {$ArmorSetBonus.Forbidden}
{$LegacyTooltip.48} {0} to call an ancient storm to the cursor location
Minions no longer deal less damage while wielding magic weapons
'''
Frost:
@@ -126,6 +126,11 @@ SetBonus: {
Tin: "{0}% increased critical strike chance"
Tungsten: Grappling hooks pull and retract {0}% faster
MagicHat: Increases maximum mana by 40
Vortex:
'''
{$LegacyTooltip.48} {0} to toggle stealth,
increasing ranged ability and reducing chance for enemies to target you but slowing movement speed
'''
Wizard: 4% increased magic critical strike chance
CrystalAssassin:
'''