feat(aswid): replace infinite stamina with a boss-scaled pool
The Aswid shared the Skeleton's UseStamina skip, so stamina mods, foods and skills did nothing for it. It now spends stamina, scaled by a cost multiplier, and gets +25 max stamina plus 10 per boss added on top of its food. The stamina bar shows again. Draugh and Skeleton are unchanged.
This commit is contained in:
parent
7cd0aa234d
commit
ab0a21244d
10 changed files with 56 additions and 5 deletions
|
|
@ -1344,6 +1344,12 @@ namespace RacesOfValheim
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>Max stamina the race adds on top of food, at the given progression state.</summary>
|
||||
public static float GetStaminaBonus(int state)
|
||||
{
|
||||
return AswidConfig.BaseStaminaBonus.Value + AswidConfig.StaminaBonusPerState.Value * state;
|
||||
}
|
||||
|
||||
public static bool IsAswid()
|
||||
{
|
||||
return Player.m_localPlayer != null &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue