Improving inventory inefficiencies
-
Hello.
I'd like to ask about some inefficiencies in the user inventory.
- Item rewards should be called individually, not in bulk.
- To find items based on their 'defId' within the inventory, a full search is required.
For itemCatalogs, which can only hold one item, we need to check if the item exists in the user's inventory before issuing the reward.
The problem is that it only supports itemId-based verification.Furthermore, since there's no bulk-based reward payment system, rewards must be paid out individually. However, setting up approximately 100 to 200 items initially...
results in inefficient code.
-
-
hi. @JasonL
This is somewhat different from what I had in mind.
While bundling and using it is a viable option,
it differs somewhat from the goal of "dynamically distributing a single item at once."
Bundles require pre-composition and require version control. Furthermore, the actual disbursement only occurs after the bundle is opened.
A function like AwardUserItem (multi defIds) is required.