Toma400 / The_Isle_of_Ansur

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

Change to statpacks: items #54

Closed Toma400 closed 7 months ago

Toma400 commented 2 years ago

Items are currently handled by items.json file under statpacks. However, this is not practical by any means if you'd like to create extensive list of them, as those entries will be rough to work with.

This is why I'd suggest totally different system, and bundle it with new statpack addition: monsters.

This system would operate on items folder instead, and each .json file there would represent item of given - IID would head into file with IID name, not contents of json. This will also make files less heavy nested and will go nicely with new assets folder which will also be added.

Let me visualise the structure:

=====================================
OLD:
------------------------------------
stats/
   races.json
   classes.json
   items.json >> ayer_knife dict
   lang.json
   info.json

=====================================
NEW:
------------------------------------
stats/
    assets/
       ayer_knife.png
    items/
       ayer_knife.json
    entities/
       wolf.json
    --
    races.json
    classes.json
    lang.json
    info.json

Albeit folders wouldn't be possible, as they would require more data than just IID, it will be also easier to manage items and entities categories, as we can add them as prefixes for IDs, for example: ayer_knife -> weapon_blade__ayer_knife Of course this will require not going for too long names/too many subcategories, but should do the trick.

Toma400 commented 1 year ago

Feature delayed, as items are not a pre-alpha 3 content.

Toma400 commented 11 months ago

Items are not pre-alpha 4 scope, so moving the milestone.

Toma400 commented 7 months ago

Made with 5303035 <3