@@ -90,8 +90,8 @@ const DevDuel = (() => {
9090 . setOrigin ( 0.5 , 0 ) ;
9191
9292 // Cards
93- _drawCard ( scene , challenger , cPower , W * 0.22 , H / 2 - 20 , theme , false ) ;
94- _drawCard ( scene , opponent , oPower , W * 0.78 , H / 2 - 20 , theme , true ) ;
93+ _drawCard ( scene , challenger , cPower , W * 0.22 , H / 2 - 20 , theme ) ;
94+ _drawCard ( scene , opponent , oPower , W * 0.78 , H / 2 - 20 , theme ) ;
9595
9696 // VS label
9797 scene . add
@@ -127,11 +127,11 @@ const DevDuel = (() => {
127127
128128 // Animate the battle after a short delay
129129 scene . time . delayedCall ( 800 , ( ) => {
130- _animateBattle ( scene , challenger , opponent , cPower , oPower , W , H , theme ) ;
130+ _animateBattle ( scene , challenger , opponent , cPower , oPower , W , H ) ;
131131 } ) ;
132132 }
133133
134- function _drawCard ( scene , dev , power , cx , cy , theme , flipSide ) {
134+ function _drawCard ( scene , dev , power , cx , cy , theme ) {
135135 const cardW = 160 ;
136136 const cardH = 200 ;
137137 const x = cx - cardW / 2 ;
@@ -215,7 +215,7 @@ const DevDuel = (() => {
215215 w : barW ,
216216 duration : 800 ,
217217 ease : "Power2" ,
218- onUpdate : ( tween , target ) => {
218+ onUpdate : ( _tween , target ) => {
219219 fillGfx . clear ( ) ;
220220 fillGfx . fillStyle ( 0x38bdf8 , 1 ) ;
221221 fillGfx . fillRoundedRect ( x , y + 14 , target . w , 10 , 3 ) ;
@@ -231,24 +231,15 @@ const DevDuel = (() => {
231231
232232 // ─── Battle animation ─────────────────────────────────────────────────────
233233
234- function _animateBattle (
235- scene ,
236- challenger ,
237- opponent ,
238- cPower ,
239- oPower ,
240- W ,
241- H ,
242- theme ,
243- ) {
234+ function _animateBattle ( scene , challenger , opponent , cPower , oPower , W , H ) {
244235 // Flash attacks back and forth
245236 let round = 0 ;
246237 const maxRounds = 5 ;
247238
248239 const attackFlash = ( ) => {
249240 if ( round >= maxRounds ) {
250241 scene . time . delayedCall ( 400 , ( ) => {
251- _showResult ( scene , challenger , opponent , cPower , oPower , W , H , theme ) ;
242+ _showResult ( scene , challenger , opponent , cPower , oPower , W , H ) ;
252243 } ) ;
253244 return ;
254245 }
@@ -280,16 +271,7 @@ const DevDuel = (() => {
280271
281272 // ─── Result screen ────────────────────────────────────────────────────────
282273
283- function _showResult (
284- scene ,
285- challenger ,
286- opponent ,
287- cPower ,
288- oPower ,
289- W ,
290- H ,
291- theme ,
292- ) {
274+ function _showResult ( scene , challenger , opponent , cPower , oPower , W , H ) {
293275 const challengerWins = cPower >= oPower ;
294276 const winner = challengerWins ? challenger : opponent ;
295277
@@ -397,6 +379,7 @@ function getCardData(cardEl) {
397379 *
398380 * @param {HTMLElement } challengerCard The card element that was clicked.
399381 */
382+ // biome-ignore lint/correctness/noUnusedVariables: Used outside this classic script.
400383function startDuelFromCard ( challengerCard ) {
401384 const allCards = Array . from (
402385 document . querySelectorAll ( ".user-card[data-name]" ) ,
0 commit comments