Modified ItemInst class to use the new inventory structure