alone-rl
alone-rl copied to clipboard
Make templates for everything in YAML
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:
- [ ] Game configuration (height and width of terminal, tileset, hour-seconds..)
- [ ] Map generation information (seed, "biomes", distributions for placement..); this might probably be "distributed" in another files
- [ ] Creature, trees, boulders etc placement.. (probably linked to above)
- [x] Map thresholds for terrain (colours, character, elevation) #18
- [x] Creature templates #30
- [x] Item templates
- [x] Crafting recipes #14
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.