Update inventory selection logic.