20 lines
643 B
C#
20 lines
643 B
C#
using HarmonyLib;
|
|
|
|
namespace RacesOfValheim
|
|
{
|
|
[HarmonyPatch(typeof(SEMan), "ModifyHealthRegen")]
|
|
public static class Trol_SEMan_ModifyHealthRegen_Patch
|
|
{
|
|
public static void Postfix(SEMan __instance, ref float regenMultiplier)
|
|
{
|
|
if (__instance == Player.m_localPlayer?.GetSEMan() && TrolRace.IsTrol())
|
|
{
|
|
// After The Elder (Progression State >= 2)
|
|
if (BossProgressionManager.GetCurrentProgressionState() >= 3)
|
|
{
|
|
regenMultiplier *= 1.10f; // +10% passive health regeneration
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|