mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-19 15:51:52 +00:00
Update to v19
This commit is contained in:
1 parent
9d1f6fc084
commit
3e14546d8f
6 files changed
+9
-10
No files matched your search
@@ -64,7 +64,7 @@ internal partial class BAUPlugin
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
internal static string[] SupportedAmongUsVersions =
|
internal static string[] SupportedAmongUsVersions =
|
||||||
[
|
[
|
||||||
"2026.8.18"
|
"2026.9.29"
|
||||||
];
|
];
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -80,7 +80,7 @@
|
|||||||
|
|
||||||
<!-- NuGet Core Packages -->
|
<!-- NuGet Core Packages -->
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="AmongUs.GameLibs.Steam" Version="2026.8.18" />
|
<PackageReference Include="AmongUs.GameLibs.Steam" Version="2026.9.29" />
|
||||||
<PackageReference Include="BepInEx.IL2CPP.MSBuild" Version="2.0.1">
|
<PackageReference Include="BepInEx.IL2CPP.MSBuild" Version="2.0.1">
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using AmongUs.GameOptions;
|
using BetterAmongUs.Utilities;
|
||||||
using BetterAmongUs.Utilities;
|
|
||||||
using HarmonyLib;
|
using HarmonyLib;
|
||||||
|
|
||||||
namespace BetterAmongUs.Patches.Gameplay.Options;
|
namespace BetterAmongUs.Patches.Gameplay.Options;
|
||||||
@@ -15,7 +14,7 @@ internal static class LogicOptionsPatch
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// Show anonymous votes when dead and not Guardian Angel
|
// Show anonymous votes when dead and not Guardian Angel
|
||||||
if (!PlayerControl.LocalPlayer.IsAlive() && !PlayerControl.LocalPlayer.Is(RoleTypes.GuardianAngel))
|
if (!PlayerControl.LocalPlayer.IsAlive() && !PlayerControl.LocalPlayer.IsGhostRole())
|
||||||
{
|
{
|
||||||
__result = false;
|
__result = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
using AmongUs.GameOptions;
|
using BetterAmongUs.Modules;
|
||||||
using BetterAmongUs.Utilities;
|
using BetterAmongUs.Utilities;
|
||||||
using BetterAmongUs.Modules;
|
|
||||||
using HarmonyLib;
|
using HarmonyLib;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
@@ -21,7 +20,7 @@ internal class ZoomPatch
|
|||||||
// - Not Guardian Angel AND
|
// - Not Guardian Angel AND
|
||||||
// - Either not in gameplay OR player is dead
|
// - Either not in gameplay OR player is dead
|
||||||
bool canZoom = GameState.IsCanMove &&
|
bool canZoom = GameState.IsCanMove &&
|
||||||
!PlayerControl.LocalPlayer.Is(RoleTypes.GuardianAngel) &&
|
!PlayerControl.LocalPlayer.IsGhostRole() &&
|
||||||
(!GameState.IsInGamePlay || !PlayerControl.LocalPlayer.IsAlive());
|
(!GameState.IsInGamePlay || !PlayerControl.LocalPlayer.IsAlive());
|
||||||
|
|
||||||
// Should we reset zoom (when player was zooming but no longer can)
|
// Should we reset zoom (when player was zooming but no longer can)
|
||||||
|
|||||||
@@ -468,7 +468,7 @@ internal static class PlayerControlUtils
|
|||||||
if (data == null)
|
if (data == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return data.RoleType == RoleTypes.GuardianAngel;
|
return data.RoleType is RoleTypes.GuardianAngel or RoleTypes.SpiritGuide;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ internal static class RoleUtils
|
|||||||
return string.Empty;
|
return string.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PlayerControl.LocalPlayer.Is(RoleTypes.GuardianAngel))
|
if (PlayerControl.LocalPlayer.IsGhostRole())
|
||||||
{
|
{
|
||||||
return string.Empty;
|
return string.Empty;
|
||||||
}
|
}
|
||||||
@@ -146,6 +146,7 @@ internal static class RoleUtils
|
|||||||
{
|
{
|
||||||
{ RoleTypes.CrewmateGhost, Colors.CrewmateBlue.ColorToHex() },
|
{ RoleTypes.CrewmateGhost, Colors.CrewmateBlue.ColorToHex() },
|
||||||
{ RoleTypes.GuardianAngel, "#8cffff" },
|
{ RoleTypes.GuardianAngel, "#8cffff" },
|
||||||
|
{ RoleTypes.SpiritGuide, "#ff0066" },
|
||||||
{ RoleTypes.Crewmate, Colors.CrewmateBlue.ColorToHex() },
|
{ RoleTypes.Crewmate, Colors.CrewmateBlue.ColorToHex() },
|
||||||
{ RoleTypes.Scientist, "#00d9d9" },
|
{ RoleTypes.Scientist, "#00d9d9" },
|
||||||
{ RoleTypes.Engineer, "#8f8f8f" },
|
{ RoleTypes.Engineer, "#8f8f8f" },
|
||||||
|
|||||||
Reference in new issue
Block a user