Tweaks
This commit is contained in:
parent
7f4268f960
commit
6213eda240
@ -425,7 +425,7 @@ export const parse = (text: string): Piece[] => {
|
|||||||
pieces.push({ type: "potion", text: text.slice(i + 1, i + end) });
|
pieces.push({ type: "potion", text: text.slice(i + 1, i + end) });
|
||||||
i += end - 1;
|
i += end - 1;
|
||||||
} else if (char === "+") {
|
} else if (char === "+") {
|
||||||
const match = text.slice(i).match(/\+\d* \S+/);
|
const match = text.slice(i).match(/\+\d* \w+/);
|
||||||
if (match) {
|
if (match) {
|
||||||
const end = match[0].length;
|
const end = match[0].length;
|
||||||
pieces.push({
|
pieces.push({
|
||||||
|
@ -9,7 +9,7 @@ export const sampleCard1: DominionCard = {
|
|||||||
orientation: "card",
|
orientation: "card",
|
||||||
title: "Title",
|
title: "Title",
|
||||||
description:
|
description:
|
||||||
"+1 Action\n\nReveal the top card of your deck. If it's an Action card, put it into your hand.",
|
"+1 Action\n\nReveal the top card of your deck. If it's an Action card, +1 Action.",
|
||||||
types: [TYPE_ACTION, TYPE_REACTION],
|
types: [TYPE_ACTION, TYPE_REACTION],
|
||||||
image: "https://wiki.dominionstrategy.com/images/7/76/AdventurerArt.jpg",
|
image: "https://wiki.dominionstrategy.com/images/7/76/AdventurerArt.jpg",
|
||||||
artist: "Dall-E",
|
artist: "Dall-E",
|
||||||
@ -34,13 +34,14 @@ export const sampleCard2: DominionCard = {
|
|||||||
|
|
||||||
export const sampleCard3: DominionCard = {
|
export const sampleCard3: DominionCard = {
|
||||||
orientation: "card",
|
orientation: "card",
|
||||||
title: "Silver",
|
title: "Flask",
|
||||||
description: "$2\n\n+@2",
|
description:
|
||||||
|
"+2 Cards\n\nAt the start of your Clean-up phase, you may put a card from your hand onto your deck.",
|
||||||
types: [TYPE_TREASURE],
|
types: [TYPE_TREASURE],
|
||||||
image: "",
|
image: "",
|
||||||
artist: "",
|
artist: "",
|
||||||
author: "",
|
author: "",
|
||||||
version: "",
|
version: "",
|
||||||
cost: "$3^",
|
cost: "$6",
|
||||||
preview: "",
|
preview: "",
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user