Buff Crimson Armor from 5% to 6% damage per piece. Increase life regen on chestplate to 2.
This commit is contained in:
1 parent
aa27091e82
commit
3aac8dbc4e
2 files changed
+11
-6
No files matched your search
@@ -846,8 +846,9 @@ namespace CalamityMod.Items
|
||||
{
|
||||
EditTooltipByNum(0, (line) =>
|
||||
{
|
||||
string newTooltip = line.Text.Replace("3%", "5%");
|
||||
newTooltip += "\n+0.5 HP/s life regen";
|
||||
string newTooltip = line.Text.Replace("3%", "6%");
|
||||
// Chest piece has 2 regen instead of 1
|
||||
newTooltip += item.type == ItemID.CrimsonScalemail ? "\n+1 HP/s life regen" : "\n+0.5 HP/s life regen";
|
||||
line.Text = newTooltip;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -14,17 +14,17 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
|
||||
public override string ArmorSetName => "Crimson";
|
||||
|
||||
public const float ArmorPieceDamage = 0.05f;
|
||||
public const float ArmorPieceDamage = 0.06f;
|
||||
public const int ArmorPieceLifeRegen = 1;
|
||||
public const int ChestPieceBonusLifeRegen = 1;
|
||||
|
||||
// Set bonus clarification
|
||||
public override void UpdateSetBonusText(ref string setBonusText)
|
||||
{
|
||||
Player player = Main.LocalPlayer;
|
||||
setBonusText = $"{CalamityUtils.GetTextValue($"Vanilla.Armor.SetBonus.{ArmorSetName}")}";
|
||||
}
|
||||
|
||||
private void ApplyAnyPieceEffect(Player player)
|
||||
private static void ApplyAnyPieceEffect(Player player)
|
||||
{
|
||||
// Remove the vanilla +3% damage and add the new damage value at the same time
|
||||
player.GetDamage<GenericDamageClass>() += ArmorPieceDamage - 0.03f;
|
||||
@@ -35,7 +35,11 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
|
||||
public override void ApplyHeadPieceEffect(Player player) => ApplyAnyPieceEffect(player);
|
||||
|
||||
public override void ApplyBodyPieceEffect(Player player) => ApplyAnyPieceEffect(player);
|
||||
public override void ApplyBodyPieceEffect(Player player)
|
||||
{
|
||||
ApplyAnyPieceEffect(player);
|
||||
player.lifeRegen += ChestPieceBonusLifeRegen;
|
||||
}
|
||||
|
||||
public override void ApplyLegPieceEffect(Player player) => ApplyAnyPieceEffect(player);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user