Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion resources/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,9 @@
"teams_Duos": "Duos (teams of 2)",
"teams_Trios": "Trios (teams of 3)",
"teams_Quads": "Quads (teams of 4)",
"teams": "{num} teams"
"teams": "{num} teams",
"tech_unlocked": "Tech Unlocked",
"tech_unlocked_tooltip": "All technologies unlocked from the start!"
},
"username": {
"enter_username": "Enter your username",
Expand Down
14 changes: 14 additions & 0 deletions src/client/PublicLobby.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,20 @@ export class PublicLobby extends LitElement {
${translateText("public_lobby.join")}
</div>
<div class="text-md font-medium text-[var(--secondaryColor)]">
${
lobby.gameConfig.researchAllTechs
? html`<span
class="text-sm
text-yellow-900
bg-yellow-400 rounded-sm px-1 mr-1 font-bold"
title="${translateText(
"public_lobby.tech_unlocked_tooltip",
)}"
>
🔓 ${translateText("public_lobby.tech_unlocked")}
</span>`
: ""
}
<span
class="text-sm
text-[var(--ui-primary)]
Expand Down
2 changes: 1 addition & 1 deletion src/core/configuration/DevConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class DevServerConfig extends DefaultServerConfig {
}

gameCreationRate(): number {
return 180 * 1000;
return 5 * 1000;
}

samWarheadHittingChance(): number {
Expand Down
6 changes: 6 additions & 0 deletions src/server/MapPlaylist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,18 @@ const TEAM_COUNTS = [

export class MapPlaylist {
private mapsPlaylist: MapWithMode[] = [];
private fastModeCounter: number = 0;

public gameConfig(): GameConfig {
const { map, mode } = this.getNextMap();

const playerTeams =
mode === GameMode.Team ? this.getTeamCount() : undefined;

// Alternate between normal and fast mode (50/50)
const isFastMode = this.fastModeCounter % 2 === 1;
this.fastModeCounter++;

// Create the default public game config (from your GameManager)
return {
gameMap: map,
Expand All @@ -90,6 +95,7 @@ export class MapPlaylist {
peaceTimerDurationMinutes: PeaceTimerDuration.None,
startingGold: 0,
goldMultiplier: 1,
researchAllTechs: isFastMode,
} satisfies GameConfig;
}

Expand Down
Loading