There should be a system for the player gaining experience and leveling up stats. Perhaps, in general, entities will be assigned a level depending on the total of the stats?
One possible solution for the player is a class system. The player's class would contain the following:
- A function that defines the amount of experience needed to reach a level. Traditionally, such a function would be exponential.
- An array of hash objects (like
Equippable's stat_change) that define the change in stats at each level. Alternatively, a linear progression would be simpler but more limiting.
- Other neat things.
To be continued...
Send pull requests to the level-system branch.
There should be a system for the player gaining experience and leveling up stats. Perhaps, in general, entities will be assigned a level depending on the total of the stats?
One possible solution for the player is a class system. The player's class would contain the following:
Equippable'sstat_change) that define the change in stats at each level. Alternatively, a linear progression would be simpler but more limiting.To be continued...
Send pull requests to the
level-systembranch.