15 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
Dylan Pizzo 83b42776d1 Merge branch 'drawer' 2025-02-19 19:41:13 -08:00
Dylan Pizzo 3c3ee0565a update cards list 2025-01-04 21:35:37 -05:00
Dylan Pizzo 98a2ce93fe Add a card 2024-12-31 11:56:38 -05:00
Dylan Pizzo 84bc6d79f5 Some more cards 2024-12-29 22:29:31 -05:00
Dylan Pizzo c698ac3499 add 2 more night cards 2024-12-28 23:29:57 -05:00
Dylan Pizzo e4484b6873 add 2 night cards 2024-12-28 23:05:27 -05:00
Dylan Pizzo f330dbde33 add secret society 2024-12-27 23:45:50 -05:00
Dylan Pizzo bb2403adad add credit 2024-12-27 20:49:44 -05:00
Dylan Pizzo f7e4116b42 Add some more cards 2024-12-27 20:48:20 -05:00
Dylan Pizzo 50f27010f0 Add 3 cards 2024-12-27 08:54:21 -05:00
21 changed files with 18 additions and 52 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`.
-6
View File
@@ -1,6 +0,0 @@
const cards = [
"Discover",
"Prospector",
"Scientist",
"Vase",
]
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.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 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.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 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

-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,
},
];