Merge branch 'v26'

This commit is contained in:
evanpelle
2025-10-14 20:24:15 -07:00
10 changed files with 32 additions and 9 deletions
+2 -2
View File
@@ -79,8 +79,8 @@ export class MapPlaylist {
// Create the default public game config (from your GameManager)
return {
donateGold: false,
donateTroops: false,
donateGold: mode === GameMode.Team,
donateTroops: mode === GameMode.Team,
gameMap: map,
maxPlayers: config.lobbyMaxPlayers(map, mode, playerTeams),
gameType: GameType.Public,
+6
View File
@@ -41,6 +41,12 @@ export class PrivilegeCheckerImpl implements PrivilegeChecker {
return { type: "forbidden", reason: "invalid color: " + e.message };
}
}
if (refs.flag) {
cosmetics.flag = cosmetics.flag = refs.flag.replace(
/[^a-z0-9-_ ()]/gi,
"",
);
}
return { type: "allowed", cosmetics };
}