lor-card-generator
v1.1.0
Published
Library of Ruina Card Generator
Readme
Library of Ruina Card Generator
Small library to generate cards as if they were from Library of Ruina.
How to use
- Get NodeJs.
- After creating a folder, run in a terminal.
npm i lor-card-generator
- Now you can use the CLI to generate cards!
The CLI is accessed by using lor-card in the terminal. You have to pass in the following options:
| Option | Accepts | Description | Example |
| ------- | ------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | --------------------------------------------------- |
| image | string | Path to the image. | ./images/krooming.jpg |
| cost | number 0-9 | The cost of the card. | 3 |
| attacks | slash blunt pierce evade block counter-slash counter-blunt counter-pierce counter-evade counter-block | The attack slots in the bottom of the card, can be separated by a slash (/). Max 5. | blunt blunt/blunt pierce/counter-blunt/pierce |
| name | string | The name or title of the card. | Bonk |
| type | CardType | The type of the card based on Library of Ruina combat pages. | limited |
| range | melee range mass | The type of range of the card, included mass attacks. | melee |
Example command:
lor-card --image ./path/to/image.png --cost 1 --attacks blunt/slash/blunt --name TestCard --type limited --range mass
Examples
| Ryoshu | Ishmael |
| ---------------------------------- | ------------------------------------- |
|
|
|
Working on
- Ability to pass in a
.jsonfile and generate a card from it. - Skill Effects / Damage / Die rolls.
- Lose less quality when rotating icons.
Special thanks
- Lunartique07, R.Anakova and CasualWatson for publishing a drive link with all the sprites from the game.
