A Python project to instantly generate leader cards for Arcs. It uses the Pillow library to manipulate images and create customizable leader cards.
- Python 3.x
- Pillow: Install via
pip install Pillow
-
Clone the repository:
git clone https://github.com/your-username/arcs-development-kit.git
-
Install dependencies:
pip install Pillow
Run the following script to generate cards for all leaders defined in leadersFormatted.py:
python scripts/batchImages.pyAdd the leaders you have made to leadersFormatted.py in this format:
{
"name": "Kaiju",
"abilities": (
"**Devouring:** When you destroy a city, repair all your ships in its cluster.\n"
"**Feared:** When you tax a city you control, damage it."
),
"resources": ["Weapon", "Material"],
"setup": {
"A": {"ships": 4, "building": "city", "damaged": False},
"B": {"ships": 4, "building": "city", "damaged": False},
"C": {"ships": 2, "building": "None", "damaged": False}
}
},If you need to change the font size you can change the last lines of the leader to this:
"C": {"ships": 2, "building": "None", "damaged": False}
},
"body_font_size": 16I recommend you use ChatGPT or another AI tool to quickly reformat your leader data into this format.
If you want to change the body font on your card you can surround words with * to do so (you have to surround each word individually):
- **italic*
- **bold**
- ***both***
Cards will be saved in the results/ folder.
Here you can find the most up to date version of my custom leaders: https://docs.google.com/document/d/11SS9AGXG0q3Vlb67Kl0mdvhnE0kKLfgCDgx5LVDwsGk/edit?usp=sharing
