static bool Prefix(IncidentWorker_TravelerGroup __instance, ref bool __result, IncidentParms parms)
 {
     if (PES_Settings.DebugModeOn)
     {
         Log.Message("-=PS=- Patch_IncidentWorker_VisitorGroup_TryExecuteWorker 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(true);
     }
     if (parms != null && parms.questTag != null)                //Lt.Bob - May be redundant
     {
         Log.Error("-=PS=- Not redundant", false);
         Log.Message("-=PS=- Patch_IncidentWorker_TravelerGroup_TryExecuteWorker - questTag!=Null == " + parms.questTag, false);
         Log.Message("-=PS=- Returning true", false);
         return(true);
     }
     if (IncidentInterceptorUtility.isIntercepting_TravelerGroup)
     {
         return(!IncidentInterceptorUtility.CreateIncidentCaraven_HumanNeutral <InterceptedIncident_HumanCrowd_TravelerGroup>(__instance.def, parms));
     }
     return(true);
 }
Beispiel #2
0
 static bool Prefix(IncidentWorker_VisitorGroup __instance, ref bool __result, IncidentParms parms)
 {
     if (IncidentInterceptorUtility.isIntercepting_VisitorGroup)
     {
         IncidentInterceptorUtility.CreateIncidentCaraven_HumanNeutral <InterceptedIncident_HumanCrowd_VisitorGroup>(parms);
     }
     return(true);
 }
Beispiel #3
0
 static bool Prefix(IncidentWorker_TraderCaravanArrival __instance, ref bool __result, IncidentParms parms)
 {
     if (IncidentInterceptorUtility.isIntercepting_TraderCaravan_Worker)
     {
         IncidentInterceptorUtility.CreateIncidentCaraven_HumanNeutral <InterceptedIncident_HumanCrowd_TraderCaravan>(parms);
     }
     return(true);
 }
 static bool Prefix(IncidentWorker_VisitorGroup __instance, ref bool __result, IncidentParms parms)
 {
     if (PreemptiveStrike.Mod.PES_Settings.DebugModeOn)
     {
         Log.Message("-=PS=- Patch_IncidentWorker_VisitorGroup_TryExecuteWorker Prefix"); //Lt. Bob - Logging
     }
     if (parms != null && parms.questTag != null)                                         //Lt. Bob - "Temporary" bypass fix? for Quest handling
     {
         Log.Message("-=PS=- Patch_IncidentWorker_VisitorGroup_TryExecuteWorker - questTag!=Null == " + parms.questTag);
         Log.Message("-=PS=- Returning true");
         return(true);
     }
     if (IncidentInterceptorUtility.isIntercepting_VisitorGroup)
     {
         return(!IncidentInterceptorUtility.CreateIncidentCaraven_HumanNeutral <InterceptedIncident_HumanCrowd_VisitorGroup>(__instance.def, parms));
     }
     return(true);
 }