Beispiel #1
0
        protected override bool CanFireNowSub(IIncidentTarget target)
        {
            int         num;
            SitePartDef sitePartDef;
            Faction     faction;

            return(base.CanFireNowSub(target) && Find.AnyPlayerHomeMap != null && CommsConsoleUtility.PlayerHasPoweredCommsConsole() && this.TryFindTile(out num) && SiteMakerHelper.TryFindSiteParams_SingleSitePart(SiteCoreDefOf.PrisonerWillingToJoin, IncidentWorker_QuestPrisonerWillingToJoin.PrisonerWillingToJoinQuestThreatTag, out sitePartDef, out faction, null, true, null));
        }
Beispiel #2
0
 protected override bool CanFireNowSub(IncidentParms parms)
 {
     if (!CommsConsoleUtility.PlayerHasPoweredCommsConsole((Map)parms.target))
     {
         return(false);
     }
     if (RandomKidnappedColonist() == null)
     {
         return(false);
     }
     return(base.CanFireNowSub(parms));
 }
        public static bool PlayerHasPoweredCommsConsole()
        {
            List <Map> maps = Find.Maps;

            for (int i = 0; i < maps.Count; i++)
            {
                if (CommsConsoleUtility.PlayerHasPoweredCommsConsole(maps[i]))
                {
                    return(true);
                }
            }
            return(false);
        }
        protected override bool CanFireNowSub(IIncidentTarget target)
        {
            Map map = (Map)target;

            if (!CommsConsoleUtility.PlayerHasPoweredCommsConsole(map))
            {
                return(false);
            }
            if (this.RandomKidnappedColonist() == null)
            {
                return(false);
            }
            return(base.CanFireNowSub(target));
        }
Beispiel #5
0
        protected override bool CanFireNowSub(IncidentParms parms)
        {
            Map map = (Map)parms.target;

            return(CommsConsoleUtility.PlayerHasPoweredCommsConsole(map) && this.RandomKidnappedColonist() != null && base.CanFireNowSub(parms));
        }