Mage Hat and Robe nerfs

Wizard Hat: Set bonus magic crit chance 10% -> 4%
Magic Hat: No magic damage, magic crit chance 5% -> 6% (vanilla value), set bonus max mana 60 -> 40
Amethyst: Mana cost 5% -> 4%
Topaz: Max mana 40 -> 20, mana cost 7% -> 5%
Sapphire: Mana cost 9% -> 6%
Emerald: Max mana 60 -> 40, mana cost 11% -> 7%
Ruby/Amber: Mana cost 13% -> 8%
Diamond: Max mana 80 -> 60, mana cost 15% -> 9%
This commit is contained in:
CongratsIsTrash committed 2024-02-05 23:11:22 -05:00
1 parent c11e273381
commit 4fc6533f04
4 files changed
+70 -4

No files matched your search

+43 -2
View File
@@ -935,6 +935,10 @@ namespace CalamityMod.Items
if (!string.IsNullOrEmpty(managedArmorSetName))
return managedArmorSetName;
if (head.type == ItemID.WizardHat && (body.type == ItemID.AmethystRobe || body.type == ItemID.TopazRobe || body.type == ItemID.SapphireRobe || body.type == ItemID.EmeraldRobe || body.type == ItemID.RubyRobe || body.type == ItemID.DiamondRobe || body.type == ItemID.AmberRobe))
return "WizardHat";
if (head.type == ItemID.MagicHat && (body.type == ItemID.AmethystRobe || body.type == ItemID.TopazRobe || body.type == ItemID.SapphireRobe || body.type == ItemID.EmeraldRobe || body.type == ItemID.RubyRobe || body.type == ItemID.DiamondRobe || body.type == ItemID.AmberRobe))
return "MagicHat";
if (head.type == ItemID.CrystalNinjaHelmet && body.type == ItemID.CrystalNinjaChestplate && legs.type == ItemID.CrystalNinjaLeggings)
return "CrystalAssassin";
if (head.type == ItemID.SquireGreatHelm && body.type == ItemID.SquirePlating && legs.type == ItemID.SquireGreaves)
@@ -964,6 +968,16 @@ namespace CalamityMod.Items
VanillaArmorChangeManager.CreateTooltipManuallyAsNecessary(player);
VanillaArmorChangeManager.ApplyPotentialEffectsTo(player);
if (set == "WizardHat")
{
player.GetCritChance<MagicDamageClass>() -= 6;
player.setBonus = CalamityUtils.GetTextValue("Vanilla.Armor.SetBonus.Wizard");
}
if (set == "MagicHat")
{
player.statManaMax2 -= 20;
player.setBonus = CalamityUtils.GetTextValue("Vanilla.Armor.SetBonus.MagicHat");
}
if (set == "CrystalAssassin")
{
player.setBonus = CalamityUtils.GetTextValue("Vanilla.Armor.SetBonus.CrystalAssassin");
@@ -1034,8 +1048,35 @@ namespace CalamityMod.Items
switch (item.type)
{
case ItemID.MagicHat:
player.GetDamage<MagicDamageClass>() -= 0.01f;
player.GetCritChance<MagicDamageClass>() -= 1;
player.GetDamage<MagicDamageClass>() -= 0.06f;
break;
case ItemID.AmethystRobe:
player.manaCost += 0.01f; // 5% to 4%
break;
case ItemID.TopazRobe:
player.statManaMax2 -= 20;
player.manaCost += 0.02f ; // 7% to 5%
break;
case ItemID.SapphireRobe:
player.manaCost += 0.03f; // 9% to 6%
break;
case ItemID.EmeraldRobe:
player.statManaMax2 -= 20;
player.manaCost += 0.04f; // 11% to 7%
break;
case ItemID.RubyRobe:
case ItemID.AmberRobe:
player.manaCost += 0.05f; // 13% to 8%
break;
case ItemID.DiamondRobe:
player.statManaMax2 -= 20;
player.manaCost += 0.06f; // 15% to 9%
break;
case ItemID.Gi:
+24 -1
View File
@@ -664,7 +664,30 @@ namespace CalamityMod.Items
// Magic Hat nerf
if (item.type == ItemID.MagicHat)
EditTooltipByNum(0, (line) => line.Text = "5% increased magic damage and critical strike chance");
EditTooltipByNum(0, (line) => line.Text = "6% increased magic critical strike chance");
// Gem Robe nerfs
if (item.type == ItemID.AmethystRobe)
EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("5%", "4%"));
if (item.type == ItemID.TopazRobe)
{
EditTooltipByNum(0, (line) => line.Text = line.Text.Replace("40", "20"));
EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("7%", "5%"));
}
if (item.type == ItemID.SapphireRobe)
EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("9%", "6%"));
if (item.type == ItemID.EmeraldRobe)
{
EditTooltipByNum(0, (line) => line.Text = line.Text.Replace("60", "40"));
EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("11%", "7%"));
}
if (item.type == ItemID.RubyRobe || item.type == ItemID.AmberRobe)
EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("13%", "8%"));
if (item.type == ItemID.DiamondRobe)
{
EditTooltipByNum(0, (line) => line.Text = line.Text.Replace("80", "60"));
EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("15%", "9%"));
}
// Worm Scarf only gives 10% DR instead of 17%
if (item.type == ItemID.WormScarf)
@@ -36,6 +36,6 @@ namespace CalamityMod.Items.VanillaArmorChanges
public override void ApplyLegPieceEffect(Player player) => player.GetCritChance<MagicDamageClass>() -= 3;
public override void ApplyArmorSetBonus(Player player) => player.manaCost *= 1.0714f; // Reduces to -10% mana cost
public override void ApplyArmorSetBonus(Player player) => player.manaCost += 0.06f; // Reduces to -10% mana cost
}
}
@@ -111,6 +111,8 @@ SetBonus: {
Increases all knockback by 33%, this counts for the above boost
Current bonus: {0}% critical strike chance from {1} knockback
'''
MagicHat: Increases maximum mana by 40
Wizard: 4% increased magic critical strike chance
CrystalAssassin:
'''
Allows the ability to dash