Add execute mechanic to Vampiric Aura and bump version to 1.3.5
This commit is contained in:
parent
1b37d924a2
commit
c580871a2d
6 changed files with 140 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue