Exemplo n.º 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);
     }
 }
Exemplo n.º 2
0
 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);
     }
 }