Part 2 - The Solution: Flags

Flags are what you call a bit whose job is to inform you of a single thing. For example, did I unlock <insert glam name here>? 0 means no, 1 means yes. And as much as I could just say this is how it’s done, the solution is a bit more nuanced than that. Why? Well, you can find the answer below.

Code:
+--------------+----------------+-------------+------------+----------------+-----------+-------------+-------+
| Item Amounts | A Realm Reborn | Heavensward | Stormblood | Shadowbringers | Endwalker | Mog Station | Total |
+--------------+----------------+-------------+------------+----------------+-----------+-------------+-------+
| Head         |       552      |     535     |     522    |       501      |    383    |     126     |  2619 |
+--------------+----------------+-------------+------------+----------------+-----------+-------------+-------+
| Body         |       546      |     536     |     507    |       493      |    395    |     145     |  2622 |
+--------------+----------------+-------------+------------+----------------+-----------+-------------+-------+
| Hands        |       409      |     475     |     460    |       445      |    350    |      61     |  2200 |
+--------------+----------------+-------------+------------+----------------+-----------+-------------+-------+
| Legs         |       453      |     495     |     460    |       459      |    368    |     101     |  2336 |
+--------------+----------------+-------------+------------+----------------+-----------+-------------+-------+
| Feet         |       413      |     499     |     470    |       468      |    362    |      97     |  2308 |
+--------------+----------------+-------------+------------+----------------+-----------+-------------+-------+
| Earrings     |       203      |     247     |     199    |       216      |    197    |      11     |  1073 |
+--------------+----------------+-------------+------------+----------------+-----------+-------------+-------+
| Necklace     |       198      |     234     |     197    |       193      |    202    |      4      |  1028 |
+--------------+----------------+-------------+------------+----------------+-----------+-------------+-------+
| Bracelets    |       205      |     234     |     194    |       191      |    182    |      3      |  1010 |
+--------------+----------------+-------------+------------+----------------+-----------+-------------+-------+
| Ring         |       261      |     234     |     194    |       194      |    183    |      4      |  1070 |
+--------------+----------------+-------------+------------+----------------+-----------+-------------+-------+
| Total        |      3240      |     3489    |    3203    |      3160      |    2622   |     522     | 16266 |
+--------------+----------------+-------------+------------+----------------+-----------+-------------+-------+