mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
c3f1a1349c
2 files changed
+1
-4
No files matched your search
@@ -1502,7 +1502,7 @@ internal static class ExtendedPlayerControl
|
||||
return Options.CurrentGameMode switch
|
||||
{
|
||||
CustomGameMode.SoloPVP => SoloPVP.CanVent,
|
||||
CustomGameMode.FFA => !(FreeForAll.FFADisableVentingWhenKcdIsUp.GetBool() && Main.KillTimers[pc.PlayerId] <= 0) && !(FreeForAll.FFADisableVentingWhenTwoPlayersAlive.GetBool() && Main.AllAlivePlayerControls.Count <= 2),
|
||||
CustomGameMode.FFA => !(FreeForAll.FFADisableVentingWhenKcdIsUp.GetBool() && Main.KillTimers.GetValueOrDefault(pc.PlayerId) <= 0) && !(FreeForAll.FFADisableVentingWhenTwoPlayersAlive.GetBool() && Main.AllAlivePlayerControls.Count <= 2),
|
||||
CustomGameMode.StopAndGo => false,
|
||||
CustomGameMode.HotPotato => false,
|
||||
CustomGameMode.Speedrun => false,
|
||||
|
||||
@@ -1318,9 +1318,6 @@ internal static class IntroCutsceneDestroyPatch
|
||||
case CustomGameMode.Standard:
|
||||
Blessed.AfterMeetingTasks();
|
||||
break;
|
||||
case CustomGameMode.FFA:
|
||||
LateTask.New(() => Main.EnumerateAlivePlayerControls().Do(x => x.RpcSetRoleDesync(RoleTypes.Impostor, x.OwnerId)), 6f);
|
||||
break;
|
||||
case CustomGameMode.KingOfTheZones:
|
||||
Main.Instance.StartCoroutine(KingOfTheZones.GameStart());
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user