diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..00c6033 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.tex +*.pdf +*.aux +*.log diff --git a/data/sample.json b/data/sample.json new file mode 100644 index 0000000..3573d8c --- /dev/null +++ b/data/sample.json @@ -0,0 +1,37 @@ +{ + "Alarm": { + "info": { + "type": "Abjuration", + "grade": "1", + "ritual": true + }, + "level": 1, + "tags": { + "preparation": { + "value": "1", + "unit": "minute", + "desc": "1 minute" + }, + "range": 30, + "components": [ + "V", + "G", + "M" + ], + "materials": "a tiny bell and a piece of fine silver wire", + "duration": { + "value": "8", + "unit": "hours", + "concentration": false, + "desc": "8 hours" + }, + "Quelle": "PHB" + }, + "text": "You set an alarm against unwanted intrusion. Choose a door, a window, or an area within range that is no larger than a 20-foot cube. Until the spell ends, an alarm alerts you whenever a Tiny or larger creature touches or enters the warded area. When you cast the spell, you can designate creatures that won’t set off the alarm. You also choose whether the alarm is mental or audible. A mental alarm alerts you with a ping in your mind if you are within 1 mile of the warded area. This ping awakens you if you are sleeping. An audible alarm produces the sound of a hand bell for 10 seconds within 60 feet.", + "classes": [ + "Ranger", + "Wizard" + ], + "page": 999 + } +} diff --git a/sample.png b/sample.png new file mode 100644 index 0000000..52cc0e2 Binary files /dev/null and b/sample.png differ diff --git a/templates/spelldeck.tex.jinja b/templates/spelldeck.tex.jinja index d4e0d76..41504a7 100644 --- a/templates/spelldeck.tex.jinja +++ b/templates/spelldeck.tex.jinja @@ -54,6 +54,15 @@ \definecolor{tag_type_Verwandlung}{RGB}{102,204,255} \definecolor{tag_type_Verzauberung}{RGB}{255,204,0} +\definecolor{tag_type_Illusion}{RGB}{153, 102, 51} +\definecolor{tag_type_Abjuration}{RGB}{204,0,255} +\definecolor{tag_type_Conjuration}{RGB}{255,0,0} +\definecolor{tag_type_Divination}{RGB}{255,255,255} +\definecolor{tag_type_Evocation}{RGB}{255,255,0} +\definecolor{tag_type_Necromancy}{RGB}{0,0,0} +\definecolor{tag_type_Transmutation}{RGB}{102,204,255} +\definecolor{tag_type_Enchantment}{RGB}{255,204,0} + % define style for tikz lib \tikzset{ % Round corners for the cards