From 25590242bcefabf85ecfa61a8489b9f1d699bbeb Mon Sep 17 00:00:00 2001 From: XtraCube <72575280+XtraCube@users.noreply.github.com> Date: Thu, 19 Sep 2024 06:42:47 -0400 Subject: [PATCH] fix patch error --- MiraAPI/Patches/Roles/RoleOptionsCollectionPatch.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MiraAPI/Patches/Roles/RoleOptionsCollectionPatch.cs b/MiraAPI/Patches/Roles/RoleOptionsCollectionPatch.cs index e952fd4..7ce3312 100644 --- a/MiraAPI/Patches/Roles/RoleOptionsCollectionPatch.cs +++ b/MiraAPI/Patches/Roles/RoleOptionsCollectionPatch.cs @@ -17,9 +17,9 @@ public static class RoleOptionsCollectionPatch /// Return false to skip original method, true to not. [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; } @@ -47,9 +47,9 @@ public static class RoleOptionsCollectionPatch /// Return false to skip original method, true to not. [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; }