public override string GetTitlePrefix(PrefixType type) { if (type != PrefixType.Pure) { if (!ImmigrateScenario.TestEmptyHomes(this)) { return("NoEmptyHomes"); } } return("NoImmigrantHome"); }
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()); }