Initial commit
This commit is contained in:
commit
c4a24c9fdf
142 changed files with 15491 additions and 0 deletions
20
JotunnModStub/Trol/TrolRegenPatches.cs
Normal file
20
JotunnModStub/Trol/TrolRegenPatches.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue