This commit is contained in:
Gurge44 committed 2025-04-22 22:41:15 +02:00
1 parent e0b03466b3
commit 5f3c08b842
3 files changed
+15 -5

No files matched your search

+4 -1
View File
@@ -11,6 +11,8 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Optimize>True</Optimize>
<AssemblyName>$(MSBuildProjectName)</AssemblyName>
<Configurations>Debug;Release;Android</Configurations>
<Platforms>AnyCPU</Platforms>
</PropertyGroup>
<ItemGroup>
@@ -24,7 +26,8 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="AmongUs.GameLibs.Steam" Version="2025.3.25"/>
<PackageReference Include="AmongUs.GameLibs.Steam" Version="2025.3.25" PrivateAssets="all" Condition="'$(Configuration)' == 'Release' Or '$(Configuration)' == 'Debug'"/>
<PackageReference Include="AmongUs.GameLibs.Android" Version="2025.3.25" PrivateAssets="all" Condition="'$(Configuration)' == 'Android'"/>
<PackageReference Include="BepInEx.IL2CPP.MSBuild" Version="2.1.0-rc.1"/>
<PackageReference Include="BepInEx.Unity.IL2CPP" Version="6.0.0-be.692" Private="false" ExcludeAssets="runtime;native"/>
<PackageReference Include="Samboy063.Cpp2IL.Core" Version="2022.1.0-pre-release.19"/>
+3
View File
@@ -14,12 +14,15 @@ Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
Android|Any CPU = Android|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{807AD310-21DA-4160-9D72-926745B02A85}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{807AD310-21DA-4160-9D72-926745B02A85}.Debug|Any CPU.Build.0 = Debug|Any CPU
{807AD310-21DA-4160-9D72-926745B02A85}.Release|Any CPU.ActiveCfg = Release|Any CPU
{807AD310-21DA-4160-9D72-926745B02A85}.Release|Any CPU.Build.0 = Release|Any CPU
{807AD310-21DA-4160-9D72-926745B02A85}.Android|Any CPU.ActiveCfg = Android|Any CPU
{807AD310-21DA-4160-9D72-926745B02A85}.Android|Any CPU.Build.0 = Android|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
+8 -4
View File
@@ -302,7 +302,7 @@ internal static class BeginCrewmatePatch
teamToDisplay = new();
teamToDisplay.Add(PlayerControl.LocalPlayer);
__instance.BeginImpostor(teamToDisplay);
__instance.overlayHandle.color = Palette.ImpostorRed;
__instance.BackgroundBar.material.color = Palette.ImpostorRed;
return false;
}
else if (role.IsCoven())
@@ -782,7 +782,7 @@ internal static class BeginImpostorPatch
{
yourTeam = new();
yourTeam.Add(PlayerControl.LocalPlayer);
__instance.overlayHandle.color = Palette.ImpostorRed;
__instance.BackgroundBar.material.color = Palette.ImpostorRed;
return true;
}
@@ -793,7 +793,7 @@ internal static class BeginImpostorPatch
foreach (PlayerControl pc in Main.AllPlayerControls.Where(x => !x.AmOwner)) yourTeam.Add(pc);
__instance.BeginCrewmate(yourTeam);
__instance.overlayHandle.color = Palette.CrewmateBlue;
__instance.BackgroundBar.material.color = Palette.CrewmateBlue;
return false;
}
@@ -804,7 +804,7 @@ internal static class BeginImpostorPatch
foreach (PlayerControl pc in Main.AllPlayerControls.Where(x => !x.AmOwner)) yourTeam.Add(pc);
__instance.BeginCrewmate(yourTeam);
__instance.overlayHandle.color = new Color32(255, 171, 27, byte.MaxValue);
__instance.BackgroundBar.material.color = new Color32(255, 171, 27, byte.MaxValue);
return false;
}
@@ -818,7 +818,11 @@ internal static class BeginImpostorPatch
}
}
#if ANDROID
[HarmonyPatch(typeof(HudManager), nameof(HudManager.OnGameStart))]
#else
[HarmonyPatch(typeof(IntroCutscene), nameof(IntroCutscene.OnDestroy))]
#endif
internal static class IntroCutsceneDestroyPatch
{
public static void Postfix( /*IntroCutscene __instance*/)