From aa4dd24ac3dfd71625d84b5458ee9e50f04826ac Mon Sep 17 00:00:00 2001
From: Atony <75191600+AtonyGit@users.noreply.github.com>
Date: Wed, 19 Aug 2026 13:31:36 -0500
Subject: [PATCH] Change options to V11
---
.../Patches/Roles/RoleOptionsCollectionPatch.cs | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/MiraAPI/Patches/Roles/RoleOptionsCollectionPatch.cs b/MiraAPI/Patches/Roles/RoleOptionsCollectionPatch.cs
index d4d80d3..011fc28 100644
--- a/MiraAPI/Patches/Roles/RoleOptionsCollectionPatch.cs
+++ b/MiraAPI/Patches/Roles/RoleOptionsCollectionPatch.cs
@@ -8,17 +8,17 @@ namespace MiraAPI.Patches.Roles;
///
/// Patches to return the correct role counts.
///
-[HarmonyPatch(typeof(RoleOptionsCollectionV10))]
+[HarmonyPatch(typeof(RoleOptionsCollectionV11))]
public static class RoleOptionsCollectionPatch
{
///
- /// This patch fixes being inlined (2025.9.9) in the original code.
+ /// This patch fixes being inlined (2025.9.9) in the original code.
///
[HarmonyPrefix]
- [HarmonyPatch(nameof(RoleOptionsCollectionV10.AnyRolesEnabled))]
- public static bool AnyRolesEnabledPrefix(RoleOptionsCollectionV10 __instance, ref bool __result)
+ [HarmonyPatch(nameof(RoleOptionsCollectionV11.AnyRolesEnabled))]
+ public static bool AnyRolesEnabledPrefix(RoleOptionsCollectionV11 __instance, ref bool __result)
{
- foreach (KeyValuePair keyValuePair in __instance.roles)
+ foreach (KeyValuePair keyValuePair in __instance.roles)
{
if (__instance.GetNumPerGame(keyValuePair.Key) > 0)
{
@@ -33,7 +33,7 @@ public static class RoleOptionsCollectionPatch
///
/// Return to skip original method, to not.
[HarmonyPrefix]
- [HarmonyPatch(nameof(RoleOptionsCollectionV10.GetChancePerGame))]
+ [HarmonyPatch(nameof(RoleOptionsCollectionV11.GetChancePerGame))]
public static bool GetChancePrefix(RoleTypes role, ref int __result)
{
if (!CustomRoleManager.GetCustomRoleBehaviour(role, out var customRole) || customRole == null)
@@ -63,7 +63,7 @@ public static class RoleOptionsCollectionPatch
///
/// Return to skip original method, to not.
[HarmonyPrefix]
- [HarmonyPatch(nameof(RoleOptionsCollectionV10.GetNumPerGame))]
+ [HarmonyPatch(nameof(RoleOptionsCollectionV11.GetNumPerGame))]
public static bool GetNumPrefix(RoleTypes role, ref int __result)
{
if (!CustomRoleManager.GetCustomRoleBehaviour(role, out var customRole) || customRole == null)