- changed tool tips for launchers and armor

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@132 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
lalien
2006-05-29 18:41:06 +00:00
parent 8394713e02
commit 819b94ecf9
10 changed files with 61 additions and 7 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ INT16 zVersionLabel[256] = { L"Beta v. 0.98" };
#else
//RELEASE BUILD VERSION
INT16 zVersionLabel[256] = { L"Release v1.13.128" };
INT16 zVersionLabel[256] = { L"Release v1.13.132" };
#endif
+2 -2
View File
@@ -43,7 +43,7 @@
<Tool
Name="VCLinkerTool"
AdditionalDependencies="libexpatMT.lib mss32.lib winmm.lib smackw32.lib fmodvc.lib"
OutputFile="C:\games\Jagged Alliance 2 v1.13\ja2_debug_v1.13.128_2006_05_29.exe"
OutputFile="C:\games\Jagged Alliance 2 v1.13\ja2_debug_v1.13.132_2006_05_29.exe"
LinkIncremental="2"
SuppressStartupBanner="TRUE"
AdditionalLibraryDirectories=".\..\..\Standard Gaming Platform\"
@@ -546,7 +546,7 @@
<Tool
Name="VCLinkerTool"
AdditionalDependencies="libexpatMT.lib winmm.lib smackw32.lib mss32.lib fmodvc.lib"
OutputFile="C:\Games\Jagged Alliance 2 v1.13\ja2_release_v1.13.128_2006_05_29.exe"
OutputFile="C:\Games\Jagged Alliance 2 v1.13\ja2_release_v1.13.132_2006_05_29.exe"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
AdditionalLibraryDirectories=".\..\..\Standard Gaming Platform\"
+44 -4
View File
@@ -7320,7 +7320,7 @@ void GetHelpTextForItem( INT16 * pzStr, OBJECTTYPE *pObject, SOLDIERTYPE *pSoldi
//Calculate AP's
INT16 apStr[20];
if ( Item[ usItem ].usItemClass == IC_GUN && !Item[usItem].rocketlauncher && !Item[usItem].rocketrifle )
if ( Item[ usItem ].usItemClass == IC_GUN )//&& !Item[usItem].rocketlauncher && !Item[usItem].rocketrifle )
{
INT16 apStr2[20];
UINT8 ubAttackAPs = BaseAPsToShootOrStab( DEFAULT_APS, DEFAULT_AIMSKILL, pObject );
@@ -7353,7 +7353,7 @@ void GetHelpTextForItem( INT16 * pzStr, OBJECTTYPE *pObject, SOLDIERTYPE *pSoldi
}
//Info for weapons
if ( Item[ usItem ].usItemClass == IC_GUN && !Item[usItem].rocketlauncher && !Item[usItem].rocketrifle )
if ( Item[ usItem ].usItemClass == IC_GUN )//&& !Item[usItem].rocketlauncher && !Item[usItem].rocketrifle )
{
swprintf( (wchar_t *)pStr, L"%s (%s) [%d%%]\n%s %d\n%s %d\n%s %d (%d)\n%s %s\n%s %1.1f %s",
ItemNames[ usItem ],
@@ -7374,6 +7374,7 @@ void GetHelpTextForItem( INT16 * pzStr, OBJECTTYPE *pObject, SOLDIERTYPE *pSoldi
);
}
// The next is for ammunition which gets the measurement 'rnds'
else if (Item[ usItem ].usItemClass == IC_AMMO)
{
@@ -7417,12 +7418,51 @@ void GetHelpTextForItem( INT16 * pzStr, OBJECTTYPE *pObject, SOLDIERTYPE *pSoldi
);
}
//Armor
else if (Item[ usItem ].usItemClass == IC_ARMOUR)
{
INT32 iProtection = EffectiveArmour( pObject );
switch( Armour[ Item[ usItem ].ubClassIndex ].ubArmourClass )
{
case( ARMOURCLASS_HELMET ):
iProtection = 15 * iProtection / Armour[ Item[ SPECTRA_HELMET_18 ].ubClassIndex ].ubProtection;
break;
case( ARMOURCLASS_VEST ):
iProtection = 65 * iProtection / ( Armour[ Item[ SPECTRA_VEST_18 ].ubClassIndex ].ubProtection + Armour[ Item[ CERAMIC_PLATES ].ubClassIndex ].ubProtection );
break;
case( ARMOURCLASS_LEGGINGS ):
iProtection = 25 * iProtection / Armour[ Item[ SPECTRA_LEGGINGS_18 ].ubClassIndex ].ubProtection;
break;
case( ARMOURCLASS_PLATE ):
iProtection = 65 * iProtection / ( Armour[ Item[ CERAMIC_PLATES ].ubClassIndex ].ubProtection );
break;
}
swprintf( (wchar_t *)pStr, L"%s [%d %%]\n%s %d%% (%d/%d)\n%s %d%%\n%s %1.1f %s",
ItemNames[ usItem ], //Item long name
sValue, //Item condition
pInvPanelTitleStrings[ 4 ], //Protection string
iProtection, //Protection rating in % based on best armor
Armour[ Item[ usItem ].ubClassIndex ].ubProtection, //Protection (raw data)
Armour[ Item[ usItem ].ubClassIndex ].ubProtection * sValue / 100,
pInvPanelTitleStrings[ 3 ], //Camo string
Item[ usItem ].camobonus, //Camo bonus
gWeaponStatsDesc[ 12 ], //Weight string
fWeight, //Weight
GetWeightUnitString() //Weight units
);
}
// The final, and typical case, is that of an item with a percent status
else
{
swprintf( (wchar_t *)pStr, L"%s [%d%%]\n%s %1.1f %s",
ItemNames[ usItem ],
sValue,
ItemNames[ usItem ], //Item long name
sValue, //Item condition
gWeaponStatsDesc[ 12 ], //Weight String
fWeight, //Weight
GetWeightUnitString() //Weight units
+2
View File
@@ -523,6 +523,8 @@ STR16 pInvPanelTitleStrings[] =
L"Wapen", // the armor rating of the merc
L"Gew.", // the weight the merc is carrying
L"Camo", // the merc's camouflage rating
L"Camouflage:",
L"Protection:",
};
STR16 pShortAttributeStrings[] =
+2
View File
@@ -537,6 +537,8 @@ STR16 pInvPanelTitleStrings[] =
L"Armor", // the armor rating of the merc
L"Weight", // the weight the merc is carrying
L"Camo", // the merc's camouflage rating
L"Camouflage:",
L"Protection:",
};
STR16 pShortAttributeStrings[] =
+2
View File
@@ -529,6 +529,8 @@ STR16 pInvPanelTitleStrings[] =
L"Armure", // the armor rating of the merc
L"Poids", // the weight the merc is carrying
L"Cam.", // the merc's camouflage rating
L"Camouflage:",
L"Protection:",
};
STR16 pShortAttributeStrings[] =
+2
View File
@@ -514,6 +514,8 @@ STR16 pInvPanelTitleStrings[] =
L"Rüstung", // the armor rating of the merc
L"Gewicht", // the weight the merc is carrying
L"Tarnung", // the merc's camouflage rating
L"Tarnung:",
L"Rüstung:",
};
STR16 pShortAttributeStrings[] =
+2
View File
@@ -522,6 +522,8 @@ STR16 pInvPanelTitleStrings[] =
L"Giubb. A-P", // the armor rating of the merc
L"Peso", // the weight the merc is carrying
L"Trav.", // the merc's camouflage rating
L"Camouflage:",
L"Protection:",
};
STR16 pShortAttributeStrings[] =
+2
View File
@@ -523,6 +523,8 @@ STR16 pInvPanelTitleStrings[] =
L"Os³ona", // the armor rating of the merc
L"Ekwip.", // the weight the merc is carrying
L"Kamuf.", // the merc's camouflage rating
L"Camouflage:",
L"Protection:",
};
STR16 pShortAttributeStrings[] =
+2
View File
@@ -529,6 +529,8 @@ STR16 pInvPanelTitleStrings[] =
L"Áðîíÿ", // the armor rating of the merc
L"Âåñ", // the weight the merc is carrying
L"Êàìóôëÿæ", // the merc's camouflage rating
L"אלףפכז:",
L"נמם:",
};
STR16 pShortAttributeStrings[] =