mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
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:
File diff suppressed because it is too large
Load Diff
@@ -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()
|
||||
|
||||
@@ -892,6 +892,10 @@
|
||||
RelativePath=".\Rain.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\RandomMerc.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Real Time Input.cpp"
|
||||
>
|
||||
|
||||
@@ -894,6 +894,10 @@
|
||||
RelativePath="Rain.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\RandomMerc.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="Real Time Input.cpp"
|
||||
>
|
||||
|
||||
@@ -162,6 +162,7 @@
|
||||
<ClCompile Include="Points.cpp" />
|
||||
<ClCompile Include="QARRAY.cpp" />
|
||||
<ClCompile Include="Rain.cpp" />
|
||||
<ClCompile Include="RandomMerc.cpp" />
|
||||
<ClCompile Include="Real Time Input.cpp" />
|
||||
<ClCompile Include="Rotting Corpses.cpp" />
|
||||
<ClCompile Include="ShopKeeper Interface.cpp" />
|
||||
|
||||
@@ -656,5 +656,8 @@
|
||||
<ClCompile Include="XML_Taunts.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="RandomMerc.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -162,6 +162,7 @@
|
||||
<ClCompile Include="Points.cpp" />
|
||||
<ClCompile Include="QARRAY.cpp" />
|
||||
<ClCompile Include="Rain.cpp" />
|
||||
<ClCompile Include="RandomMerc.cpp" />
|
||||
<ClCompile Include="Real Time Input.cpp" />
|
||||
<ClCompile Include="Rotting Corpses.cpp" />
|
||||
<ClCompile Include="ShopKeeper Interface.cpp" />
|
||||
@@ -252,7 +253,7 @@
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<PlatformToolset>v100</PlatformToolset>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='MapEditorD|Win32'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
|
||||
@@ -656,5 +656,8 @@
|
||||
<ClCompile Include="XML_Taunts.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="RandomMerc.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user