bugfix 07/10/26 + evil laugh

This commit is contained in:
Ferdinando 2026-10-07 17:31:29 +02:00
commit 0159f1e8c4
11 changed files with 417 additions and 8 deletions

View file

@ -452,6 +452,30 @@ namespace RacesOfValheim
}
}
/// <summary>
/// The rest of the human's attack loop - crossbow reload and draw, and the animation event that
/// fires a held attack - shut for the form too. See Fenrir's BlockPlayerAttackInputPatch.
/// </summary>
[HarmonyPatch(typeof(Player), "PlayerAttackInput")]
public static class Sverm_RavagerBlockAttackInput_Patch
{
public static bool Prefix(Player __instance)
{
if (__instance != Player.m_localPlayer) return true;
return !IsActive;
}
}
[HarmonyPatch(typeof(Humanoid), nameof(Humanoid.OnAttackTrigger))]
public static class Sverm_RavagerBlockAttackTrigger_Patch
{
public static bool Prefix(Humanoid __instance)
{
if (__instance != Player.m_localPlayer) return true;
return !IsActive;
}
}
/// <summary>No food, no mead, no potions. The form is meant to be survived, not sustained.</summary>
[HarmonyPatch(typeof(Humanoid), "UseItem")]
public static class Sverm_RavagerUseItem_Patch