This commit is contained in:
Gurge44 committed 2026-08-24 09:21:48 +02:00
1 parent ad27252681
commit f87c0f6288
4 files changed
+8 -3

No files matched your search

+1 -1
View File
@@ -1453,7 +1453,7 @@ internal static class RPC
SendOption sendOption = SendOption.Reliable;
if (GameStates.CurrentServerType == GameStates.ServerType.Vanilla && Options.CurrentGameMode != CustomGameMode.Standard)
if (GameStates.CurrentServerType == GameStates.ServerType.Vanilla)
sendOption = SendOption.None;
MessageWriter writer = AmongUsClient.Instance.StartRpcImmediately(PlayerControl.LocalPlayer.NetId, (byte)CustomRPC.PlaySound, sendOption);
+1 -1
View File
@@ -3927,7 +3927,7 @@ public static class Utils
nums[Options.GameStateInfo.MadmateCount]++;
else if (pc.IsNeutralKiller())
nums[Options.GameStateInfo.NKCount]++;
else if (pc.Is(Team.Impostor))
else if (pc.Is(Team.Impostor) || pc.Is(CustomRoles.DoubleAgent))
nums[Options.GameStateInfo.ImpCount]++;
else if (pc.Is(Team.Crewmate))
nums[Options.GameStateInfo.CrewCount]++;
+1 -1
View File
@@ -859,7 +859,7 @@ internal static class ChatCommands
return;
}
if (!targetState.MainRole.Is(Team.Crewmate) || targetState.MainRole == CustomRoles.GM)
if (!targetState.MainRole.Is(Team.Crewmate) || targetState.MainRole is CustomRoles.GM or CustomRoles.Trickster)
{
RPC.PlaySoundRPC(player.PlayerId, Sounds.SabotageSound);
Utils.SendMessage("\n", player.PlayerId, GetString("Imitator.TargetMustBeCrew"), importance: MessageImportance.High);
+5
View File
@@ -196,4 +196,9 @@ public class Shadow : CovenBase
Utils.RpcChangeSkin(pc, OriginalOutfit);
}
}
public override void OnReceiveNecronomicon()
{
SetKillCooldown(ShadowId);
}
}