mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
added insurance cost modifier to backgrounds
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6360 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include "Strategic Status.h"
|
||||
#include "Assignments.h"
|
||||
#include "Map Screen Interface.h"
|
||||
#include "Interface.h" // added by Flugente
|
||||
#endif
|
||||
#include <vector>
|
||||
|
||||
@@ -1188,6 +1189,9 @@ INT32 CalculateInsuranceContractCost( INT32 iLength, UINT8 ubMercID )
|
||||
// calculate the overall insurability risk factor for this merc by combining all the subfactors
|
||||
flRiskFactor = flSkillFactor * flFitnessFactor * flExpFactor * flSurvivalFactor;
|
||||
|
||||
// Flugente: backgrounds
|
||||
flRiskFactor = flRiskFactor * (100 + pSoldier->GetBackgroundValue(BG_PERC_INSURANCE)) / 100;
|
||||
|
||||
// restrict the overall factor to within reasonable limits
|
||||
if (flRiskFactor < MIN_INSURANCE_RATIO)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user