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; } } }
static void Postfix(PawnsArrivalModeWorker_EdgeWalkIn __instance, IncidentParms parms, ref bool __result) { if (IncidentInterceptorUtility.IsIntercepting_IncidentExcecution) { if (IncidentInterceptorUtility.Intercept_Raid(parms, true)) { __result = false; } } }
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; } } }
static void Postfix(PawnsArrivalModeWorker_EdgeWalkIn __instance, IncidentParms parms, ref bool __result) { if (PES_Settings.DebugModeOn) { Log.Message("-=PS=- Patch_EdgeWalkInGroups_TryResolveRaidSpawnCenter Prefix", false); IncidentInterceptorUtility.DebugParms(parms, __instance.ToString()); } if (parms.quest != null || parms.questScriptDef != null) { Log.Message("-=PS=- It's a quest! Bailout! MAYDAY!", false); return; } if (IncidentInterceptorUtility.IsIntercepting_IncidentExcecution) { if (IncidentInterceptorUtility.Intercept_Raid(parms, true)) { __result = false; } } }