protected override bool TestRunInt(Slate slate)
        {
            if (!Find.Storyteller.difficultyValues.allowViolentQuests)
            {
                return(false);
            }
            if (!QuestGen_Pawns.GetPawnTest(CivilianPawnParams, out var _))
            {
                return(false);
            }
            if (Faction.Empire.PlayerRelationKind == FactionRelationKind.Hostile)
            {
                return(false);
            }
            if (!TryFindEnemyFaction(out var _))
            {
                return(false);
            }
            Map map = QuestGen_Get.GetMap();

            if (!TryFindShuttleCrashPosition(map, Faction.Empire, ThingDefOf.ShuttleCrashed.size, out var spot))
            {
                return(false);
            }
            if (!TryFindRaidWalkInPosition(map, spot, out var _))
            {
                return(false);
            }
            return(true);
        }
Ejemplo n.º 2
0
 protected override bool TestRunInt(Slate slate)
 {
     if (!TryGetCeremonyTarget(slate, out var _, out var bestowingFaction) || bestowingFaction.HostileTo(Faction.OfPlayer))
     {
         return(false);
     }
     QuestGen_Pawns.GetPawnParms parms = default(QuestGen_Pawns.GetPawnParms);
     parms.mustBeOfKind    = PawnKindDefOf.Empire_Royal_Bestower;
     parms.canGeneratePawn = true;
     parms.mustBeOfFaction = bestowingFaction;
     if (!QuestGen_Pawns.GetPawnTest(parms, out var _))
     {
         return(false);
     }
     return(true);
 }