Example #1
0
    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));
    }
Example #2
0
 public void StopRepairing(UranDiggerRepairing uranRepairing)
 {
     Work.ForceStopWork();
     ActualWorkType = WorkType.None;
 }