rajout d'illustration
This commit is contained in:
parent
5f1d6beeaa
commit
5db522f7c2
6 changed files with 13 additions and 9 deletions
BIN
assets/img/cards/double.png
Normal file
BIN
assets/img/cards/double.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 291 KiB |
BIN
assets/img/cards/empathie.png
Normal file
BIN
assets/img/cards/empathie.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 259 KiB |
BIN
assets/img/cards/parrure.png
Normal file
BIN
assets/img/cards/parrure.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 244 KiB |
BIN
assets/img/cards/révolution.png
Normal file
BIN
assets/img/cards/révolution.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 256 KiB |
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue