public void StartRepairing(UranDiggerRepairing uranRepairing) { ActualWorkType = WorkType.Repairing; int workTicks = (int)(uranRepairing.MaxHealth - uranRepairing.ActualHealth); Work.StartWork(Character.Stats.RepairOneHealthTime, workTicks, () => StopRepairing(uranRepairing), () => uranRepairing.ChangeHealth(1)); }
public void StopRepairing(UranDiggerRepairing uranRepairing) { Work.ForceStopWork(); ActualWorkType = WorkType.None; }