(set_fert): Limit fertility to 100 instead of 120, like the other

resources
This commit is contained in:
Ron Koenderink 2007-11-24 02:08:19 +00:00
parent 270ac2255a
commit 3fcee8ddd1

View file

@ -1003,9 +1003,9 @@ set_fert(int e)
if (e < LANDMIN)
fert = LANDMIN - e + 40;
else if (e < FERT_MAX)
fert = (140 * (FERT_MAX - e)) / (FERT_MAX - LANDMIN);
if (fert > 120)
fert = 120;
fert = (120 * (FERT_MAX - e)) / (FERT_MAX - LANDMIN);
if (fert > 100)
fert = 100;
return fert;
}