Players can hold (attribute max of Backpack) ores.
Backpack is counted every second (because i havent any control on changing quantity in Shops) as sum of ores in inventory.
But counting item quantity can be broken by swaping items in inventory.
I’ve tried to count ALL items in inventory, but it doesnt work too.
How to reach the bug:
How I count ores:
Setting value of Backpack: