Use JOKER-3.svg for the colorful joker
Point JOKER-COLOR at /cards/JOKER-3.svg instead of JOKER-1.svg. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "shelem",
|
"name": "shelem",
|
||||||
"version": "1.1.5",
|
"version": "1.1.6",
|
||||||
"description": "Shelem card game — multiplayer",
|
"description": "Shelem card game — multiplayer",
|
||||||
"main": "server.js",
|
"main": "server.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
+1
-1
@@ -235,7 +235,7 @@ function show(id) { const el = $(id); if (el) el.classList.remove('hidden'); }
|
|||||||
function hide(id) { const el = $(id); if (el) el.classList.add('hidden'); }
|
function hide(id) { const el = $(id); if (el) el.classList.add('hidden'); }
|
||||||
|
|
||||||
function cardSvg(code) {
|
function cardSvg(code) {
|
||||||
if (code === 'JOKER-COLOR') return '/cards/JOKER-1.svg';
|
if (code === 'JOKER-COLOR') return '/cards/JOKER-3.svg';
|
||||||
if (code === 'JOKER-BLACK') return '/cards/JOKER-2.svg';
|
if (code === 'JOKER-BLACK') return '/cards/JOKER-2.svg';
|
||||||
const [suit, rank] = code.split('-');
|
const [suit, rank] = code.split('-');
|
||||||
const suitMap = { C: 'CLUB', D: 'DIAMOND', H: 'HEART', S: 'SPADE' };
|
const suitMap = { C: 'CLUB', D: 'DIAMOND', H: 'HEART', S: 'SPADE' };
|
||||||
|
|||||||
Reference in New Issue
Block a user