Skip to content

Commit

Permalink
Latest Among Us version support + portal & bomb null reference fix + …
Browse files Browse the repository at this point in the history
…portal open field location display fix
  • Loading branch information
EnoPM committed Oct 25, 2023
1 parent 6b5a95c commit 7d06724
Show file tree
Hide file tree
Showing 13 changed files with 85 additions and 394 deletions.
6 changes: 3 additions & 3 deletions BetterOtherRoles/BetterOtherRoles.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Version>1.4.8</Version>
<Version>1.5.0</Version>
<Description>BetterOtherRoles</Description>
<Authors>EnoPM</Authors>
<LangVersion>latest</LangVersion>
Expand All @@ -15,8 +15,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="AmongUs.GameLibs.Steam" Version="2023.7.11" />
<PackageReference Include="BepInEx.Unity.IL2CPP" Version="6.0.0-be.670" />
<PackageReference Include="AmongUs.GameLibs.Steam" Version="2023.10.24" />
<PackageReference Include="BepInEx.Unity.IL2CPP" Version="6.0.0-be.674" />
<PackageReference Include="BepInEx.IL2CPP.MSBuild" Version="2.1.0-rc.1" />
</ItemGroup>

Expand Down
16 changes: 8 additions & 8 deletions BetterOtherRoles/Buttons.cs
Original file line number Diff line number Diff line change
Expand Up @@ -312,18 +312,18 @@ public static void createButtonsPostfix(HudManager __instance) {
AmongUsClient.Instance.FinishRpcImmediately(writer);
RPCProcedure.engineerFixLights();
} else if (task.TaskType == TaskTypes.RestoreOxy) {
MapUtilities.CachedShipStatus.RpcRepairSystem(SystemTypes.LifeSupp, 0 | 64);
MapUtilities.CachedShipStatus.RpcRepairSystem(SystemTypes.LifeSupp, 1 | 64);
MapUtilities.CachedShipStatus.RpcUpdateSystem(SystemTypes.LifeSupp, 0 | 64);
MapUtilities.CachedShipStatus.RpcUpdateSystem(SystemTypes.LifeSupp, 1 | 64);
} else if (task.TaskType == TaskTypes.ResetReactor) {
MapUtilities.CachedShipStatus.RpcRepairSystem(SystemTypes.Reactor, 16);
MapUtilities.CachedShipStatus.RpcUpdateSystem(SystemTypes.Reactor, 16);
} else if (task.TaskType == TaskTypes.ResetSeismic) {
MapUtilities.CachedShipStatus.RpcRepairSystem(SystemTypes.Laboratory, 16);
MapUtilities.CachedShipStatus.RpcUpdateSystem(SystemTypes.Laboratory, 16);
} else if (task.TaskType == TaskTypes.FixComms) {
MapUtilities.CachedShipStatus.RpcRepairSystem(SystemTypes.Comms, 16 | 0);
MapUtilities.CachedShipStatus.RpcRepairSystem(SystemTypes.Comms, 16 | 1);
MapUtilities.CachedShipStatus.RpcUpdateSystem(SystemTypes.Comms, 16 | 0);
MapUtilities.CachedShipStatus.RpcUpdateSystem(SystemTypes.Comms, 16 | 1);
} else if (task.TaskType == TaskTypes.StopCharles) {
MapUtilities.CachedShipStatus.RpcRepairSystem(SystemTypes.Reactor, 0 | 16);
MapUtilities.CachedShipStatus.RpcRepairSystem(SystemTypes.Reactor, 1 | 16);
MapUtilities.CachedShipStatus.RpcUpdateSystem(SystemTypes.Reactor, 0 | 16);
MapUtilities.CachedShipStatus.RpcUpdateSystem(SystemTypes.Reactor, 1 | 16);
} else if (SubmergedCompatibility.IsSubmerged && task.TaskType == SubmergedCompatibility.RetrieveOxygenMask) {
MessageWriter writer = AmongUsClient.Instance.StartRpcImmediately(CachedPlayer.LocalPlayer.PlayerControl.NetId, (byte)CustomRPC.EngineerFixSubmergedOxygen, Hazel.SendOption.Reliable, -1);
AmongUsClient.Instance.FinishRpcImmediately(writer);
Expand Down
2 changes: 1 addition & 1 deletion BetterOtherRoles/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class BetterOtherRolesPlugin : BasePlugin
{
public const string Name = "Better Other Roles";
public const string Id = "betterohterroles.eno.pm";
public const string VersionString = "1.4.8";
public const string VersionString = "1.5.0";

public static Version Version = Version.Parse(VersionString);
internal static BepInEx.Logging.ManualLogSource Logger;
Expand Down
4 changes: 2 additions & 2 deletions BetterOtherRoles/Modules/BepInExUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ namespace BetterOtherRoles.Modules;

public class BepInExUpdater : MonoBehaviour
{
public const string RequiredBepInExVersion = "6.0.0-be.672+472e950179f4a5ab2e4a89f26dba793795fb6811";
public const string BepInExDownloadURL = "https://builds.bepinex.dev/projects/bepinex_be/670/BepInEx-Unity.IL2CPP-win-x86-6.0.0-be.670%2B42a6727.zip";
public const string RequiredBepInExVersion = "6.0.0-be.674+82077ec7c91c97f0e5f8ada5d178fd7ece6c0099";
public const string BepInExDownloadURL = "https://builds.bepinex.dev/projects/bepinex_be/674/BepInEx-Unity.IL2CPP-win-x86-6.0.0-be.674%2B82077ec.zip";
public static bool UpdateRequired => Paths.BepInExVersion.ToString() != RequiredBepInExVersion;

public void Awake()
Expand Down
318 changes: 0 additions & 318 deletions BetterOtherRoles/Modules/ModUpdater.cs

This file was deleted.

Loading

0 comments on commit 7d06724

Please sign in to comment.