From cc09e958878f0fc8a75a2132205ad4097b4dd109 Mon Sep 17 00:00:00 2001 From: CTD Date: Mon, 15 Dec 2014 13:07:39 +0100 Subject: [PATCH] Bauerngrenze angepasst MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/laws.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/laws.c b/src/laws.c index 69f2e90fe..4689d21d1 100755 --- a/src/laws.c +++ b/src/laws.c @@ -680,7 +680,7 @@ void immigration(void) { region *r; 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) { if (r->land && 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 */ /*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); - 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; unit *u;