@@ -99,21 +99,20 @@ export class WinModal extends LitElement implements Layer {
9999 ` ;
100100 }
101101
102- innerHtml ( ) {
103- if ( isInIframe ( ) ) {
104- return this . steamWishlist ( ) ;
105- }
106-
107- // 25% chance for each option to make papa evan happy
108- if ( this . rand < 0.25 ) {
109- return this . steamWishlist ( ) ;
110- } else if ( this . rand < 0.5 ) {
111- return this . ofmDisplay ( ) ;
112- } else if ( this . rand < 0.75 ) {
113- return this . discordDisplay ( ) ;
102+ innerHtml ( ) {
103+ if ( isInIframe ( ) ) {
104+ return this . steamWishlist ( ) ;
105+ }
106+
107+ if ( this . rand < 0.25 ) {
108+ return this . steamWishlist ( ) ;
109+ } else if ( this . rand < 0.5 ) {
110+ return this . ofmDisplay ( ) ;
111+ } else if ( this . rand < 0.75 ) {
112+ return this . discordDisplay ( ) ;
113+ }
114+ return this . renderPatternButton ( ) ;
114115 }
115- return this . renderPatternButton ( ) ;
116- }
117116
118117 renderPatternButton ( ) {
119118 return html `
@@ -199,54 +198,54 @@ innerHtml() {
199198 </ p > ` ;
200199 }
201200
202- ofmDisplay ( ) : TemplateResult {
203- return html `
204- < div class ="text-center mb-6 bg-black/30 p-2.5 rounded ">
205- < h3 class ="text-xl font-semibold text-white mb-3 ">
206- ${ translateText ( "win_modal.ofm_winter" ) }
207- </ h3 >
208- < div class ="mb-3 ">
209- < img
210- src ="/resources/images/Ofm-Winters-Logo.png "
211- alt ="OpenFront Masters Winter "
212- class ="mx-auto max-w-full h-auto max-h-[200px] rounded "
213- />
201+ ofmDisplay ( ) : TemplateResult {
202+ return html `
203+ < div class ="text-center mb-6 bg-black/30 p-2.5 rounded ">
204+ < h3 class ="text-xl font-semibold text-white mb-3 ">
205+ ${ translateText ( "win_modal.ofm_winter" ) }
206+ </ h3 >
207+ < div class ="mb-3 ">
208+ < img
209+ src ="/resources/images/Ofm-Winters-Logo.png "
210+ alt ="OpenFront Masters Winter "
211+ class ="mx-auto max-w-full h-auto max-h-[200px] rounded "
212+ />
213+ </ div >
214+ < p class ="text-white mb-3 ">
215+ ${ translateText ( "win_modal.ofm_winter_description" ) }
216+ </ p >
217+ < a
218+ href ="https://discord.gg/wXXJshB8Jt "
219+ target ="_blank "
220+ rel ="noopener noreferrer "
221+ class ="inline-block px-6 py-3 bg-green-600 text-white rounded font-semibold transition-all duration-200 hover:bg-green-700 hover:-translate-y-px no-underline "
222+ >
223+ ${ translateText ( "win_modal.join_tournament" ) }
224+ </ a >
214225 </ div >
215- < p class ="text-white mb-3 ">
216- ${ translateText ( "win_modal.ofm_winter_description" ) }
217- </ p >
218- < a
219- href ="https://discord.gg/wXXJshB8Jt "
220- target ="_blank "
221- rel ="noopener noreferrer "
222- class ="inline-block px-6 py-3 bg-green-600 text-white rounded font-semibold transition-all duration-200 hover:bg-green-700 hover:-translate-y-px no-underline "
223- >
224- ${ translateText ( "win_modal.join_tournament" ) }
225- </ a >
226- </ div >
227- ` ;
228- }
226+ ` ;
227+ }
229228
230- discordDisplay ( ) : TemplateResult {
231- return html `
232- < div class ="text-center mb-6 bg-black/30 p-2.5 rounded ">
233- < h3 class ="text-xl font-semibold text-white mb-3 ">
234- ${ translateText ( "win_modal.join_discord" ) }
235- </ h3 >
236- < p class ="text-white mb-3 ">
237- ${ translateText ( "win_modal.discord_description" ) }
238- </ p >
239- < a
240- href ="https://discord.com/invite/openfront "
241- target ="_blank "
242- rel ="noopener noreferrer "
243- class ="inline-block px-6 py-3 bg-indigo-600 text-white rounded font-semibold transition-all duration-200 hover:bg-indigo-700 hover:-translate-y-px no-underline "
244- >
245- ${ translateText ( "win_modal.join_server" ) }
246- </ a >
247- </ div >
248- ` ;
249- }
229+ discordDisplay ( ) : TemplateResult {
230+ return html `
231+ < div class ="text-center mb-6 bg-black/30 p-2.5 rounded ">
232+ < h3 class ="text-xl font-semibold text-white mb-3 ">
233+ ${ translateText ( "win_modal.join_discord" ) }
234+ </ h3 >
235+ < p class ="text-white mb-3 ">
236+ ${ translateText ( "win_modal.discord_description" ) }
237+ </ p >
238+ < a
239+ href ="https://discord.com/invite/openfront "
240+ target ="_blank "
241+ rel ="noopener noreferrer "
242+ class ="inline-block px-6 py-3 bg-indigo-600 text-white rounded font-semibold transition-all duration-200 hover:bg-indigo-700 hover:-translate-y-px no-underline "
243+ >
244+ ${ translateText ( "win_modal.join_server" ) }
245+ </ a >
246+ </ div >
247+ ` ;
248+ }
250249
251250 async show ( ) {
252251 await this . loadPatternContent ( ) ;
0 commit comments