예제 #1
0
 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);
     }
 }
예제 #2
0
        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);
        }
예제 #3
0
        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));
        }