Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Internal data for what effects modifiers have (like traits, food, etc) and for all of the presets and templates are stored in YAML files in /src/assets/modifierdata and /src/assets/presetdata.

See Templates and Presets and Modifiers for information about the specific formats of those sections.

To do: split up "trait" template files into traits / extras, to allow users to mix and match.

To do: add a user interface (Netlify CMS) so contributors need not edit YAML directly.


If you've never seen YAML before, the big thing you need to know is that indentation is important! Make sure to copy-paste blocks of YAML including the whitespace at the beginning of the lines. Use an editor like Visual Studio Code or an online tool like transform.tools's editor to see in real time if your YAML has problems.

# text after a hash mark is a comment!
# each key corresponds with one value!

a dictionary:
  a number: 123.45
  a string: hi             # quotation marks around strings are optional!
  a big string: >
    hello, this is
    an entire paragraph
    which is one string
a list:
- apple
- banana
- carrot
a list of dictionaries:

- class: revenant
  armor: heavy

- class: thief
  armor: medium

- class: mesmer
  armor: light
a dictionary of lists:

revenant builds:
  - power alacrity
  - condi RR

thief builds:
  - condi deadeye
  - power daredevil

mesmer builds:
  - power chrono
  - condi mirage

You can learn more about YAML from tutorials like this one, from learnxinyminutes.com, or from the Wikipedia article on YAML.