From a04970b9801e28e8c0cc3fcbf9cc229739648117 Mon Sep 17 00:00:00 2001 From: MaddMugsy Date: Fri, 4 Aug 2006 17:40:18 +0000 Subject: [PATCH] -fixed camo kit only adding 50% camo git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@402 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- GameVersion.cpp | 2 +- Tactical/Items.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/GameVersion.cpp b/GameVersion.cpp index 11009d5c..be3ad4a5 100644 --- a/GameVersion.cpp +++ b/GameVersion.cpp @@ -23,7 +23,7 @@ INT16 zVersionLabel[256] = { L"Beta v. 0.98" }; #else //RELEASE BUILD VERSION - INT16 zVersionLabel[256] = { L"Release v1.13.401" }; + INT16 zVersionLabel[256] = { L"Release v1.13.402" }; #endif diff --git a/Tactical/Items.cpp b/Tactical/Items.cpp index 5a4a77e0..49df3a2f 100644 --- a/Tactical/Items.cpp +++ b/Tactical/Items.cpp @@ -5750,10 +5750,10 @@ BOOLEAN ApplyCammo( SOLDIERTYPE * pSoldier, OBJECTTYPE * pObj, BOOLEAN *pfGoodAP bPointsToUse = __min( bPointsToUse, usTotalKitPoints ); //figure out proportions of each to be applied, one item can theoretically have more than one camouflage type this way - int urban = (int)(Item[pObj->usItem].urbanCamobonus * bPointsToUse / itemCamo ); - int jungle = (int)(Item[pObj->usItem].camobonus * bPointsToUse / itemCamo ); - int desert = (int)(Item[pObj->usItem].desertCamobonus * bPointsToUse / itemCamo ); - int snow = (int)(Item[pObj->usItem].snowCamobonus * bPointsToUse / itemCamo ); + int urban = (int)(Item[pObj->usItem].urbanCamobonus * bPointsToUse * 2 / 100 ); + int jungle = (int)(Item[pObj->usItem].camobonus * bPointsToUse * 2 / 100 ); + int desert = (int)(Item[pObj->usItem].desertCamobonus * bPointsToUse * 2 / 100 ); + int snow = (int)(Item[pObj->usItem].snowCamobonus * bPointsToUse * 2 / 100 ); pSoldier->bCamo = __min( 100, pSoldier->bCamo + jungle ); pSoldier->urbanCamo = __min( 100, pSoldier->urbanCamo + urban );