forked from github/server
reducing the impact of dragons
This commit is contained in:
parent
319abf6c5d
commit
554979a100
|
@ -597,6 +597,8 @@ monster_attacks(unit * u)
|
||||||
static void
|
static void
|
||||||
eaten_by_monster(unit * u)
|
eaten_by_monster(unit * u)
|
||||||
{
|
{
|
||||||
|
/* adjustment for smaller worlds */
|
||||||
|
double multi = RESOURCE_QUANTITY * newterrain(T_PLAIN)->size / 10000.0;
|
||||||
int n = 0;
|
int n = 0;
|
||||||
int horse = 0;
|
int horse = 0;
|
||||||
|
|
||||||
|
@ -617,6 +619,7 @@ eaten_by_monster(unit * u)
|
||||||
n = rng_int()%(u->number/20+1);
|
n = rng_int()%(u->number/20+1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
n = (int)(n * multi);
|
||||||
if (n > 0) {
|
if (n > 0) {
|
||||||
n = lovar(n);
|
n = lovar(n);
|
||||||
n = MIN(rpeasants(u->region), n);
|
n = MIN(rpeasants(u->region), n);
|
||||||
|
|
Loading…
Reference in New Issue