Пример #1
0
        protected override bool CanFireNowSub(IncidentParms parms)
        {
            Map     map = (Map)parms.target;
            IntVec3 intVec;

            return(base.CanFireNowSub(parms) && HivesUtility.TotalSpawnedHivesCount(map) < 30 && InfestationCellFinder.TryFindCell(out intVec, map));
        }
Пример #2
0
        protected override bool CanFireNowSub(IIncidentTarget target)
        {
            Map     map    = (Map)target;
            IntVec3 intVec = default(IntVec3);

            return(base.CanFireNowSub(target) && HivesUtility.TotalSpawnedHivesCount(map) < 30 && InfestationCellFinder.TryFindCell(out intVec, map));
        }