public static void Notify_PawnLostForTutor(Pawn pawn, Map map) { if (!map.IsPlayerHome && map.mapPawns.FreeColonistsSpawnedCount != 0 && !GenHostility.AnyHostileActiveThreatToPlayer(map)) { LessonAutoActivator.TeachOpportunity(ConceptDefOf.ReformCaravan, OpportunityType.Important); } }
protected override bool Satisfied(Pawn pawn) { if (!pawn.Spawned) { return(false); } Map map = pawn.Map; if (!map.IsPlayerHome && map.ParentFaction != null && map.ParentFaction.HostileTo(Faction.OfPlayer)) { return(GenHostility.AnyHostileActiveThreatToPlayer(map, countDormantPawnsAsHostile: true)); } return(false); }
protected override bool Satisfied(Pawn pawn) { if (!pawn.Spawned) { return(false); } Map map = pawn.Map; return(!map.IsPlayerHome && map.ParentFaction != null && map.ParentFaction.HostileTo(Faction.OfPlayer) && GenHostility.AnyHostileActiveThreatToPlayer(map)); }