- #define RESOURCE_QUANTITY <double>: Allgemeiner Multiplikator für die

Resourcenmenge (Eisen, Laen, Steine, Holz, Mallorn).
This commit is contained in:
Christian Schlittchen 2002-04-21 07:52:11 +00:00
parent cadc111a8d
commit c65dbd402d
6 changed files with 13 additions and 2 deletions

View File

@ -776,7 +776,7 @@ trees(region * r, const int current_season, const int last_weeks_season)
if(production(r) <= 0) return; if(production(r) <= 0) return;
/* Grundchance 1.0% */ /* Grundchance 1.0% */
seedchance = FORESTGROWTH; seedchance = FORESTGROWTH * RESOURCE_QUANTITY;
/* Jeder Elf in der Region erhöht die Chance um 0.0008%. */ /* Jeder Elf in der Region erhöht die Chance um 0.0008%. */
seedchance += (min(elves, (production(r)*MAXPEASANTS_PER_AREA)/8)) * 8; seedchance += (min(elves, (production(r)*MAXPEASANTS_PER_AREA)/8)) * 8;
grownup_trees = rtrees(r, 2); grownup_trees = rtrees(r, 2);

View File

@ -130,8 +130,10 @@ static void use_default(rawmaterial *res, const region * r, int amount)
++res->level; ++res->level;
res->amount = (int)(modifier * res->base * (1+(res->level-res->startlevel)*res->divisor/100.0)); res->amount = (int)(modifier * res->base * (1+(res->level-res->startlevel)*res->divisor/100.0));
/* random adjustment, +/- 91% */ /* random adjustment, +/- 91% */
#ifdef RESOURCE_QUANTITY
res->amount = res->amount * RESOURCE_QUANTITY;
#endif
} }
assert(res->amount>0);
} }
struct rawmaterial * struct rawmaterial *

View File

@ -32,3 +32,5 @@
#define PEASANTS_DO_NOT_STARVE 0 #define PEASANTS_DO_NOT_STARVE 0
#define GUARD_DISABLES_RECRUIT 0 #define GUARD_DISABLES_RECRUIT 0
#define RESOURCE_QUANTITY 1.0

View File

@ -30,3 +30,7 @@
#define SKILLPOINTS 0 #define SKILLPOINTS 0
#define NEW_MIGRATION 1 #define NEW_MIGRATION 1
#define PEASANTS_DO_NOT_STARVE 0 #define PEASANTS_DO_NOT_STARVE 0
#define GUARD_DISABLES_RECRUIT 0
#define RESOURCE_QUANTITY 1.0

View File

@ -32,3 +32,5 @@
#define PEASANT_ADJUSTMENT 0 #define PEASANT_ADJUSTMENT 0
#define GUARD_DISABLES_RECRUIT 0 #define GUARD_DISABLES_RECRUIT 0
#define RESOURCE_QUANTITY 1.0

View File

@ -32,3 +32,4 @@
#define PEASANT_ADJUSTMENT 0 #define PEASANT_ADJUSTMENT 0
#define GUARD_DISABLES_RECRUIT 0 #define GUARD_DISABLES_RECRUIT 0
#define RESOURCE_QUANTITY 1.0