Added repair functionality by starDays elapsed