fix for 8.13

This commit is contained in:
XtraCube committed 2024-08-22 16:27:59 -04:00
1 parent c71d527712
commit 826e172a3a
2 files changed
+5 -10

No files matched your search

+2 -7
View File
@@ -9,12 +9,7 @@
<Description>Simple and easy to use Among Us modding API.</Description>
<Authors>Angxl, XtraCube</Authors>
</PropertyGroup>
<PropertyGroup>
<GamePlatform Condition="'$(GamePlatform)' == ''">Steam</GamePlatform>
<GameVersion Condition="'$(GamePlatform)' == 'Steam'">2024.8.13</GameVersion>
</PropertyGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\Cog.png" />
<EmbeddedResource Include="Resources\CogActive.png" />
@@ -29,7 +24,7 @@
<PackageReference Include="Reactor" Version="2.3.0" />
<PackageReference Include="BepInEx.Unity.IL2CPP" Version="6.0.0-be.697" Private="false" ExcludeAssets="runtime;native" />
<PackageReference Include="Iced" Version="1.21.0" />
<PackageReference Include="AmongUs.GameLibs.Steam" Version="$(GameVersion)" PrivateAssets="all" />
<PackageReference Include="AmongUs.GameLibs.Steam" Version="2024.8.13" 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">
+3 -3
View File
@@ -11,16 +11,16 @@ public static class EjectionPatches
[HarmonyPatch(nameof(ExileController.Begin))]
public static void Begin(ExileController __instance)
{
if (!__instance.exiled?.Role || __instance.exiled.Role is not ICustomRole role)
if (!__instance.initData.networkedPlayer.Role || __instance.initData.networkedPlayer.Role is not ICustomRole role)
{
return;
}
if (role.GetCustomEjectionMessage(__instance.exiled) == null)
if (role.GetCustomEjectionMessage(__instance.initData.networkedPlayer) == null)
{
return;
}
__instance.completeString = role.GetCustomEjectionMessage(__instance.exiled);
__instance.completeString = role.GetCustomEjectionMessage(__instance.initData.networkedPlayer);
}
}