Toma400 / The_Isle_of_Ansur

Python-based text RPG game, successor of Between Shadows and Light.
Other
9 stars 0 forks source link

Modularised hardcoded statistics (attributes, skills, etc.) #72

Closed Toma400 closed 9 months ago

Toma400 commented 1 year ago

I feel like this could be brought up earlier, but I couldn't find it.

In short, current implementation (which is mostly old terminal framework) inherits player statistics from predefined, hardcoded in default_stats.py file.

The thing is, with more and more modular approach IoA gets, having those as hardcoded properties make no sense, especially considering possible large globalpacks that may come (even from me, hah). The idea is to move those statistics into statpack json, or anything which can be appendable easily. This way mods can create new skills and attributes, if they need to. Possibly this can also go for non-attribute properties, such as even savegame settings, questlists, or anything in similar matter.

Toma400 commented 9 months ago

This is basically finished, statistics are now entirely data driven ^^