Vorlent / tradesim

GNU General Public License v3.0
1 stars 1 forks source link

Inventory and item system #10

Open Vorlent opened 1 year ago

Vorlent commented 1 year ago

Humans have two inventory slots one for each hand. Each item slot has an amount, weight and volume constraint. The actual weight and volume numbers aren't relevant and can be made realistic or unrealistic if necessary.

Inventory slots can contain items. Items that are too big or too heavy cannot be put into inventory slots.

Items can be placed on the ground where they never despawn. This is supposed to encourage the need for bags, backpacks, trolleys, carts and storage crates to approximate transportation and storage costs in the real economy. Most games have ridiculous weight and volume constraints for the sake of entertainment.

It should be possible to click on humans to view their inventory.

Items have icons and properties. The item system should be as extendable as possible and adding new item types should be as easy as possible.

Vorlent commented 1 year ago

For now I will keep things very simple.

In the future I might start using: https://github.com/peter-kish/gloot#item-prototypes-for-a-grid-based-inventory