Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a6490fc180 | ||
|
|
19bed27f78 |
+1
-1
@@ -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
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user