Extended "Merc Random Stats Feature" (by Jenilee)

- Added 4th option for MERCS_RANDOM_STATS (MERCS_RANDOM_STATS = 4)
  o full randomization of mercs, including traits, gear kits and all statistics
see: http://www.ja-galaxy-forum.com/board/ubbthreads.php/topics/328769.html#Post328769

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6676 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2013-12-03 10:14:15 +00:00
parent 8c4201e335
commit 5c062ff752
25 changed files with 1125 additions and 18 deletions
+19
View File
@@ -106,6 +106,12 @@ extern UINT8 gubItemDroppableFlag[NUM_INV_SLOTS];
RANDOM_STATS_VALUES gRandomStatsValue[NUM_PROFILES];
void RandomStats();
void RandomStartSalary();
//Jenilee
extern void RandomizeMerc(UINT8 profile_id, MERCPROFILESTRUCT* merc);
extern void InitRandomMercs();
extern void ExitRandomMercs();
INT32 RandomAbsoluteRange( INT32 iValue, INT32 iMin, INT32 iMax, INT32 iRange, BOOLEAN fBellCurve );
INT8 RandomPercentRange( UINT8 iPRange, BOOLEAN fBellCurve );
@@ -584,6 +590,19 @@ void RandomStats()
}
}
}
// Jenilee: 4th method (see also RandomMerc.cpp)
else if (gGameExternalOptions.ubMercRandomStats == 4)
{
InitRandomMercs();
for ( cnt = 0; cnt < NUM_PROFILES; cnt++ )
{
pProfile = &(gMercProfiles[cnt]);
RandomizeMerc(cnt, pProfile);
}
ExitRandomMercs();
}
}
void RandomStartSalary()