Changed stack_size, max_stack_size, weight and volume to be numbers instead of strings. This was needed for volume calculations and consistency
Added a mod maintenance script to change the type of a property to another type
The item_manager now checks if the item fits in the inventory when crafting
The crafting menu now gives feedback on a successful or a failed craft
The volume bar in the player inventory wasn't updated when the game starts, but it updates now.
The feedback in the crafting menu is a label above the craft button that shows for 0.5 seconds after pressing the craft button
Craft fails because of low resources:
Craft fails because of low inventory space:
Craft succeeded:
There is another feedback message that is harder to get, where some items can't be removed from the inventory somehow
The volume calculations are simple. It only checks if the item fits in the inventory. This is a bit limited, since more space is created when items are removed from the inventory during crafting. But it's a start.
Fixes #202 but does some more stuff
The feedback in the crafting menu is a label above the craft button that shows for 0.5 seconds after pressing the craft button
Craft fails because of low resources:
Craft fails because of low inventory space:
Craft succeeded:
There is another feedback message that is harder to get, where some items can't be removed from the inventory somehow
The volume calculations are simple. It only checks if the item fits in the inventory. This is a bit limited, since more space is created when items are removed from the inventory during crafting. But it's a start.