forked from github/server
- Vulkane und Nachbarregionen unattraktiver für Bauern gemacht.
This commit is contained in:
parent
d5236f1ca1
commit
024c24e39b
|
@ -446,15 +446,15 @@ calculate_emigration(region *r)
|
||||||
/* This calculates the influence of volcanos on peasant
|
/* This calculates the influence of volcanos on peasant
|
||||||
* migration. */
|
* migration. */
|
||||||
|
|
||||||
if(rterrain(c) != T_VOLCANO) {
|
if(rterrain(c) == T_VOLCANO || rterrain(c) == T_VOLCANO_SMOKING) {
|
||||||
vfactor = 0.25;
|
vfactor = 0.10;
|
||||||
} else {
|
} else {
|
||||||
vfactor = 1.00;
|
vfactor = 1.00;
|
||||||
}
|
}
|
||||||
|
|
||||||
for(j=0; j != MAXDIRECTIONS; j++) {
|
for(j=0; j != MAXDIRECTIONS; j++) {
|
||||||
region *rv = rconnect(c, j);
|
region *rv = rconnect(c, j);
|
||||||
if(rv && rterrain(rv) == T_VOLCANO) {
|
if(rv && (rterrain(rv) == T_VOLCANO || rterrain(rv) == T_VOLCANO_SMOKING)) {
|
||||||
vfactor *= 0.5;
|
vfactor *= 0.5;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue