fabio-t / alone-rl

A free to use, survival open-world roguelike game
GNU Affero General Public License v3.0
38 stars 2 forks source link

Make templates for everything in YAML #12

Open fabio-t opened 6 years ago

fabio-t commented 6 years ago

The smart way would be to implement a yaml serialiser/deserialiser for artemis-odb itself, so as to have component mappings.

But we'll go the easy way first: parse the yaml file and manually check a list of possible keys, then convert them to components as appropriate.

We are already doing it for primary attributes (and then we create secondary attributes), but stuff is still missing:

fabio-t commented 6 years ago

Item templates are almost done - the structure is there and it already works (tested with crafting).

What needs to be done is putting the right character and colour for each item, and changing all specific functions like makeStone into the new makeItem. Or something along those lines.