Well system isn't something complicated I just wanted to find some use for wc3 food.
Timer will each few sec reduce food by 1, if food drop below some value hero will become slowed, as food go down even more hero will become more and more slowed as well.
When food become 0 hero die.
You can buy food items that heal and restore mana (some of them) and increase food by some amount.
Main idea is to block player from buying 100 food items and then attacking boss unit.
You can eat to max 100/100 (this limit can be increased with items later and hero stats like strength), if you have 99/100 and you eat food with +3 = 102/100 you will overfeed hero and slow it again.
Instead of fix amount of heal (+17 life and +10 mana) I will change that to % of max hp and see what people think, heal will be larger and food will remain, I will fix timer as well so everything should be more or less ok...
I have 6 slots for HERO, 6 for BACKPACK (carry weapons, armors...) and 6 in BAG (herbs, scrolls, books, food...)