diff --git a/AmongUs.props b/AmongUs.props index 6f6e0f9..eae6aa9 100644 --- a/AmongUs.props +++ b/AmongUs.props @@ -2,7 +2,7 @@ - + diff --git a/MiraAPI/Patches/DetectiveNotesMinigamePatch.cs b/MiraAPI/Patches/DetectiveNotesMinigamePatch.cs index 1324dde..b0e37e7 100644 --- a/MiraAPI/Patches/DetectiveNotesMinigamePatch.cs +++ b/MiraAPI/Patches/DetectiveNotesMinigamePatch.cs @@ -7,12 +7,12 @@ using UnityEngine; namespace MiraAPI.Patches; -[HarmonyPatch(typeof(DetectiveNotesMinigame), nameof(DetectiveNotesMinigame.OpenBodyPopup))] +[HarmonyPatch(typeof(DetectiveNotesMinigame), nameof(DetectiveNotesMinigame.SetImpostorPopup))] public static class DetectiveNotesMinigamePatch { public static void Prefix(DetectiveNotesMinigame __instance, bool active) { - __instance.impostorTypePopup.SetActive(active); + __instance.impostorTypePopup.gameObject.SetActive(active); if (!active) { ControllerManager.Instance.CloseOverlayMenu(__instance.ImpostorOverlay); @@ -22,23 +22,21 @@ public static class DetectiveNotesMinigamePatch } if (__instance.impostorButton != null) { - ControllerManager.Instance.OpenOverlayMenu(__instance.ImpostorOverlay, null, __instance.ImpostorIconControllerSelectables[0], __instance.ImpostorIconControllerSelectables, false); + ControllerManager.Instance.OpenOverlayMenu(__instance.ImpostorOverlay, __instance.impostorTypePopup, __instance.ImpostorIconControllerSelectables[0], __instance.ImpostorIconControllerSelectables, false); return; } __instance.impostorButton = new List(); - int num = 0; var allRoles = DestroyableSingleton.Instance.AllRoles; var customRoles = CustomRoleManager.CustomRoleBehaviours; foreach (var role in allRoles) { if (role.TeamType != RoleTeamTypes.Impostor || role.Role == RoleTypes.ImpostorGhost || customRoles.Contains(role) ) continue; - GameObject gameObject = Object.Instantiate(__instance.impostorTypePrefab, __instance.impostorTypeParent); + var gameObject = Object.Instantiate(__instance.impostorTypePrefab, __instance.impostorTypeParent); __instance.impostorButton.Add(gameObject); gameObject.GetComponent().Initialize(__instance, role); - num++; __instance.ImpostorIconControllerSelectables.Add(gameObject.GetComponent()); } - ControllerManager.Instance.OpenOverlayMenu(__instance.ImpostorOverlay, null, __instance.ImpostorIconControllerSelectables[0], __instance.ImpostorIconControllerSelectables, false); + ControllerManager.Instance.OpenOverlayMenu(__instance.ImpostorOverlay, __instance.impostorTypePopup, __instance.ImpostorIconControllerSelectables[0], __instance.ImpostorIconControllerSelectables, false); } -} \ No newline at end of file +} diff --git a/MiraAPI/Patches/Events/FreeplayRoundStartPatch.cs b/MiraAPI/Patches/Events/FreeplayRoundStartPatch.cs index 12c95c1..b737251 100644 --- a/MiraAPI/Patches/Events/FreeplayRoundStartPatch.cs +++ b/MiraAPI/Patches/Events/FreeplayRoundStartPatch.cs @@ -4,10 +4,10 @@ using MiraAPI.Events.Vanilla.Gameplay; namespace MiraAPI.Patches.Events; -[HarmonyPatch(typeof(TutorialManager._RunTutorial_d__3), nameof(TutorialManager._RunTutorial_d__3.MoveNext))] +[HarmonyPatch(typeof(TutorialManager._RunTutorial_d__8), nameof(TutorialManager._RunTutorial_d__8.MoveNext))] public static class FreeplayRoundStartPatch { - public static void Postfix(TutorialManager._RunTutorial_d__3 __instance, ref bool __result) + public static void Postfix(TutorialManager._RunTutorial_d__8 __instance, ref bool __result) { if (!__result) { diff --git a/nuget.config b/nuget.config index 06c3fec..4be1f32 100644 --- a/nuget.config +++ b/nuget.config @@ -6,5 +6,6 @@ + diff --git a/packages/AmongUs.GameLibs.Steam.2025.10.14.nupkg b/packages/AmongUs.GameLibs.Steam.2025.10.14.nupkg new file mode 100644 index 0000000..f693dda Binary files /dev/null and b/packages/AmongUs.GameLibs.Steam.2025.10.14.nupkg differ diff --git a/packages/packages.txt b/packages/packages.txt new file mode 100644 index 0000000..3c00bf1 --- /dev/null +++ b/packages/packages.txt @@ -0,0 +1,3 @@ +here to ensure git doesn't delete empty folders + +local packages are stored in this directory \ No newline at end of file