So currently we don't store the data for how many slots the player has filled in the collection log on a single variable, if we did then it would be very easy for us to do.
Each item has it's own variable on the player for how many the player has obtained, when a tab is loaded it checks against a list of items we know are part of that tab and counts how many the player has has. For simplicity sake let's take the Chaos Druids tab as it's very small only having 3 pieces.
It will do the following:
counter for total items in this log is 3, so we know it's X/3
counter for total items the player has is 0
Get the first item (robe top) if the amount is >0 increment total items counter by 1 so it's 1/3
Repeat for robe bottom and hood.
Now you could ask why we don't just count all the individual variables everytime you open the log but the sheer number of them (1300-1400 ish iirc) would be quite an expensive piece of code to run every t...
Read more