Let me get this straight (a little confused). Say I have a "rarity" value as catalog custom data for an item. When an InstanceId is sent to to CloudScript I need to:
- Get the whole user inventory(+400 items)
- Get the whole item catalog (+600 item definitions)
- Parse through the whole inventory item for item to find the correct instance and ItemId
- Then parse through the whole item catalog to find the corresponding catalog item
- Now I can see the custom data.
Compare it with Clash Royal chest timing. You want to know how long time this specific chest will take to open (hence rarity and maybe time that it will take to unlock). You cannot send the ItemId as argument as it might be corrupt and just need to check it up inside the cloudscript.
The solution feels so heavy on the server?