bugfix 25/09/26

This commit is contained in:
Ferdinando 2026-09-25 12:26:51 +02:00
commit f64fe83d9d
6 changed files with 111 additions and 8 deletions

View file

@ -51,7 +51,8 @@ namespace RacesOfValheim
}
}
[HarmonyPatch(typeof(TreeBase), "RPC_Damage")]
// Patched on Damage (attacker side), not RPC_Damage: the RPC runs on the object owner (host), where the attacker is not the local player.
[HarmonyPatch(typeof(TreeBase), "Damage")]
public static class Trol_TreeBase_RPC_Damage_Patch
{
public static void Prefix(HitData hit)
@ -60,7 +61,7 @@ namespace RacesOfValheim
}
}
[HarmonyPatch(typeof(TreeLog), "RPC_Damage")]
[HarmonyPatch(typeof(TreeLog), "Damage")]
public static class Trol_TreeLog_RPC_Damage_Patch
{
public static void Prefix(HitData hit)
@ -69,7 +70,7 @@ namespace RacesOfValheim
}
}
[HarmonyPatch(typeof(Destructible), "RPC_Damage")]
[HarmonyPatch(typeof(Destructible), "Damage")]
public static class Trol_Destructible_RPC_Damage_Patch
{
public static void Prefix(HitData hit, Destructible __instance)
@ -81,7 +82,7 @@ namespace RacesOfValheim
}
}
[HarmonyPatch(typeof(MineRock), "RPC_Hit")]
[HarmonyPatch(typeof(MineRock), "Damage")]
public static class Trol_MineRock_RPC_Hit_Patch
{
public static void Prefix(HitData hit)
@ -90,7 +91,7 @@ namespace RacesOfValheim
}
}
[HarmonyPatch(typeof(MineRock5), "DamageArea")]
[HarmonyPatch(typeof(MineRock5), "Damage")]
public static class Trol_MineRock5_DamageArea_Patch
{
public static void Prefix(HitData hit)