diff --git a/assets/img/cards/double.png b/assets/img/cards/double.png new file mode 100644 index 0000000..972105f Binary files /dev/null and b/assets/img/cards/double.png differ diff --git a/assets/img/cards/empathie.png b/assets/img/cards/empathie.png new file mode 100644 index 0000000..28f1c34 Binary files /dev/null and b/assets/img/cards/empathie.png differ diff --git a/assets/img/cards/parrure.png b/assets/img/cards/parrure.png new file mode 100644 index 0000000..c6387ee Binary files /dev/null and b/assets/img/cards/parrure.png differ diff --git a/assets/img/cards/révolution.png b/assets/img/cards/révolution.png new file mode 100644 index 0000000..f23907f Binary files /dev/null and b/assets/img/cards/révolution.png differ diff --git a/public/game.html b/public/game.html index 587bb8e..0e816fd 100644 --- a/public/game.html +++ b/public/game.html @@ -192,16 +192,16 @@ if(id.indexOf('mine') !== -1) return 'empty'; // revolution is a global immediate effect: it should NOT require any piece selection if(id.indexOf('revol') !== -1) return null; - // sniper: select one of your pieces to bind the sniper effect (capture later without moving) - if(id.indexOf('sniper') !== -1) return 'owned'; - // doppelganger: select one of your pieces after playing the card (minimal flow) - if(id.indexOf('doppel') !== -1) return 'owned'; + // sniper: select one of your pieces to bind the sniper effect (capture later without moving) + if(id.indexOf('sniper') !== -1) return 'owned'; + // doppelganger: select one of your pieces after playing the card (minimal flow) + if(id.indexOf('doppel') !== -1) return 'owned'; // 'toucher c'est jouer' : require selecting an enemy piece as the card target - if(id.indexOf('toucher') !== -1) return 'enemy'; - // la parrure: select an enemy queen to downgrade to a pawn - if(id.indexOf('parrure') !== -1) return 'enemy_queen'; - // tout ou rien: select a piece (any, except kings) to force it to only move when capturing - if(id.indexOf('tout') !== -1 && id.indexOf('rien') !== -1) return 'piece'; + if(id.indexOf('toucher') !== -1) return 'enemy'; + // la parrure: select an enemy queen to downgrade to a pawn + if(id.indexOf('parrure') !== -1) return 'enemy_queen'; + // tout ou rien: select a piece (any, except kings) to force it to only move when capturing + if(id.indexOf('tout') !== -1 && id.indexOf('rien') !== -1) return 'piece'; // kamikaz targets one of your pieces (play card, then choose a piece) if(id.indexOf('kamikaz') !== -1) return 'owned'; if(id.indexOf('invis') !== -1 || id.indexOf('invisible') !== -1) return 'owned'; diff --git a/public/index.html b/public/index.html index c9f9b45..37bb787 100644 --- a/public/index.html +++ b/public/index.html @@ -128,6 +128,10 @@ if(cid === 'totem' || title.indexOf('totem') !== -1) imgSrc = '/assets/img/cards/totem.png'; if(cid === 'toucher' || title.indexOf('toucher') !== -1) imgSrc = '/assets/img/cards/toucher.png'; if(cid === 'vole' || title.indexOf('vole') !== -1 || title.indexOf('vole') !== -1) imgSrc = '/assets/img/cards/vole_piece.png'; + if(cid === 'jouer_deux_fois' || title.indexOf('jouer deux fois') !== -1) imgSrc = '/assets/img/cards/double.png'; + if(cid === 'empathie' || title.indexOf('empathie') !== -1) imgSrc = '/assets/img/cards/empathie.png'; + if(cid === 'parrure' || title.indexOf('parrure') !== -1) imgSrc = '/assets/img/cards/parrure.png'; + if(cid === 'révolution' || title.indexOf('révolution') !== -1 || title.indexOf('revolution') !== -1) imgSrc = '/assets/img/cards/révolution.png'; if(imgSrc){ const img = document.createElement('img'); img.src = imgSrc; img.alt = c.title || cid || 'card'; img.className = 'card-art-img'; img.style.width = '100%'; img.style.height = '100%'; img.style.objectFit = 'cover'; art.appendChild(img); } }catch(_){ } top.appendChild(art);