Update execute logic to also automatically devour
This commit is contained in:
parent
c580871a2d
commit
e31ed458bd
2 changed files with 2 additions and 1 deletions
|
|
@ -1006,6 +1006,7 @@ namespace RacesOfValheim
|
||||||
if (currentHp > 0 && currentHp <= maxHp * 0.20f && !c.IsBoss())
|
if (currentHp > 0 && currentHp <= maxHp * 0.20f && !c.IsBoss())
|
||||||
{
|
{
|
||||||
totalDamage = currentHp * 2f; // Lethal damage for execute
|
totalDamage = currentHp * 2f; // Lethal damage for execute
|
||||||
|
TryConsumeMob(c, maxHp); // Automatically devour when executed
|
||||||
}
|
}
|
||||||
|
|
||||||
HitData hd = new HitData();
|
HitData hd = new HitData();
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ Please write to us on my Discord server: **https://discord.gg/gbBEK2VTE**
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
**v1.3.5**
|
**v1.3.5**
|
||||||
- **Aswid**: Added an Execution mechanic to Blood Magic (Vampiric Aura): Non-boss enemies that fall below 20% health while inside the aura are instantly killed!
|
- **Aswid**: Added an Execution mechanic to Blood Magic (Vampiric Aura): Non-boss enemies that fall below 20% health while inside the aura are instantly killed and automatically devoured!
|
||||||
|
|
||||||
**v1.3.4**
|
**v1.3.4**
|
||||||
- **Aswid**: Refined the Aswid's diet. Restored Ashlands creatures (except undead like Charred and Morgen) and enabled a 4th stomach slot exclusively for Aswid prey.
|
- **Aswid**: Refined the Aswid's diet. Restored Ashlands creatures (except undead like Charred and Morgen) and enabled a 4th stomach slot exclusively for Aswid prey.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue