![]() Here, % is the modulo operator - it means we use the remainder of the division between total items and maximum stack size. The number of leftover items can be calculated with leftover items = total items % maximum stack size. ![]() The floor operation means to round down to the nearest integer. The number of full stacks (that is, the number of slots that will contain the maximum number of items) can be determined with stacks = floor(total items / maximum stack size). Then, knowing the total number of items we have, continue with these two formulas: Most items stack to 64, but some only stack to 16. ![]() But how do we determine how many stacks an arbitrary number of items will fill up? And how many items will remain in a semi-full stack? We can calculate these with some quick formulas.įirst, determine whether the item's maximum stack size is 64 or 16. We've hopefully convinced you of the importance of item stacks.
0 Comments
Leave a Reply. |