Ejemplo n.º 1
0
 protected override bool check_target_kit(ConstructionKitInfo target)
 {
     if (!base.check_target_kit(target))
     {
         return(false);
     }
     if (dist2kit(target) > GLB.MaxDistanceToWorkshop)
     {
         Utils.Message("{0} is too far away. Needs to be closer that {1}m",
                       target.Name, GLB.MaxDistanceToWorkshop);
         return(false);
     }
     return(true);
 }
 protected override bool check_host(ConstructionKitInfo task) =>
 base.check_host(task) && task.Module != null && task.Module.vessel == vessel;
 protected override bool init_task(ConstructionKitInfo task) => true;