mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
Fix: the game had inconsistent handling of maximum XP level. At some points it was 9, at others it was 10. Now it is 10 throughout the code.
New parameters in DifficultySettings.xml: - LevelModifierLowLimit - LevelModifierHighLimit - AllowUnrestrictedXPLevels git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8052 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -463,7 +463,7 @@ void RandomStats()
|
||||
{
|
||||
pProfile = &(gMercProfiles[cnt]);
|
||||
// Buggler: +/- random range will be limited due to min/max allowed value
|
||||
pProfile->bExpLevel = RandomAbsoluteRange( pProfile->bExpLevel, 1, 9, Exp, Type );
|
||||
pProfile->bExpLevel = RandomAbsoluteRange( pProfile->bExpLevel, 1, 10, Exp, Type );
|
||||
pProfile->bLifeMax = RandomAbsoluteRange( pProfile->bLifeMax, 1, 100, Stats, Type );
|
||||
pProfile->bLife = pProfile->bLifeMax;
|
||||
pProfile->bAgility = RandomAbsoluteRange( pProfile->bAgility, 1, 100, Stats, Type );
|
||||
@@ -488,7 +488,7 @@ void RandomStats()
|
||||
pProfile = &(gMercProfiles[cnt]);
|
||||
|
||||
if ( gRandomStatsValue[cnt].RandomExpLevel == TRUE )
|
||||
pProfile->bExpLevel = RandomAbsoluteRange( pProfile->bExpLevel, 1, 9, Exp, Type );
|
||||
pProfile->bExpLevel = RandomAbsoluteRange( pProfile->bExpLevel, 1, 10, Exp, Type );
|
||||
|
||||
if ( gRandomStatsValue[cnt].RandomLife == TRUE )
|
||||
pProfile->bLifeMax = RandomAbsoluteRange( pProfile->bLifeMax, 1, 100, Stats, Type );
|
||||
@@ -534,7 +534,7 @@ void RandomStats()
|
||||
pProfile = &(gMercProfiles[cnt]);
|
||||
|
||||
if ( gRandomStatsValue[cnt].RandomExpLevel == TRUE )
|
||||
pProfile->bExpLevel = RandomAbsoluteRange( pProfile->bExpLevel, 1, 9, Exp, Type );
|
||||
pProfile->bExpLevel = RandomAbsoluteRange( pProfile->bExpLevel, 1, 10, Exp, Type );
|
||||
|
||||
bBaseAttribute = gRandomStatsValue[cnt].BaseAttribute + ( 4 * pProfile->bExpLevel );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user