//public override bool HasJobOnThing(Pawn pawn, Thing t, bool forced = false)	{
        public static bool Prefix(ref bool __result, Pawn pawn, Thing t, bool forced = false)
        {
            if (!Settings.Get().qualityMining || forced)
            {
                return(true);
            }

            CompDeepDrill comp = t.TryGetComp <CompDeepDrill>();

            if (!comp?.ValuableResourcesPresent() ?? false)
            {
                return(true);
            }

            if (!WorkGiver_Miner_JobOnThing_Patch.IsGoodMiner(pawn, typeof(WorkGiver_DeepDrill)))
            {
                __result = false;
                return(false);
            }
            return(true);
        }
 public static bool Prefix(CompDeepDrill __instance, ref bool __result)
 {
     if (!Analyzer.Settings.OptimizeDrills)
     {
         return(true);
     }
     __result = (__instance.powerComp == null || __instance.powerComp.PowerOn) && (__instance.parent.Map.Biome.hasBedrock || __instance.ValuableResourcesPresent());
     return(false);
 }