mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-20 01:46:19 +00:00
hot fix
This commit is contained in:
1 parent
e67a5798ad
commit
6198d4491a
4 files changed
+9
-5
No files matched your search
@@ -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()
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user