Updated Merc Random Stats Feature (Jenilee)

- tweaked the stats generation so should see less super high level marks/agi, especially on low level mercs
- randomization will now only affect AIM/MERC mercs.
- randomized gear kits are now an ini setting: MERCS_RANDOM_GEAR_KITS = TRUE/FALSE.
I made the gear randomization optional because it seems to cause trouble for people that don't use AIMNAS. SO hopefully this still lets them enjoy the random merc feature!

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6686 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2013-12-06 17:54:37 +00:00
parent 6a538f1ef8
commit d3e92041ce
4 changed files with 167 additions and 170 deletions
+7 -5
View File
@@ -108,7 +108,7 @@ void RandomStats();
void RandomStartSalary();
//Jenilee
extern void RandomizeMerc(UINT8 profile_id, MERCPROFILESTRUCT* merc);
extern void RandomizeMerc(UINT8 profile_id, MERCPROFILESTRUCT* merc, BOOL random_gear_kits);
extern void InitRandomMercs();
extern void ExitRandomMercs();
@@ -597,12 +597,14 @@ void RandomStats()
for ( cnt = 0; cnt < NUM_PROFILES; cnt++ )
{
pProfile = &(gMercProfiles[cnt]);
RandomizeMerc(cnt, pProfile);
if (IsProfileIdAnAimOrMERCMerc(cnt)) //affect only AIM and MERC mercs
{
pProfile = &(gMercProfiles[cnt]);
RandomizeMerc(cnt, pProfile, gGameExternalOptions.fMercRandomGearKits);
}
}
ExitRandomMercs();
}
ExitRandomMercs(); }
}
void RandomStartSalary()