mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
-externalized assignment (repair, doctor, training) constants to ja2_options.ini, and added a few for good measure ;)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@432 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -252,7 +252,7 @@ void ProcessStatChange(MERCPROFILESTRUCT *pProfile, UINT8 ubStat, UINT16 usNumCh
|
||||
usChance = 100 - (bCurrentRating + (*psStatGainPtr / usSubpointsPerPoint));
|
||||
|
||||
// prevent training beyond the training cap
|
||||
if ((ubReason == FROM_TRAINING) && (bCurrentRating + (*psStatGainPtr / usSubpointsPerPoint) >= TRAINING_RATING_CAP))
|
||||
if ((ubReason == FROM_TRAINING) && (bCurrentRating + (*psStatGainPtr / usSubpointsPerPoint) >= gGameExternalOptions.ubTrainingSkillMax))
|
||||
{
|
||||
usChance = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user