From 5acef85aeeaee93d78d101f466995f7aa4f53dc9 Mon Sep 17 00:00:00 2001 From: Lesh Date: Tue, 22 Aug 2006 17:25:28 +0000 Subject: [PATCH] - 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 --- Tactical/Campaign.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Tactical/Campaign.cpp b/Tactical/Campaign.cpp index 19750301..9ea13a22 100644 --- a/Tactical/Campaign.cpp +++ b/Tactical/Campaign.cpp @@ -1101,8 +1101,9 @@ void HandleUnhiredMercImprovement( MERCPROFILESTRUCT *pProfile ) // if he's working on another job if (pProfile->bMercStatus == MERC_WORKING_ELSEWHERE) { + // Lesh: changed chance from 20 to 70 // if he did't do anything interesting today - if (Random(100) < 20) + if (Random(100) < 70) { // no chance to change today 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, // 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. - 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++) { ProfileStatChange( pProfile, ubStat, usNumChances, FALSE );