mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
a
This commit is contained in:
1 parent
67ca5cbe4a
commit
b7220d903d
2 files changed
+3
-3
No files matched your search
@@ -270,7 +270,7 @@ internal static class MoveAndStop
|
||||
|
||||
public static void SetupCustomOption()
|
||||
{
|
||||
GameTime = new IntegerOptionItem(68_213_001, "FFA_GameTime", new(30, 1200, 10), 900, TabGroup.GameSettings)
|
||||
GameTime = new IntegerOptionItem(68_213_001, "FFA_GameTime", new(30, 3600, 10), 900, TabGroup.GameSettings)
|
||||
.SetGameMode(CustomGameMode.MoveAndStop)
|
||||
.SetColor(new Color32(0, 255, 255, byte.MaxValue))
|
||||
.SetValueFormat(OptionFormat.Seconds)
|
||||
|
||||
+2
-2
@@ -1048,7 +1048,7 @@ public static class Utils
|
||||
return true;
|
||||
}
|
||||
|
||||
if ((Main.VisibleTasksCount && !PlayerControl.LocalPlayer.IsAlive() && Options.GhostCanSeeOtherRoles.GetBool()) || (PlayerControl.LocalPlayer.Is(CustomRoles.Mimic) && Main.VisibleTasksCount && __instance.Data.IsDead && Options.MimicCanSeeDeadRoles.GetBool())) return true;
|
||||
if ((Main.VisibleTasksCount && !PlayerControl.LocalPlayer.IsAlive() && Options.GhostCanSeeOtherRoles.GetBool() && (!IsRevivingRoleAlive() || !Main.DiedThisRound.Contains(PlayerControl.LocalPlayer.PlayerId))) || (PlayerControl.LocalPlayer.Is(CustomRoles.Mimic) && Main.VisibleTasksCount && __instance.Data.IsDead && Options.MimicCanSeeDeadRoles.GetBool())) return true;
|
||||
|
||||
if (__instance.IsLocalPlayer()) return true;
|
||||
|
||||
@@ -3018,7 +3018,7 @@ public static class Utils
|
||||
|
||||
public static bool KnowsTargetRole(PlayerControl seer, PlayerControl target)
|
||||
{
|
||||
return (!seer.IsAlive() && Options.GhostCanSeeOtherRoles.GetBool()) ||
|
||||
return (!seer.IsAlive() && Options.GhostCanSeeOtherRoles.GetBool() && (!IsRevivingRoleAlive() || !Main.DiedThisRound.Contains(seer.PlayerId))) ||
|
||||
(seer.Is(CustomRoles.Mimic) && !target.IsAlive() && Options.MimicCanSeeDeadRoles.GetBool()) ||
|
||||
(target.Is(CustomRoles.Gravestone) && !target.IsAlive()) ||
|
||||
(Main.LoversPlayers.TrueForAll(x => x.PlayerId == seer.PlayerId || x.PlayerId == target.PlayerId) && Main.LoversPlayers.Count == 2 && Lovers.LoverKnowRoles.GetBool()) ||
|
||||
|
||||
Reference in new issue
Block a user