Currently, both the Inventory and the PopManager use int32 to save things like the amount of owned Iron Ore. This way, it is not possible to add fractional values (such as 0.01 Iron Ore every frame), which causes problems when implementing collector jobs for example.
Solution
Such systems should internally use float32 to track the current amount, and expose certain getters and setters, that round to the lower integer as required.
Problem Description
Currently, both the Inventory and the PopManager use int32 to save things like the amount of owned Iron Ore. This way, it is not possible to add fractional values (such as 0.01 Iron Ore every frame), which causes problems when implementing collector jobs for example.
Solution
Such systems should internally use float32 to track the current amount, and expose certain getters and setters, that round to the lower integer as required.