mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 21:34:14 +00:00
7942990037
## Description: To increase variety a bit more I present: The "crowded" public game modifier :) It basically simulates a crazy youtuber lobby. Cramp a lot of players on a small map 😄 I think its fun, exciting and you actually need skill to manage the chaos. 5% of public games get this modifier, but because we remove the modifier for big maps its more like 2.5% (should be something special) | <img width="321" height="269" alt="Screenshot 2026-01-25 200427" src="https://github.com/user-attachments/assets/7d2e90c1-e6bc-40a8-a19e-a0849612f472" /> | <img width="317" height="264" alt="Screenshot 2026-01-25 200554" src="https://github.com/user-attachments/assets/8b4bd5da-bed1-4743-a107-9ce07fce3040" /> | <img width="317" height="244" alt="Screenshot 2026-01-25 200521" src="https://github.com/user-attachments/assets/16293de3-0fc4-431f-8151-31b4e11040fe" /> | |---|---|---| ## Please complete the following: - [X] I have added screenshots for all UI updates - [X] I process any text displayed to the user through translateText() and I've added it to the en.json file - [X] I have added relevant tests to the test directory - [X] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: FloPinguin
89 lines
2.5 KiB
TypeScript
89 lines
2.5 KiB
TypeScript
import { JWK } from "jose";
|
|
import { GameEnv, ServerConfig } from "../../src/core/configuration/Config";
|
|
import { PublicGameModifiers } from "../../src/core/game/Game";
|
|
import { GameID } from "../../src/core/Schemas";
|
|
|
|
export class TestServerConfig implements ServerConfig {
|
|
turnstileSiteKey(): string {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
turnstileSecretKey(): string {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
apiKey(): string {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
allowedFlares(): string[] | undefined {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
stripePublishableKey(): string {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
domain(): string {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
subdomain(): string {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
jwtAudience(): string {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
jwtIssuer(): string {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
jwkPublicKey(): Promise<JWK> {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
otelEnabled(): boolean {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
otelEndpoint(): string {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
otelAuthHeader(): string {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
turnIntervalMs(): number {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
gameCreationRate(): number {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
async lobbyMaxPlayers(): Promise<number> {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
numWorkers(): number {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
workerIndex(gameID: GameID): number {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
workerPath(gameID: GameID): string {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
workerPort(gameID: GameID): number {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
workerPortByIndex(workerID: number): number {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
env(): GameEnv {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
adminToken(): string {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
adminHeader(): string {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
gitCommit(): string {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
getRandomPublicGameModifiers(): PublicGameModifiers {
|
|
return { isCompact: false, isRandomSpawn: false, isCrowded: false };
|
|
}
|
|
async supportsCompactMapForTeams(): Promise<boolean> {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
}
|