toIndex

fun toIndex(location: InvLocation): Int