mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
- mercs increase their stats more actively while at home or at non-player job. as a result - stats gain and even experience level sometimes.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@459 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1101,8 +1101,9 @@ void HandleUnhiredMercImprovement( MERCPROFILESTRUCT *pProfile )
|
|||||||
// if he's working on another job
|
// if he's working on another job
|
||||||
if (pProfile->bMercStatus == MERC_WORKING_ELSEWHERE)
|
if (pProfile->bMercStatus == MERC_WORKING_ELSEWHERE)
|
||||||
{
|
{
|
||||||
|
// Lesh: changed chance from 20 to 70
|
||||||
// if he did't do anything interesting today
|
// if he did't do anything interesting today
|
||||||
if (Random(100) < 20)
|
if (Random(100) < 70)
|
||||||
{
|
{
|
||||||
// no chance to change today
|
// no chance to change today
|
||||||
return;
|
return;
|
||||||
@@ -1114,7 +1115,8 @@ void HandleUnhiredMercImprovement( MERCPROFILESTRUCT *pProfile )
|
|||||||
// 80 wisdom gives 8 rolls per stat per day, 10 stats, avg success rate 40% = 32pts per day,
|
// 80 wisdom gives 8 rolls per stat per day, 10 stats, avg success rate 40% = 32pts per day,
|
||||||
// so about 10 working days to hit lvl 2. This seems high, but mercs don't actually "work" that often, and it's twice
|
// so about 10 working days to hit lvl 2. This seems high, but mercs don't actually "work" that often, and it's twice
|
||||||
// as long to hit level 3. If we go lower, attribs & skills will barely move.
|
// as long to hit level 3. If we go lower, attribs & skills will barely move.
|
||||||
usNumChances = ( pProfile->bWisdom / 10 );
|
// Lesh: changed wisdom divided by 7 insead of 10
|
||||||
|
usNumChances = ( pProfile->bWisdom / 7 );
|
||||||
for (ubStat = FIRST_CHANGEABLE_STAT; ubStat <= LAST_CHANGEABLE_STAT; ubStat++)
|
for (ubStat = FIRST_CHANGEABLE_STAT; ubStat <= LAST_CHANGEABLE_STAT; ubStat++)
|
||||||
{
|
{
|
||||||
ProfileStatChange( pProfile, ubStat, usNumChances, FALSE );
|
ProfileStatChange( pProfile, ubStat, usNumChances, FALSE );
|
||||||
|
|||||||
Reference in New Issue
Block a user