mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user