public override bool IsPossible()
        {
            worker     = new RimWorld.IncidentWorker_AmbrosiaSprout();
            worker.def = IncidentDef.Named("AmbrosiaSprout");

            Map map = Helper.AnyPlayerMap;

            if (map != null)
            {
                parms = StorytellerUtility.DefaultParmsNow(IncidentCategoryDefOf.Misc, map);

                return(worker.CanFireNow(parms));
            }

            return(false);
        }
예제 #2
0
        public override bool IsPossible()
        {
            worker     = new RimWorld.IncidentWorker_AmbrosiaSprout();
            worker.def = IncidentDef.Named("AmbrosiaSprout");

            parms = new IncidentParms();

            List <Map> allMaps = Current.Game.Maps;

            foreach (Map map in allMaps)
            {
                parms.target = map;
                if (worker.CanFireNow(parms))
                {
                    return(true);
                }
            }
            return(false);
        }