(set_fert): Limit fertility to 100 instead of 120, like the other
resources
This commit is contained in:
parent
270ac2255a
commit
3fcee8ddd1
1 changed files with 3 additions and 3 deletions
|
@ -1003,9 +1003,9 @@ set_fert(int e)
|
||||||
if (e < LANDMIN)
|
if (e < LANDMIN)
|
||||||
fert = LANDMIN - e + 40;
|
fert = LANDMIN - e + 40;
|
||||||
else if (e < FERT_MAX)
|
else if (e < FERT_MAX)
|
||||||
fert = (140 * (FERT_MAX - e)) / (FERT_MAX - LANDMIN);
|
fert = (120 * (FERT_MAX - e)) / (FERT_MAX - LANDMIN);
|
||||||
if (fert > 120)
|
if (fert > 100)
|
||||||
fert = 120;
|
fert = 100;
|
||||||
return fert;
|
return fert;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue