Compare commits

..
Author SHA1 Message Date
legonzaur a6490fc180 Feat : add more tokens descriptions
release-tag / release-image (push) Successful in 30s
2024-08-27 14:59:48 +02:00
legonzaur 19bed27f78 Fix : token compilation
release-tag / release-image (push) Successful in 30s
2024-08-27 14:05:54 +02:00
3 changed files with 40 additions and 8 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
FROM node:lts-alpine AS install-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN npm ci
COPY . .
FROM git.legonzaur.fr/heronfief/cards-gen:main AS card-svg-stage
+36
View File
@@ -1,10 +1,46 @@
{
"prepare":{
"title":"Prepare",
"description":"Repeat a champion's effects"
},
"stun":{
"title":"Stun",
"description":"Stun (kill) an ennemy's champion"
},
"sacrifice":{
"title": "Sacrifice",
"description": "Destroy a card, forever"
},
"discard":{
"title":"Discard",
"description":"Oops ! You must put a card in your discard..."
},
"make_discard":{
"title": "Make Discard",
"description": "Give a fuck to your opponent"
},
"restack_discarded_champion":{
"title":"Restack Discarded Champion",
"description":"Take a champion from your discard and put it on top of your stack"
},
"restack_discarded_card":{
"title":"Restack Discarded Card",
"description":"Take a card from your discard and put it on top of your stack"
},
"stack_next_action_bought":{
"title":"Stack Next Action Bought",
"description":"When you buy an action, you may put it on top of your stack"
},
"stack_next_card_bought":{
"title":"Stack Next Card Bought",
"description":"When you buy a card, you may put it on top of your stack"
},
"play_next_card_bought":{
"title":"Play Next Card Bought",
"description":"When you buy a card, you may put it in play"
},
"draw_and_discard":{
"title":"Draw And Discard",
"description":"You may draw a card, then discard a card"
}
}
+3 -7
View File
@@ -20,9 +20,8 @@ export async function compileCards() {
template = await (await fetch(url)).text();
}
let arrayTemplate = template.split("\n");
arrayTemplate.splice(0, 1);
template = arrayTemplate.join("\n");
template = template.replace(/\<\?.*\?\>/gm, "");
return [
Number(k.match(regex)![0]).toString(),
// markRaw(
@@ -80,10 +79,7 @@ export async function compileTokens() {
} else {
template = await (await fetch(url)).text();
}
let arrayTemplate = template.split("\n");
arrayTemplate.splice(0, 1);
template = arrayTemplate.join("\n");
template = template.replace(/\<\?.*\?\>/gm, "");
return [
k.match(regex)![0].toString(),
markRaw(