Gusarich / housify

Housify is an advanced programming language and compiler specifically designed for Hypixel Housing
MIT License
3 stars 0 forks source link

Default stat values are not compiled properly #54

Closed Gusarich closed 3 months ago

Gusarich commented 3 months ago

You can set the defalut value for a stat but after compilation it doesn't work.

Gusarich commented 3 months ago

Actually while working on a fix I realized that we can't really know if stat was never assigned before or its value is just 0, so we won't be able to implement default values correctly in this case.

We could introcude some helper stats that track set values but due to a limit of persistent stats that's a bad idea.

I'll just remove the possibility to define the defalut value for a stat.