forked from github/server
Bauerngrenze angepasst
Maximum Bauerngrenze bei der noch zusätzlich Bauern hinzukommen können auf 90 erhöht und auch gleich Konfigurierbar gemacht. Das sollte immer noch zu wenig sein um ernsthaft missbrauch damit zu betreiben.
This commit is contained in:
parent
7f39763ee1
commit
cc09e95887
|
@ -680,7 +680,7 @@ void immigration(void)
|
||||||
{
|
{
|
||||||
region *r;
|
region *r;
|
||||||
log_info(" - Einwanderung...");
|
log_info(" - Einwanderung...");
|
||||||
int repopulate=get_param_int(global.parameters, "rules.economy.repopulate", 1);
|
int repopulate=get_param_int(global.parameters, "rules.economy.repopulate_maximum", 90);
|
||||||
for (r = regions; r; r = r->next) {
|
for (r = regions; r; r = r->next) {
|
||||||
if (r->land && r->land->newpeasants) {
|
if (r->land && r->land->newpeasants) {
|
||||||
int rp = rpeasants(r) + r->land->newpeasants;
|
int rp = rpeasants(r) + r->land->newpeasants;
|
||||||
|
@ -689,7 +689,7 @@ void immigration(void)
|
||||||
/* Genereate some (0-2 to 0-6 depending on the income) peasants out of nothing */
|
/* Genereate some (0-2 to 0-6 depending on the income) peasants out of nothing */
|
||||||
/*if less then 50 are in the region and there is space and no monster or deamon units in the region */
|
/*if less then 50 are in the region and there is space and no monster or deamon units in the region */
|
||||||
int peasants = rpeasants(r);
|
int peasants = rpeasants(r);
|
||||||
if (repopulate && r->land && (peasants < 50) && maxworkingpeasants(r) > (peasants+30)*2)
|
if (repopulate && r->land && (peasants < repopulate) && maxworkingpeasants(r) > (peasants+30)*2)
|
||||||
{
|
{
|
||||||
int badunit = 0;
|
int badunit = 0;
|
||||||
unit *u;
|
unit *u;
|
||||||
|
|
Loading…
Reference in New Issue