From 419442d8872954b0a065ff9a4b43b6df7c126033 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 14 Oct 2004 07:10:03 +0000 Subject: [PATCH] Making special islands more attractive --- src/mapper/autoseed.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/mapper/autoseed.c b/src/mapper/autoseed.c index 26f222d1b..c4bbeaa53 100644 --- a/src/mapper/autoseed.c +++ b/src/mapper/autoseed.c @@ -6,7 +6,7 @@ | | Ingo Wilken +-------------------+ Stefan Reich - This program may not be used, modified or distributed + This program may not be used, modified or distributed without prior permission by the authors of Eressea. */ @@ -129,7 +129,7 @@ get_quality(struct seed_t * seed) } if (nterrains[T_DESERT]) { - /* +10 points for the first if we are insects, and -2 points for every + /* +10 points for the first if we are insects, and -2 points for every * other desert */ if (seed->player->race==new_race[RC_INSECT]) q += 12; q -= (nterrains[T_DESERT]*2); @@ -195,7 +195,7 @@ autoseed(struct region_list * rlist) seed_t * seeds = calloc(sizeof(seed_t), nseeds); int i, nfactions = 0; newfaction * nf = newfactions; - + while (nf) { if (nf->bonus==0) ++nfactions; nf = nf->next; @@ -257,7 +257,7 @@ autoseed(struct region_list * rlist) newfaction ** nfp = &newfactions; unit * u; while (*nfp!=nf) nfp=&(*nfp)->next; - u = addplayer(seeds[i].region, addfaction(nf->email, nf->password, nf->race, + u = addplayer(seeds[i].region, addfaction(nf->email, nf->password, nf->race, nf->lang, nf->subscription)); u->faction->alliance = nf->allies; ++numnewbies; @@ -398,6 +398,10 @@ mkisland(int nsize) special = 1; } terraform(rn, terrain); + /* the new region has an extra 15% chance to have laen */ + if (rand() % 100 < 15) rsetlaen(r, 5 + rand() % 5); + /* the new region has an extra 20% chance to have mallorn */ + if (rand() % 100 < 20) fset(r, RF_MALLORN); add_regionlist(rend, rn); } }