mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-10 09:44:36 +00:00
Hide FFA collusion warning in 1v1 ranked games
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { LitElement, html } from "lit";
|
||||
import { customElement, state } from "lit/decorators.js";
|
||||
import { GameMode, GameType } from "../../../core/game/Game";
|
||||
import { GameMode, GameType, RankedType } from "../../../core/game/Game";
|
||||
import { GameUpdateType } from "../../../core/game/GameUpdates";
|
||||
import { Controller } from "../../Controller";
|
||||
import { translateText } from "../../Utils";
|
||||
@@ -197,6 +197,7 @@ export class HeadsUpMessage extends LitElement implements Controller {
|
||||
${this.game?.inSpawnPhase() &&
|
||||
this.game.config().gameConfig().gameMode === GameMode.FFA &&
|
||||
this.game.config().gameConfig().gameType === GameType.Public &&
|
||||
this.game.config().gameConfig().rankedType !== RankedType.OneVOne &&
|
||||
!this.hasClosedCollusionWarning
|
||||
? html`
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user