Necklace of Vexation adjustments

Acid Venom is now always inflicted
Damage scales linearly from 0 - 30% based on health lost. This is dynamically reflected in the tooltip
This commit is contained in:
Doze-Zoze committed 2025-03-31 21:15:22 -05:00
1 parent 26c2aae298
commit da2bae33f3
4 files changed
+13 -10

No files matched your search

+1 -2
View File
@@ -3707,8 +3707,7 @@ namespace CalamityMod.CalPlayer
if (vexation)
{
if (Player.statLife <= (int)(Player.statLifeMax2 * 0.5))
Player.GetDamage<GenericDamageClass>() += 0.2f;
Player.GetDamage<GenericDamageClass>() += 0.3f* (1 - Player.statLife / (float)Player.statLifeMax2);
}
if (ataxiaBlaze)
-5
View File
@@ -1256,12 +1256,7 @@ namespace CalamityMod.CalPlayer
}
if (vexation)
{
if ((Player.armor[0].type == ItemType<ReaverHeadTank>() || Player.armor[0].type == ItemType<ReaverHeadExplore>() ||
Player.armor[0].type == ItemType<ReaverHeadMobility>()) && Player.armor[1].type == ItemType<ReaverScaleMail>() &&
Player.armor[2].type == ItemType<ReaverCuisses>())
{
target.AddBuff(BuffID.Venom, 120, false);
}
}
}
#endregion
+9 -1
View File
@@ -1,4 +1,5 @@
using CalamityMod.CalPlayer;
using System.Collections.Generic;
using CalamityMod.CalPlayer;
using CalamityMod.Items.Materials;
using Terraria;
using Terraria.ID;
@@ -32,5 +33,12 @@ namespace CalamityMod.Items.Accessories
AddTile(TileID.MythrilAnvil).
Register();
}
public override void ModifyTooltips(List<TooltipLine> list)
{
var player = Main.LocalPlayer;
if (player != null)
list.FindAndReplace("[DAMAGE]", (0.3f * (1 - player.statLife / (float)player.statLifeMax2)).ToPercent());
}
}
}
@@ -1155,8 +1155,9 @@ NecklaceofVexation: {
DisplayName: Necklace of Vexation
Tooltip:
'''
20% increased damage when under 50% life
All attacks inflict acid venom while wearing Reaver armor
Up to 30% increased damage the lower your life is
Current boost: [DAMAGE]%
All attacks inflict acid venom
Revenge
'''
}