Phazorknight / Cogito

Immersive Sim Template Project for GODOT 4
MIT License
670 stars 72 forks source link

refactor: Store player attributes in Dictionary instead of Array #165

Closed aronand closed 2 months ago

aronand commented 2 months ago

Player attributes are accessed by name, thus storing them in a Dictionary makes more sense than in an Array.

These changes edit attribute storing, saving, and loading to use Dictionaries instead. An attempt is also made to make the code ever so slightly more readable by using more descriptive variable names where applicable.

Changes are tested in test maps and seem to function as intended.