reducing the impact of dragons

This commit is contained in:
Enno Rehling 2009-09-28 21:42:55 +00:00
parent 319abf6c5d
commit 554979a100
1 changed files with 3 additions and 0 deletions

View File

@ -597,6 +597,8 @@ monster_attacks(unit * u)
static void
eaten_by_monster(unit * u)
{
/* adjustment for smaller worlds */
double multi = RESOURCE_QUANTITY * newterrain(T_PLAIN)->size / 10000.0;
int n = 0;
int horse = 0;
@ -617,6 +619,7 @@ eaten_by_monster(unit * u)
n = rng_int()%(u->number/20+1);
}
n = (int)(n * multi);
if (n > 0) {
n = lovar(n);
n = MIN(rpeasants(u->region), n);