mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +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:
@@ -1899,9 +1899,9 @@ void ExtractAndUpdateMercAttributes()
|
||||
gpSelected->pDetailedPlacement->bMechanical = (INT8)min( GetNumericStrictValueFromField( 11 ), 100 );
|
||||
gpSelected->pDetailedPlacement->bMorale = (INT8)min( GetNumericStrictValueFromField( 11 ), 100 );
|
||||
|
||||
//make sure that experience level ranges between 1 and 9
|
||||
//make sure that experience level ranges between 1 and 10
|
||||
if( gpSelected->pDetailedPlacement->bExpLevel != -1 )
|
||||
gpSelected->pDetailedPlacement->bExpLevel = max( min( gpSelected->pDetailedPlacement->bExpLevel , 9 ), 1 );
|
||||
gpSelected->pDetailedPlacement->bExpLevel = max( min( gpSelected->pDetailedPlacement->bExpLevel , 10 ), 1 );
|
||||
|
||||
//no such thing as a life max of 0
|
||||
if( !gpSelected->pDetailedPlacement->bLifeMax )
|
||||
|
||||
Reference in New Issue
Block a user