Mit Bauernmobs konnte PEASANT_ADJUST umgangen werden, weil Monster nicht

angerechnet werden. gefixt.
This commit is contained in:
Katja Zedel 2002-02-10 19:38:37 +00:00
parent f3140badfb
commit 2383de1f8d
1 changed files with 6 additions and 0 deletions

View File

@ -2555,6 +2555,8 @@ peasant_adjustment(void)
sum += rpeasants(r);
for(u = r->units; u; u=u->next) {
if(lifestyle(u) > 0) sum += u->number;
/* Sonderregel Bauernmob */
if (u->race == new_race[RC_PEASANT]) sum += u->number;
}
}
if (c==0) continue;
@ -2568,6 +2570,8 @@ peasant_adjustment(void)
for(u = r->units; u; u=u->next) {
if(lifestyle(u) > 0) playerp += u->number;
/* Sonderregel Bauernmob */
if (u->race == new_race[RC_PEASANT]) playerp += u->number;
}
soll = (int)((avg + playerp + rpeasants(r)) * WEIGHT);
@ -2596,6 +2600,8 @@ peasant_adjustment(void)
for(u = r->units; u; u=u->next) {
if(lifestyle(u) > 0) playerp += u->number;
/* Sonderregel Bauernmob */
if (u->race == new_race[RC_PEASANT]) playerp += u->number;
}
free = max(0,production(r) * MAXPEASANTS_PER_AREA