Background: I have a bag of random items (the colored symbols) and I have my stats, the stats are related with items, each slot contain only 1 item, it can’t be stacked (but let’s say if you need to equip with 2 stars you need 2 slots, one slot for each item)
The real problem is how do I properly handle stat changes from having / removing items, should it be checking on when it’s added or removed? like having an event to check what item is being added, if star → + some stats, if triangle → + other stats, AND when an item is removed, check what is being removed then reduce related stats etc.
What are your suggestions for this mechanic? I’ve seen an inventory system extension and build-in inventory system with condition on equip or something but I’m not sure it can be adapted with my mechanic or not because I can have multiple copies of the same item name. Thank you.
BTW, I think I might use either object array or scene array to store those items.