thuiop / magium-dev

MIT License
13 stars 4 forks source link

Setting defaults for variables #15

Closed thuiop closed 2 months ago

thuiop commented 2 months ago

Currently variables are only set when clicking on some button. However, this causes the game to crash when checking against an unset variable (e.g. if you have not invested any stats). We should look what the defaults are and set them at the start.

himanshunaidu commented 2 months ago

We can do that yes. I am actually somewhat handling that for the stats page, where i create the variables with default values. We can move such logic to the main page itself, since these variables will be used everywhere.

thuiop commented 2 months ago

Fixed in #17