static void Postfix(PawnsArrivalModeWorker_EdgeWalkIn __instance, IncidentParms parms, ref bool __result)
        {
            //return;
            if (PreemptiveStrike.Mod.PES_Settings.DebugModeOn)
            {
                Log.Message("-=PS=- Patch_EdgeWalkIn_TryResolveRaidSpawnCenter Postfix");                 //Lt. Bob - Logging
                IncidentInterceptorUtility.DebugParms(parms, __instance.ToString());
            }
            if (parms != null && parms.questTag != null)             //Lt. Bob - "Temporary" bypass fix? for Quest handling
            {
                Log.Message("-=PS=- It's a quest! Bailout! MAYDAY!", false);
                return;
            }

            //This is a temporary fix for refugee chased
            if (IncidentInterceptorUtility.IncidentInQueue(parms, IncidentDefOf.RaidEnemy))
            {
                return;
            }

            if (IncidentInterceptorUtility.IsIntercepting_IncidentExcecution)
            {
                if (IncidentInterceptorUtility.Intercept_Raid(parms))
                {
                    __result = false;
                }
            }
        }
Example #2
0
        static void Postfix(PawnsArrivalModeWorker_EdgeWalkIn __instance, IncidentParms parms, ref bool __result)
        {
            //This is a temporary fix for refugee chased
            if (IncidentInterceptorUtility.IncidentInQueue(parms, IncidentDefOf.RaidEnemy))
            {
                return;
            }

            if (IncidentInterceptorUtility.IsIntercepting_IncidentExcecution)
            {
                if (IncidentInterceptorUtility.Intercept_Raid(parms))
                {
                    __result = false;
                }
            }
        }