private static void Postfix(ThinkNode_JobGiver __instance, ThinkResult __result, Pawn pawn, JobIssueParams jobParams) { if (pawn is Wendigo && __result.Job != null) { Log.Message(pawn + " gets " + __result.Job + " from " + __instance); } }
public static string GetName(ThinkNode_JobGiver __instance, Pawn pawn) { var tName = __instance.GetType().Name; if (ByPawn && pawn != null) { return($"{pawn.KindLabel} - {tName}"); } return(tName); }
private Job TryGetJob(Pawn pawn, ThinkNode_JobGiver jobGiver) { jobGiver.ResolveReferences(); var result = jobGiver.TryIssueJobPackage(pawn, default(JobIssueParams)); if (result.Job != null) { return(result.Job); } return(null); }