Advertisement
Kahmul

Maximum Inventory Capacity

Jun 19th, 2017
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. https://github.com/tarvitz/dsfp/blob/master/docs/datasheet.rst
  2.  
  3. Inventory capacity:
  4.  
  5. START VALUE (0x2e0): 2 * 16^2 + 14 * 16^1 + 0 * 16^0 = 736
  6.  
  7. END VALUE (0xe2e0): 14 * 16^3 + 2 * 16^2 + 14 * 16^1 + 0 * 16^0 = 58080
  8.  
  9. => range of values reserved for inventory: 58080 - 736 = 57344 (decimal); 1110000000000000 (binary)
  10. => Each item allocates 4 * 7 bytes = 28 bytes
  11. => Max nr of items: 57344/28 = 2048 items
  12.  
  13. Amount reserved for key items: 64
  14. -> Total items allowed in iventory other than key items: 2048 - 64 = 1984 items
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement