forked from github/server
- Seeds gefixt. Grundchance 1% + 0.0008% je Elf.
- Seedkorrektur
This commit is contained in:
parent
ecde79c1d3
commit
dce99b961d
|
@ -244,7 +244,7 @@ extern void read_laen(struct region * r, int laen);
|
||||||
#define HORSEMOVE 3
|
#define HORSEMOVE 3
|
||||||
|
|
||||||
/* Vermehrungschance pro Baum */
|
/* Vermehrungschance pro Baum */
|
||||||
#define FORESTGROWTH 2
|
#define FORESTGROWTH 10000 /* In Millionstel */
|
||||||
#define TREESIZE (MAXPEASANTS_PER_AREA-2)
|
#define TREESIZE (MAXPEASANTS_PER_AREA-2)
|
||||||
|
|
||||||
/* Eisen in Bergregionen bei Erschaffung */
|
/* Eisen in Bergregionen bei Erschaffung */
|
||||||
|
|
|
@ -2640,6 +2640,20 @@ fix_questcoors(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int
|
||||||
|
fix_seeds(void)
|
||||||
|
{
|
||||||
|
region *r;
|
||||||
|
|
||||||
|
for(r=regions; r; r=r->next) {
|
||||||
|
if(rtrees(r,0) > 25 && rtrees(r,0) > rtrees(r,2)/2) {
|
||||||
|
rsettrees(r,0,rtrees(r,2)/2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
korrektur(void)
|
korrektur(void)
|
||||||
{
|
{
|
||||||
|
@ -2685,6 +2699,7 @@ korrektur(void)
|
||||||
do_once("szip", set_zip());
|
do_once("szip", set_zip());
|
||||||
do_once("heal", heal_all());
|
do_once("heal", heal_all());
|
||||||
do_once("fquc", fix_questcoors());
|
do_once("fquc", fix_questcoors());
|
||||||
|
do_once("fsee", fix_seeds());
|
||||||
|
|
||||||
/* seems something fishy is going on, do this just
|
/* seems something fishy is going on, do this just
|
||||||
* to be on the safe side:
|
* to be on the safe side:
|
||||||
|
|
Loading…
Reference in New Issue