fix(fenrir): form hits build adrenaline like a weapon hit
Vanilla grants a hit's adrenaline inside Attack. The forms skip Attack and call Damage directly, so only the stagger bonus in Character.Damage reached the player: meadow mobs, quick to stagger, filled the bar, while Lox, Tar, Brutes and Furlings gave nothing until staggered. FormMelee.GrantAdrenaline adds the player's unarmed attack adrenaline times the target's multiplier after each claw or bite, and a fifth of it per 0.2s tick of the Cultist's fire.
This commit is contained in:
parent
e5a9dc0046
commit
d8dcecb573
2 changed files with 25 additions and 0 deletions
|
|
@ -752,6 +752,7 @@ namespace RacesOfValheim
|
|||
if (targetObj != null) hitObjects.Add(targetObj);
|
||||
FormMelee.LogHit(FormLabel, target, totalDamage);
|
||||
target.Damage(hitData);
|
||||
FormMelee.GrantAdrenaline(target);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1012,6 +1013,7 @@ namespace RacesOfValheim
|
|||
if (targetObj != null) hitObjects.Add(targetObj);
|
||||
FormMelee.LogHit(FormLabel, target, totalDamage);
|
||||
target.Damage(hitData);
|
||||
FormMelee.GrantAdrenaline(target, 0.2f); // one 0.2s tick: a full hit per second of breath
|
||||
|
||||
if (ZNetScene.instance != null)
|
||||
{
|
||||
|
|
@ -1141,6 +1143,7 @@ namespace RacesOfValheim
|
|||
if (targetObj != null) hitObjects.Add(targetObj);
|
||||
FormMelee.LogHit(FormLabel, target, totalDamage);
|
||||
target.Damage(hitData);
|
||||
FormMelee.GrantAdrenaline(target);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1355,6 +1358,7 @@ namespace RacesOfValheim
|
|||
if (targetObj != null) hitObjects.Add(targetObj);
|
||||
FormMelee.LogHit(FormLabel, target, totalDamage);
|
||||
target.Damage(hitData);
|
||||
FormMelee.GrantAdrenaline(target);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1562,6 +1566,7 @@ namespace RacesOfValheim
|
|||
if (targetObj != null) hitObjects.Add(targetObj);
|
||||
FormMelee.LogHit(FormLabel, target, totalDamage);
|
||||
target.Damage(hitData);
|
||||
FormMelee.GrantAdrenaline(target);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue