This commit is contained in:
D1GQ committed 2024-08-17 21:12:10 -05:00
1 parent e67a5798ad
commit 6198d4491a
4 files changed
+9 -5

No files matched your search

+3
View File
@@ -314,6 +314,9 @@ class AntiCheat
// Check game states when sabotaging
public static bool RpcUpdateSystemCheck(PlayerControl player, SystemTypes systemType, byte amount)
{
if (PlayerControl.LocalPlayer == null || player == null || player == PlayerControl.LocalPlayer || player.BetterData().IsBetterHost || !IsEnabled || !Main.AntiCheat.Value
|| GameStates.IsBetterHostLobby && !GameStates.IsHost) return true;
if (Utils.SystemTypeIsSabotage(systemType))
{
if (!player.IsImpostorTeam() || !GameStates.IsSystemActive(systemType) && GameStates.IsAnySabotageActive()
+4
View File
@@ -1,4 +1,5 @@
using AmongUs.Data;
using AmongUs.GameOptions;
using HarmonyLib;
using Il2CppSystem.Linq;
using LibCpp2IL;
@@ -79,6 +80,9 @@ class PlayerControlPatch
else
{
__instance.BetterData().TimeSinceLastTask += Time.deltaTime;
if (__instance.IsAlive() || __instance.Data.RoleType == RoleTypes.GuardianAngel)
__instance.BetterData().RoleInfo.DeadDisplayRole = __instance.Data.RoleType;
}
}
-3
View File
@@ -377,9 +377,6 @@ public class RoleManagerPatch
[HarmonyPrefix]
public static bool AssignRoleOnDeath_Prefix(/*RoleManager __instance*/ [HarmonyArgument(0)] PlayerControl player)
{
if (player.Data.RoleType != RoleTypes.CrewmateGhost && player.Data.RoleType != RoleTypes.ImpostorGhost)
player.BetterData().RoleInfo.DeadDisplayRole = player.Data.RoleType;
if (!Main.BetterRoleAlgorithma.Value) return true;
Dictionary<RoleTypes, int> GhostRoles = new() // Role, Amount
+2 -2
View File
@@ -24,8 +24,8 @@ public class Main : BasePlugin
{
public const ReleaseTypes ReleaseBuildType = ReleaseTypes.Release;
public const string CanaryNum = "0";
public const string HotfixNum = "0";
public const bool IsHotFix = false;
public const string HotfixNum = "1";
public const bool IsHotFix = true;
public const string PluginGuid = "com.d1gq.betteramongus";
public const string PluginVersion = "1.0.3";
public const string ReleaseDate = "08.17.2024"; // mm/dd/yyyy