Compare commits
5 Commits
83b42776d1
...
bcdd9fbd23
| Author | SHA1 | Date | |
|---|---|---|---|
| bcdd9fbd23 | |||
| 05063f2afb | |||
| cd4754901c | |||
| 2a8ee97e76 | |||
| 64354f93f8 |
@@ -1,2 +1,5 @@
|
||||
# dominionator
|
||||
# Dominionator
|
||||
|
||||
A web-app for making [Dominion](https://www.riograndegames.com/games/dominion/) fan-cards. Inspired by [shardofhonor's dominion-card-generator](https://github.com/shardofhonor/dominion-card-generator), but trying to be more modern and maintainable with React and Typescript. Currently it's not much of a web-app since there are no inputs to edit the cards, but you can mess with the hardcoded array in `src/cards.ts` to render arbitrary cards.
|
||||
|
||||
To run it, clone the repo and run `deno task dev`.
|
||||
@@ -1,16 +0,0 @@
|
||||
const cards = [
|
||||
"Chateau",
|
||||
"Consul",
|
||||
"Eclipse",
|
||||
"Flask",
|
||||
"Foundry",
|
||||
"Moonlit_Scheme",
|
||||
"Productive_Village",
|
||||
"Retainer",
|
||||
"Secret_Society",
|
||||
"Shovel",
|
||||
"Silk",
|
||||
"Steelworker",
|
||||
"Vase",
|
||||
"Vendor",
|
||||
]
|
||||
|
Before Width: | Height: | Size: 1.7 MiB |
|
Before Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 2.1 MiB |
|
Before Width: | Height: | Size: 1.8 MiB |
|
Before Width: | Height: | Size: 3.3 MiB |
|
Before Width: | Height: | Size: 1.6 MiB |
|
Before Width: | Height: | Size: 2.8 MiB |
|
Before Width: | Height: | Size: 2.0 MiB |
|
Before Width: | Height: | Size: 3.6 MiB |
|
Before Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 3.7 MiB |
|
Before Width: | Height: | Size: 3.4 MiB |
|
Before Width: | Height: | Size: 1.6 MiB |
|
Before Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 2.1 MiB |
|
Before Width: | Height: | Size: 2.0 MiB |
|
Before Width: | Height: | Size: 3.0 MiB |
|
Before Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 2.1 MiB |
|
Before Width: | Height: | Size: 3.4 MiB |
|
Before Width: | Height: | Size: 2.0 MiB |
|
Before Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 2.1 MiB |
|
Before Width: | Height: | Size: 2.1 MiB |
|
Before Width: | Height: | Size: 2.0 MiB |
|
Before Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 3.6 MiB |
|
Before Width: | Height: | Size: 3.9 MiB |
|
Before Width: | Height: | Size: 1.9 MiB |
@@ -1,45 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Dominionator</title>
|
||||
<style>
|
||||
body {
|
||||
display: block;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
img {
|
||||
display: inline-block;
|
||||
}
|
||||
.break {
|
||||
page-break-after: always;
|
||||
}
|
||||
.card {
|
||||
width: 2.25in;
|
||||
break-inside: avoid;
|
||||
}
|
||||
.card.horizontal {
|
||||
width: auto;
|
||||
height: 2.25in;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="cards"></div>
|
||||
<script src="cards.js"></script>
|
||||
<script>
|
||||
const cardsDiv = document.getElementById("cards");
|
||||
const addCard = (card) => {
|
||||
cardsDiv.innerHTML += `<img class="card" src="./cards/${card}_v0.1.png"/>`
|
||||
}
|
||||
// // randomizers
|
||||
// for (const card of cards) {
|
||||
// addCard(card);
|
||||
// }
|
||||
// cards
|
||||
for (const card of cards) {
|
||||
for (let i = 0; i < 10; i++) {
|
||||
addCard(card);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -301,4 +301,18 @@ export const cards: DominionCard[] = [
|
||||
preview: "",
|
||||
expansionIcon,
|
||||
},
|
||||
{
|
||||
orientation: "card",
|
||||
title: "Scrap Metal",
|
||||
description:
|
||||
"+1 Action\n\nChoose one: +1 Card,\nor +$1.\n\nYou may trash this.\n\n-\n\nThe first time you buy this on your turn, +1 Buy.",
|
||||
types: [TYPE_ACTION, TYPE_TREASURE],
|
||||
image: "",
|
||||
artist: "",
|
||||
author: "Dylan & Cal",
|
||||
version: "0.1",
|
||||
cost: "$1",
|
||||
preview: "",
|
||||
expansionIcon,
|
||||
},
|
||||
];
|
||||
|
||||