Пример #1
0
        public override string GetTitlePrefix(PrefixType type)
        {
            if (type != PrefixType.Pure)
            {
                if (!ImmigrateScenario.TestEmptyHomes(this))
                {
                    return("NoEmptyHomes");
                }
            }

            return("NoImmigrantHome");
        }
Пример #2
0
        protected override bool Allow()
        {
            if (GetValue <ScheduledImmigrationScenario.GaugeOption, int>() <= 0)
            {
                IncStat("Gauge Fail");
                return(false);
            }
            else if (ImmigrateScenario.TestEmptyHomes(this))
            {
                if (Lots.FindLot(this, null, 0, ManagerLot.FindLotFlags.CheapestHome | ManagerLot.FindLotFlags.Inspect, null) != null)
                {
                    IncStat("Lot Found");
                    return(false);
                }
            }

            return(base.Allow());
        }
Пример #3
0
 protected ImmigrateScenario(ImmigrateScenario scenario)
     : base(scenario)
 {
     mRequirement   = scenario.mRequirement;
     mCheckRequired = scenario.mCheckRequired;
 }