Example #1
0
 public bool HasJobsFor(PopType type, Province province)
 {
     if (this == Workers || this == Farmers || this == Tribesmen)
     {
         return(province.getUnemployment(x => x == Workers).isSmallerThan(MigrationUnemploymentLimit));
     }
     else
     {
         return(true);
     }
 }
 public bool HasJobsFor(PopType type, Province province)
 {
     //if (this == Workers || this == Farmers || this == Tribesmen)
     if (this == Workers)
     {
         return(province.getUnemployment(x => x == Workers).isSmallerThan(MigrationUnemploymentLimit));
     }
     else if (this == Farmers || this == Tribesmen)
     {
         return(province.GetOverpopulation().isSmallerThan(Procent.HundredProcent));
     }
     else
     {
         return(true);
     }
 }