miwarnec / uMMORPG_CE

4 stars 0 forks source link

item drop slot not removed #52

Open Trugord opened 3 years ago

Trugord commented 3 years ago

Describe the bug item drop slot not removed

[IMPORTANT] How can we reproduce the issue, step by step: -> install ummorpg lasted version -> kill a monster -> drop item -> slot not removed

Screenshots image

delgelato commented 3 years ago

I think this is by design, bcoz the monster's inventory slot indexing needs to remain valid If it's to visually remove the empty slot, and the way that still works nicely with BalancePrefabs, is to also do SetActive(itemSlot.amount >0) I thiiink this has no downside perf wise, unless each slot got their own weird layouting that triggers on dirty active true/false