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

Handle CreatureTemplate like items #30

Closed fabio-t closed 6 years ago

fabio-t commented 6 years ago

To properly implement the Character Creation (#20) I must handle the creature templates just like items and terrains. This implies a bit of refactoring into BootstrapSystem, or the creation of a CreatureSystem that allows instantiating creatures of a specific "type" at runtime.

It will probably be better if we define all creatures in a single file.

It remains the question or where to put player specific configuration, then. Some things shouldn't be modifiable, eg primary attributes are chosen at creation, not via a file. However, stuff like Sight should be configurable, unless I make Sight another primary attribute (that consumes attribute points at creation).