In the items' database fields, the location is stored as the strings (names of the locations). Shift that and use one-to-one keys. The task is not really hard per se, however you might have to go through the complete source code in order to identify possible problems caused due to shifting.