inventoryRow

fun inventoryRow(index: Int): Int

Gives the row of a given index. Does not throw an exception if index is out of range.

Return

the row position for the index (0-7)

Parameters

index

ranges from 0 - (INVENTORY_SIZE-1)