Skip to content

Commit

Permalink
fix patch error
Browse files Browse the repository at this point in the history
  • Loading branch information
XtraCube committed Sep 19, 2024
1 parent 9f99f6a commit 2666aa1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions MiraAPI/Patches/Roles/RoleOptionsCollectionPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ public static class RoleOptionsCollectionPatch
/// <returns>Return false to skip original method, true to not.</returns>
[HarmonyPrefix]
[HarmonyPatch(nameof(RoleOptionsCollectionV08.GetChancePerGame))]
public static bool GetChancePrefix(RoleTypes roleType, ref int __result)
public static bool GetChancePrefix(RoleTypes role, ref int __result)
{
if (!CustomRoleManager.GetCustomRoleBehaviour(roleType, out var customRole) || customRole == null)
if (!CustomRoleManager.GetCustomRoleBehaviour(role, out var customRole) || customRole == null)
{
return true;
}
Expand Down Expand Up @@ -47,9 +47,9 @@ public static bool GetChancePrefix(RoleTypes roleType, ref int __result)
/// <returns>Return false to skip original method, true to not.</returns>
[HarmonyPrefix]
[HarmonyPatch(nameof(RoleOptionsCollectionV08.GetNumPerGame))]
public static bool GetNumPrefix(RoleTypes roleType, ref int __result)
public static bool GetNumPrefix(RoleTypes role, ref int __result)
{
if (!CustomRoleManager.GetCustomRoleBehaviour(roleType, out var customRole) || customRole == null)
if (!CustomRoleManager.GetCustomRoleBehaviour(role, out var customRole) || customRole == null)
{
return true;
}
Expand Down

0 comments on commit 2666aa1

Please sign in to comment.