>>116524981My first thought thinking about how soring resources works is that how much of a resource you can store could be limited to a certain number that you can increase with upgrades? For example, the base number of necessities you can store could be like 150, and then you can level up the granary to increase that to 300, 450 etc?
Also maybe instead of just a blank attrition, maybe the 20% of resources that get consumed get converted to some buff, like bonus production, or happiness. So for example, if 5 of your Cloves get attritioned you get +1 happiness this tick, and if 25 get attritioned you get +5 (example numbers). This way there's some strategy between keeping your stocks low to reduce your attrition and banking up to get more benefits, currently there's kinda no reason to bank resources besides to build up towards some expensive trade/improvement.
>>116525750I think you just block some URL-specific characters (".", "/", ":" and such) and that's all you need really. That plus limiting the length of names to like 24-32 characters should prevent most shenanigans.