mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
- added missing merc backgrounds calculation for BG_PERC_CTH_MAX to the reworked NCTH calculation
- changed skill handling for disarming bomb traps to rely more on explosives than mechanical in new skill system(old ratio 5:2, new 6:1). Mercs were blowing themselves up to often even when disarming own bombs (big bonus). In the old skill system this ratio is 7:0. - changed skill handling luck factor to make high skilled mercs rely less on luck and more on skill git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6361 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -5261,7 +5261,8 @@ if (gGameExternalOptions.fUseNewCTHCalculation)
|
||||
}
|
||||
|
||||
// Impose global limits.
|
||||
fFinalChance = __min(fFinalChance, gGameExternalOptions.ubMaximumCTH);
|
||||
// Flugente: backgrounds
|
||||
fFinalChance = __min(fFinalChance, min(100, gGameExternalOptions.ubMaximumCTH + (UINT8)(pSoldier->GetBackgroundValue(BG_PERC_CTH_MAX))) );
|
||||
fFinalChance = __max(fFinalChance, gGameExternalOptions.ubMinimumCTH);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user