11import { LitElement , css , html } from "lit" ;
22import { customElement , state } from "lit/decorators.js" ;
3+ import logo from "../../../../resources/images/ofm/logo_MASTER_2025.png" ;
34import { translateText } from "../../../client/Utils" ;
45import { EventBus } from "../../../core/EventBus" ;
56import { GameUpdateType } from "../../../core/game/GameUpdates" ;
@@ -21,6 +22,9 @@ export class WinModal extends LitElement implements Layer {
2122 @state ( )
2223 showButtons = false ;
2324
25+ @state ( )
26+ private showSteamContent = Math . random ( ) > 0.5 ;
27+
2428 private _title : string ;
2529
2630 // Override to prevent shadow DOM creation
@@ -138,7 +142,9 @@ export class WinModal extends LitElement implements Layer {
138142 return html `
139143 < div class ="win-modal ${ this . isVisible ? "visible" : "" } ">
140144 < h2 > ${ this . _title || "" } </ h2 >
141- ${ this . innerHtml ( ) }
145+ ${ this . showSteamContent
146+ ? this . steamWishlist ( )
147+ : this . openfrontMasters ( ) }
142148 < div
143149 class ="button-container ${ this . showButtons ? "visible" : "hidden" } "
144150 >
@@ -153,7 +159,7 @@ export class WinModal extends LitElement implements Layer {
153159 ` ;
154160 }
155161
156- innerHtml ( ) {
162+ steamWishlist ( ) {
157163 return html `< p >
158164 < a
159165 href ="https://store.steampowered.com/app/3560670 "
@@ -174,6 +180,33 @@ export class WinModal extends LitElement implements Layer {
174180 </ p > ` ;
175181 }
176182
183+ openfrontMasters ( ) {
184+ return html `< p >
185+ < img
186+ src ="${ logo } "
187+ alt ="OpenFront Masters "
188+ style ="max-width: 100%; height: auto; margin-bottom: 16px; "
189+ />
190+ < a
191+ href ="https://discord.gg/gStsGh5vWR "
192+ target ="_blank "
193+ rel ="noopener noreferrer "
194+ style ="
195+ color: #4a9eff;
196+ text-decoration: underline;
197+ font-weight: 500;
198+ transition: color 0.2s ease;
199+ font-size: 24px;
200+ "
201+ onmouseover ="this.style.color='#6db3ff' "
202+ onmouseout ="this.style.color='#4a9eff' "
203+ >
204+ Watch the best compete in the
205+ < span style ="font-weight: bold; "> OpenFront Masters</ span >
206+ </ a >
207+ </ p > ` ;
208+ }
209+
177210 show ( ) {
178211 this . eventBus . emit ( new GutterAdModalEvent ( true ) ) ;
179212 setTimeout ( ( ) => {
0 commit comments