Compare commits

5 Commits

Author SHA1 Message Date
Dylan Pizzo bcdd9fbd23 scrap metal 2026-07-07 19:25:26 -04:00
Dylan Pizzo 05063f2afb re-add cards 2026-07-07 19:25:13 -04:00
Dylan Pizzo cd4754901c Tweak the wording 2025-02-19 19:51:26 -08:00
Dylan Pizzo 2a8ee97e76 Update the readme 2025-02-19 19:49:58 -08:00
Dylan Pizzo 64354f93f8 remove cards 2025-02-19 19:45:12 -08:00
37 changed files with 18 additions and 62 deletions
+4 -1
View File
@@ -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`.
-16
View File
@@ -1,16 +0,0 @@
const cards = [
"Chateau",
"Consul",
"Eclipse",
"Flask",
"Foundry",
"Moonlit_Scheme",
"Productive_Village",
"Retainer",
"Secret_Society",
"Shovel",
"Silk",
"Steelworker",
"Vase",
"Vendor",
]
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

-45
View File
@@ -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>
+14
View File
@@ -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,
},
];