mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-19 15:51:48 +00:00
update to latest among us
This commit is contained in:
1 parent
3c51c88963
commit
eb7abecd75
6 files changed
+12
-10
No files matched your search
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Reactor" Version="2.3.1" />
|
<PackageReference Include="Reactor" Version="2.3.1" />
|
||||||
<PackageReference Include="BepInEx.Unity.IL2CPP" Version="6.0.0-be.735" Private="false" ExcludeAssets="runtime;native" />
|
<PackageReference Include="BepInEx.Unity.IL2CPP" Version="6.0.0-be.735" Private="false" ExcludeAssets="runtime;native" />
|
||||||
<PackageReference Include="AmongUs.GameLibs.Steam" Version="2025.9.9" PrivateAssets="all" />
|
<PackageReference Include="AmongUs.GameLibs.Steam" Version="2025.10.14" PrivateAssets="all" />
|
||||||
|
|
||||||
<PackageReference Include="BepInEx.AutoPlugin" Version="1.1.0" PrivateAssets="all" />
|
<PackageReference Include="BepInEx.AutoPlugin" Version="1.1.0" PrivateAssets="all" />
|
||||||
<PackageReference Include="BepInEx.IL2CPP.MSBuild" Version="2.1.0-rc.1" PrivateAssets="all" ExcludeAssets="runtime" />
|
<PackageReference Include="BepInEx.IL2CPP.MSBuild" Version="2.1.0-rc.1" PrivateAssets="all" ExcludeAssets="runtime" />
|
||||||
|
|||||||
@@ -7,12 +7,12 @@ using UnityEngine;
|
|||||||
|
|
||||||
namespace MiraAPI.Patches;
|
namespace MiraAPI.Patches;
|
||||||
|
|
||||||
[HarmonyPatch(typeof(DetectiveNotesMinigame), nameof(DetectiveNotesMinigame.OpenBodyPopup))]
|
[HarmonyPatch(typeof(DetectiveNotesMinigame), nameof(DetectiveNotesMinigame.SetImpostorPopup))]
|
||||||
public static class DetectiveNotesMinigamePatch
|
public static class DetectiveNotesMinigamePatch
|
||||||
{
|
{
|
||||||
public static void Prefix(DetectiveNotesMinigame __instance, bool active)
|
public static void Prefix(DetectiveNotesMinigame __instance, bool active)
|
||||||
{
|
{
|
||||||
__instance.impostorTypePopup.SetActive(active);
|
__instance.impostorTypePopup.gameObject.SetActive(active);
|
||||||
if (!active)
|
if (!active)
|
||||||
{
|
{
|
||||||
ControllerManager.Instance.CloseOverlayMenu(__instance.ImpostorOverlay);
|
ControllerManager.Instance.CloseOverlayMenu(__instance.ImpostorOverlay);
|
||||||
@@ -22,23 +22,21 @@ public static class DetectiveNotesMinigamePatch
|
|||||||
}
|
}
|
||||||
if (__instance.impostorButton != null)
|
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;
|
return;
|
||||||
}
|
}
|
||||||
__instance.impostorButton = new List<GameObject>();
|
__instance.impostorButton = new List<GameObject>();
|
||||||
int num = 0;
|
|
||||||
var allRoles = DestroyableSingleton<RoleManager>.Instance.AllRoles;
|
var allRoles = DestroyableSingleton<RoleManager>.Instance.AllRoles;
|
||||||
var customRoles = CustomRoleManager.CustomRoleBehaviours;
|
var customRoles = CustomRoleManager.CustomRoleBehaviours;
|
||||||
foreach (var role in allRoles)
|
foreach (var role in allRoles)
|
||||||
{
|
{
|
||||||
if (role.TeamType != RoleTeamTypes.Impostor || role.Role == RoleTypes.ImpostorGhost || customRoles.Contains(role) )
|
if (role.TeamType != RoleTeamTypes.Impostor || role.Role == RoleTypes.ImpostorGhost || customRoles.Contains(role) )
|
||||||
continue;
|
continue;
|
||||||
GameObject gameObject = Object.Instantiate<GameObject>(__instance.impostorTypePrefab, __instance.impostorTypeParent);
|
var gameObject = Object.Instantiate(__instance.impostorTypePrefab, __instance.impostorTypeParent);
|
||||||
__instance.impostorButton.Add(gameObject);
|
__instance.impostorButton.Add(gameObject);
|
||||||
gameObject.GetComponent<DetectiveImpostorType>().Initialize(__instance, role);
|
gameObject.GetComponent<DetectiveImpostorType>().Initialize(__instance, role);
|
||||||
num++;
|
|
||||||
__instance.ImpostorIconControllerSelectables.Add(gameObject.GetComponent<PassiveButton>());
|
__instance.ImpostorIconControllerSelectables.Add(gameObject.GetComponent<PassiveButton>());
|
||||||
}
|
}
|
||||||
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4,10 +4,10 @@ using MiraAPI.Events.Vanilla.Gameplay;
|
|||||||
|
|
||||||
namespace MiraAPI.Patches.Events;
|
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 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)
|
if (!__result)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,5 +6,6 @@
|
|||||||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
|
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
|
||||||
<add key="Reactor" value="https://nuget.reactor.gg/v3/index.json" />
|
<add key="Reactor" value="https://nuget.reactor.gg/v3/index.json" />
|
||||||
<add key="Samboy063" value="https://nuget.samboy.dev/v3/index.json" />
|
<add key="Samboy063" value="https://nuget.samboy.dev/v3/index.json" />
|
||||||
|
<add key="local" value="./packages" />
|
||||||
</packageSources>
|
</packageSources>
|
||||||
</configuration>
|
</configuration>
|
||||||
Binary file not shown.
@@ -0,0 +1,3 @@
|
|||||||
|
here to ensure git doesn't delete empty folders
|
||||||
|
|
||||||
|
local packages are stored in this directory
|
||||||
Reference in new issue
Block a user