Khaligufzel / Dimensionfall

A survival game inspired by Cataclysm: Dark Days Ahead and Bright Nights.
MIT License
12 stars 5 forks source link

Crafting menu respects volume in inventory #217

Closed snipercup closed 3 months ago

snipercup commented 3 months ago

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: image

Craft fails because of low inventory space: image

Craft succeeded: image

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.