Add execute mechanic to Vampiric Aura and bump version to 1.3.5

This commit is contained in:
Ferdinando 2026-07-31 08:49:55 +02:00
commit c580871a2d
6 changed files with 140 additions and 1 deletions

View file

@ -992,6 +992,7 @@ namespace RacesOfValheim
hitAnything = true;
float maxHp = c.GetMaxHealth();
float currentHp = c.GetHealth();
float baseDamage = 1.0f; // Reduced by 50%
float bloodMagicFactor = Player.m_localPlayer.GetSkillFactor(Skills.SkillType.BloodMagic);
@ -1002,6 +1003,11 @@ namespace RacesOfValheim
totalDamage *= 0.5f;
}
if (currentHp > 0 && currentHp <= maxHp * 0.20f && !c.IsBoss())
{
totalDamage = currentHp * 2f; // Lethal damage for execute
}
HitData hd = new HitData();
hd.m_damage.m_damage = totalDamage;
hd.m_point = c.GetCenterPoint();