Open morgajel opened 10 years ago
Did not know I couldn't assign 2 people. IMO, I think we should use some relationship to an ItemStack model.
dev.multiverseminer.com/admin @jmeyer2k
Itemstack would be an item, an amount, a type (player, planet, etc), and a player.
Ok lets do it. Can you handle that?
On Wed, Aug 27, 2014 at 12:17 PM, Julian Meyer notifications@github.com wrote:
Itemstack would be an item, an amount, a type (player, planet, etc), and a player.
— Reply to this email directly or view it on GitHub https://github.com/MultiverseMiner/multiverseminer/issues/148#issuecomment-53599021 .
Yeah sure.
@jmeyer2k I suggest an Inventory model to act as an association table between items and players; It would work the same way the Ingredients model works between Item and Item.
I thought of that, but the problem is that the table would get really big for not a very good reason as well as it would be more difficult to implement giving each player more than one inventory (planet inventories, storage, etc)
EDIT: oops, never mind, they would be the same size. And I guess we are sort of thinking of the same thing.
Do we want a simple json blob in a text field that gets pulled, updated and pushed? That would be the easiest and worst way to implement.
I suspect the best alternative is an inventory association table between a player (or world or storehouse?) and items, including an amount.