From 2ddd50ea165ec4a36bb2b837ccbfc900115a2eaf Mon Sep 17 00:00:00 2001 From: LUCASTUCIOUS-OnePlus Date: Sat, 4 Mar 2023 12:12:36 +0100 Subject: [PATCH] add spells json --- data/spells/index.json | 2 + data/spells/spells-grimoire-fr.json | 64 +++++++++++++++++++++++++++++ data/spells/spells-grimoire.json | 64 +++++++++++++++++++++++++++++ index.html | 53 +++++++++++------------- lang/main-en.json | 5 ++- lang/main-fr.json | 5 ++- spells.html | 2 +- 7 files changed, 163 insertions(+), 32 deletions(-) create mode 100644 data/spells/index.json create mode 100644 data/spells/spells-grimoire-fr.json create mode 100644 data/spells/spells-grimoire.json diff --git a/data/spells/index.json b/data/spells/index.json new file mode 100644 index 0000000..16c04ad --- /dev/null +++ b/data/spells/index.json @@ -0,0 +1,2 @@ +{ "GRI-fr": "spells-grimoire-fr.json" +} \ No newline at end of file diff --git a/data/spells/spells-grimoire-fr.json b/data/spells/spells-grimoire-fr.json new file mode 100644 index 0000000..93da6ad --- /dev/null +++ b/data/spells/spells-grimoire-fr.json @@ -0,0 +1,64 @@ +{ "spell": [ { +                         "name": "Acid Splash", +                         "source": "PHB", +                         "page": 211, +                         "srd": true, +                         "basicRules": true, +                         "level": 0, +                         "school": "C", +                         "time": [ +                                 { +                                         "number": 1, +                                         "unit": "action" +                                 } +                         ], +                         "range": { +                                 "type": "point", +                                 "distance": { +                                         "type": "feet", +                                         "amount": 60 +                                 } +                         }, +                         "components": { +                                 "v": true, +                                 "s": true +                         }, +                         "duration": [ +                                 { +                                         "type": "instant" +                                 } +                         ], +                         "entries": [ +                                 "You hurl a bubble of acid. Choose one creature you can see within range, or choose two creatures you can see within range that are within 5 feet of each other. A target must succeed on a Dexterity saving throw or take {@damage 1d6} acid damage.", +                                 "This spell's damage increases by {@dice 1d6} when you reach 5th level ({@damage 2d6}), 11th level ({@damage 3d6}), and 17th level ({@damage 4d6})." +                         ], +                         "scalingLevelDice": { +                                 "label": "acid damage", +                                 "scaling": { +                                         "1": "1d6", +                                         "5": "2d6", +                                         "11": "3d6", +                                         "17": "4d6" +                                 } +                         }, +                         "damageInflict": [ +                                 "acid" +                         ], +                         "savingThrow": [ +                                 "dexterity" +                         ], +                         "miscTags": [ +                                 "SCL", +                                 "SGT" +                         ], +                         "areaTags": [ +                                 "ST", +                                 "MT" +                         ] +                 }, +} + + +] + +} \ No newline at end of file diff --git a/data/spells/spells-grimoire.json b/data/spells/spells-grimoire.json new file mode 100644 index 0000000..93da6ad --- /dev/null +++ b/data/spells/spells-grimoire.json @@ -0,0 +1,64 @@ +{ "spell": [ { +                         "name": "Acid Splash", +                         "source": "PHB", +                         "page": 211, +                         "srd": true, +                         "basicRules": true, +                         "level": 0, +                         "school": "C", +                         "time": [ +                                 { +                                         "number": 1, +                                         "unit": "action" +                                 } +                         ], +                         "range": { +                                 "type": "point", +                                 "distance": { +                                         "type": "feet", +                                         "amount": 60 +                                 } +                         }, +                         "components": { +                                 "v": true, +                                 "s": true +                         }, +                         "duration": [ +                                 { +                                         "type": "instant" +                                 } +                         ], +                         "entries": [ +                                 "You hurl a bubble of acid. Choose one creature you can see within range, or choose two creatures you can see within range that are within 5 feet of each other. A target must succeed on a Dexterity saving throw or take {@damage 1d6} acid damage.", +                                 "This spell's damage increases by {@dice 1d6} when you reach 5th level ({@damage 2d6}), 11th level ({@damage 3d6}), and 17th level ({@damage 4d6})." +                         ], +                         "scalingLevelDice": { +                                 "label": "acid damage", +                                 "scaling": { +                                         "1": "1d6", +                                         "5": "2d6", +                                         "11": "3d6", +                                         "17": "4d6" +                                 } +                         }, +                         "damageInflict": [ +                                 "acid" +                         ], +                         "savingThrow": [ +                                 "dexterity" +                         ], +                         "miscTags": [ +                                 "SCL", +                                 "SGT" +                         ], +                         "areaTags": [ +                                 "ST", +                                 "MT" +                         ] +                 }, +} + + +] + +} \ No newline at end of file diff --git a/index.html b/index.html index 278e4b5..38b95ac 100644 --- a/index.html +++ b/index.html @@ -2,25 +2,38 @@ - - - + fateforge-tools - + + -
FateforgeTools
+

FateforgeTools

A suite of tools for Fateforge players and Masters.
+
+ + + +
- +

fateforge.tool by Lucas Peter is licensed @@ -40,33 +53,15 @@ vertical-align: text-bottom; " src="https://mirrors.creativecommons.org/presskit/icons/nc.svg?ref=chooser-v1" />

- - +
- - + + + + - - \ No newline at end of file diff --git a/lang/main-en.json b/lang/main-en.json index 4810747..d75e890 100644 --- a/lang/main-en.json +++ b/lang/main-en.json @@ -3,5 +3,8 @@ "desc": "A suite of tools for Fateforge players and Masters.", "terms": { "Fateforge": "Fateforge" - } + }, + "btn-spells": "Spells", + "btn-monsters": "Creatures", + "btn-items": "Magic Items" } diff --git a/lang/main-fr.json b/lang/main-fr.json index a4282fa..c85fa1f 100644 --- a/lang/main-fr.json +++ b/lang/main-fr.json @@ -3,5 +3,8 @@ "desc": "Une gamme d'outils pour les joueurs et les meneurs de Dragons.", "terms": { "Fateforge": "Dragons" - } + }, + "btn-spells": "Sorts", + "btn-monsters": "Créatures", + "btn-items": "Objets Magiques" } diff --git a/spells.html b/spells.html index 1324c54..dcbe197 100644 --- a/spells.html +++ b/spells.html @@ -2,7 +2,7 @@ - +