expressobits / inventory-system

Modular inventory system for godot 4 with nodes, compatible with multiplayer, separate logic from the UI, Using items as separate resources.
MIT License
478 stars 31 forks source link

fix linked variables in newly created items #55

Closed Lodugh closed 1 year ago

Lodugh commented 1 year ago

Fixes a bug where newly created item properties and categories are not unique per instance.

scriptsengineer commented 1 year ago

Thanks for that, I actually knew about it but had no idea how to resolve it.

Lodugh commented 1 year ago

Yeah, wasnt easy to figure something out.. Really should get fixed in-engine.

scriptsengineer commented 1 year ago

Yeah, wasnt easy to figure something out.. Really should get fixed in-engine.

Yes, I still have this problem with duplicating objects for multiplayer. This one I solved in a palliative way by destroying and creating before the game started.

Lodugh commented 1 year ago

Nevermind, doesnt really seem to be fixed, it behaves really weirdly and I cant wrap my head around it.. Guess it needs further investigation.