public TourneyBattle(ZkLobbyServer server, TourneyPrototype prototype) : base(server, null) { this.Prototype = prototype; IsMatchMakerBattle = false; EngineVersion = server.Engine; ModName = server.Game; FounderName = $"Tourney #{BattleID}"; Title = prototype.Title; Mode = prototype.TeamPlayers.Max(x => x.Count) == 1 ? AutohostMode.Game1v1 : AutohostMode.Teams; MaxPlayers = prototype.TeamPlayers.Sum(x => x.Count); ModOptions = prototype.ModOptions; ModOptions["mutespec"] = "mute"; ModOptions["mutelobby"] = "mute"; ValidateAndFillDetails(); }
public TourneyBattle(ZkLobbyServer server, TourneyPrototype prototype) : base(server, null) { this.Prototype = prototype; IsMatchMakerBattle = false; ApplicableRating = RatingCategory.MatchMaking; EngineVersion = server.Engine; ModName = server.Game; FounderName = $"Tourney #{BattleID}"; Title = prototype.Title; Mode = prototype.TeamPlayers.Max(x => x.Count) == 1 ? AutohostMode.Game1v1 : AutohostMode.None; MaxPlayers = prototype.TeamPlayers.Sum(x => x.Count); ModOptions = prototype.ModOptions; SetCompetitiveModoptions(); ModOptions["allyreclaim"] = "1"; // even more competitive than the above ValidateAndFillDetails(); }