forked from github/server
- #define RESOURCE_QUANTITY <double>: Allgemeiner Multiplikator für die
Resourcenmenge (Eisen, Laen, Steine, Holz, Mallorn).
This commit is contained in:
parent
cadc111a8d
commit
c65dbd402d
|
@ -776,7 +776,7 @@ trees(region * r, const int current_season, const int last_weeks_season)
|
|||
if(production(r) <= 0) return;
|
||||
|
||||
/* Grundchance 1.0% */
|
||||
seedchance = FORESTGROWTH;
|
||||
seedchance = FORESTGROWTH * RESOURCE_QUANTITY;
|
||||
/* Jeder Elf in der Region erhöht die Chance um 0.0008%. */
|
||||
seedchance += (min(elves, (production(r)*MAXPEASANTS_PER_AREA)/8)) * 8;
|
||||
grownup_trees = rtrees(r, 2);
|
||||
|
|
|
@ -130,8 +130,10 @@ static void use_default(rawmaterial *res, const region * r, int amount)
|
|||
++res->level;
|
||||
res->amount = (int)(modifier * res->base * (1+(res->level-res->startlevel)*res->divisor/100.0));
|
||||
/* random adjustment, +/- 91% */
|
||||
#ifdef RESOURCE_QUANTITY
|
||||
res->amount = res->amount * RESOURCE_QUANTITY;
|
||||
#endif
|
||||
}
|
||||
assert(res->amount>0);
|
||||
}
|
||||
|
||||
struct rawmaterial *
|
||||
|
|
|
@ -32,3 +32,5 @@
|
|||
#define PEASANTS_DO_NOT_STARVE 0
|
||||
#define GUARD_DISABLES_RECRUIT 0
|
||||
|
||||
#define RESOURCE_QUANTITY 1.0
|
||||
|
||||
|
|
|
@ -30,3 +30,7 @@
|
|||
#define SKILLPOINTS 0
|
||||
#define NEW_MIGRATION 1
|
||||
#define PEASANTS_DO_NOT_STARVE 0
|
||||
|
||||
#define GUARD_DISABLES_RECRUIT 0
|
||||
#define RESOURCE_QUANTITY 1.0
|
||||
|
||||
|
|
|
@ -32,3 +32,5 @@
|
|||
#define PEASANT_ADJUSTMENT 0
|
||||
#define GUARD_DISABLES_RECRUIT 0
|
||||
|
||||
#define RESOURCE_QUANTITY 1.0
|
||||
|
||||
|
|
|
@ -32,3 +32,4 @@
|
|||
#define PEASANT_ADJUSTMENT 0
|
||||
#define GUARD_DISABLES_RECRUIT 0
|
||||
|
||||
#define RESOURCE_QUANTITY 1.0
|
||||
|
|
Loading…
Reference in New Issue