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
|
|
@ -62,7 +62,8 @@ namespace RacesOfValheim
|
|||
{
|
||||
public static bool Prefix(Player __instance)
|
||||
{
|
||||
if ((SkeletonRace.IsSkeleton() || AswidRace.IsAswid() || DraughRace.IsDraugh()) && __instance == Player.m_localPlayer)
|
||||
// The Aswid used to be on this list. It spends stamina now, see Aswid_UseStamina_Patch.
|
||||
if ((SkeletonRace.IsSkeleton() || DraughRace.IsDraugh()) && __instance == Player.m_localPlayer)
|
||||
{
|
||||
// Infinite stamina: skip the original UseStamina method
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue