REVERT THIS COMMIT LATER Modified MaxTeamSize FOR TESTING PURPOSES

This commit is contained in:
aqw42
2025-05-30 15:42:20 +02:00
parent b933b3d014
commit 3d92b61d0e
3 changed files with 3 additions and 14 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ export abstract class DefaultServerConfig implements ServerConfig {
return 100;
}
gameCreationRate(): number {
return 60 * 1000;
return 120 * 1000;
}
lobbyMaxPlayers(map: GameMapType, mode: GameMode): number {
+2 -1
View File
@@ -23,7 +23,8 @@ export function assignTeams(
}
}
const maxTeamSize = Math.ceil(players.length / teams.length);
// ONLY FOR TESTING REMOVE LATER
const maxTeamSize = 10; //Math.ceil(players.length / teams.length);
// Sort clans by size (largest first)
const sortedClans = Array.from(clanGroups.entries()).sort(
-12
View File
@@ -90,22 +90,10 @@ export class MapPlaylist {
const rand = new PseudoRandom(Date.now());
const ffa1: GameMapType[] = rand.shuffleArray([...maps]);
const ffa2: GameMapType[] = rand.shuffleArray([...maps]);
const ffa3: GameMapType[] = rand.shuffleArray([...maps]);
const team: GameMapType[] = rand.shuffleArray([...maps]);
this.mapsPlaylist = [];
for (let i = 0; i < maps.length; i++) {
if (!this.addNextMap(this.mapsPlaylist, ffa1, GameMode.FFA)) {
return false;
}
if (!this.addNextMap(this.mapsPlaylist, ffa2, GameMode.FFA)) {
return false;
}
if (!this.addNextMap(this.mapsPlaylist, ffa3, GameMode.FFA)) {
return false;
}
if (!this.addNextMap(this.mapsPlaylist, team, GameMode.Team)) {
return false;
}