bugfix 07/10/26 + evil laugh
This commit is contained in:
parent
eaa87f892a
commit
0159f1e8c4
11 changed files with 417 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue