mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Due to erroneous code, the encyclopedia feature has been deactivated. for more info, see http://thepit.ja-galaxy-forum.com/index.php?t=msg&th=23090&goto=345928&#msg_345928
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8273 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -311,23 +311,32 @@ void SoldierTooltip( SOLDIERTYPE* pSoldier )
|
||||
if ( gGameExternalOptions.fEnableSoldierTooltipHelmet )
|
||||
{
|
||||
swprintf( pStrInfo, gzTooltipStrings[STR_TT_CAT_HELMET], pStrInfo, pSoldier->inv[HELMETPOS].usItem ? ItemNames[ pSoldier->inv[HELMETPOS].usItem ] : gzTooltipStrings[STR_TT_NO_HELMET] );
|
||||
|
||||
#ifdef ENCYCLOPEDIA_WORKS
|
||||
//Moa: encyclopedia item visibility
|
||||
if ( pSoldier->inv[HELMETPOS].usItem )
|
||||
EncyclopediaSetItemAsVisible( pSoldier->inv[HELMETPOS].usItem, ENC_ITEM_DISCOVERED_NOT_REACHABLE );
|
||||
#endif
|
||||
}
|
||||
if ( gGameExternalOptions.fEnableSoldierTooltipVest )
|
||||
{
|
||||
swprintf( pStrInfo, gzTooltipStrings[STR_TT_CAT_VEST], pStrInfo, pSoldier->inv[VESTPOS].usItem ? ItemNames[ pSoldier->inv[VESTPOS].usItem ] : gzTooltipStrings[STR_TT_NO_VEST] );
|
||||
|
||||
#ifdef ENCYCLOPEDIA_WORKS
|
||||
//Moa: encyclopedia item visibility
|
||||
if ( pSoldier->inv[VESTPOS].usItem )
|
||||
EncyclopediaSetItemAsVisible( pSoldier->inv[VESTPOS].usItem, ENC_ITEM_DISCOVERED_NOT_REACHABLE );
|
||||
#endif
|
||||
}
|
||||
if ( gGameExternalOptions.fEnableSoldierTooltipLeggings )
|
||||
{
|
||||
swprintf( pStrInfo, gzTooltipStrings[STR_TT_CAT_LEGGINGS], pStrInfo, pSoldier->inv[LEGPOS].usItem ? ItemNames[ pSoldier->inv[LEGPOS].usItem ] : gzTooltipStrings[STR_TT_NO_LEGGING] );
|
||||
|
||||
#ifdef ENCYCLOPEDIA_WORKS
|
||||
//Moa: encyclopedia item visibility
|
||||
if ( pSoldier->inv[LEGPOS].usItem )
|
||||
EncyclopediaSetItemAsVisible( pSoldier->inv[LEGPOS].usItem, ENC_ITEM_DISCOVERED_NOT_REACHABLE );
|
||||
#endif
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -380,9 +389,12 @@ void SoldierTooltip( SOLDIERTYPE* pSoldier )
|
||||
{
|
||||
swprintf( pStrInfo, gzTooltipStrings[STR_TT_CAT_NVG], pStrInfo,
|
||||
iNVG ? ItemNames[ pSoldier->inv[ iNVG ].usItem ] : gzTooltipStrings[STR_TT_NO_NVG] );
|
||||
|
||||
#ifdef ENCYCLOPEDIA_WORKS
|
||||
//Moa: encyclopedia item visibility
|
||||
if ( iNVG )
|
||||
EncyclopediaSetItemAsVisible( pSoldier->inv[ iNVG ].usItem, ENC_ITEM_DISCOVERED_NOT_REACHABLE );
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -397,16 +409,22 @@ void SoldierTooltip( SOLDIERTYPE* pSoldier )
|
||||
if ( gGameExternalOptions.fEnableSoldierTooltipHeadItem1 )
|
||||
{
|
||||
swprintf( pStrInfo, gzTooltipStrings[STR_TT_CAT_HEAD_POS_1], pStrInfo, ItemNames[ pSoldier->inv[HEAD1POS].usItem ] );
|
||||
|
||||
#ifdef ENCYCLOPEDIA_WORKS
|
||||
//Moa: encyclopedia item visibility
|
||||
if ( pSoldier->inv[HEAD1POS].usItem )
|
||||
EncyclopediaSetItemAsVisible( pSoldier->inv[ HEAD1POS ].usItem, ENC_ITEM_DISCOVERED_NOT_REACHABLE );
|
||||
#endif
|
||||
}
|
||||
if ( gGameExternalOptions.fEnableSoldierTooltipHeadItem2 )
|
||||
{
|
||||
swprintf( pStrInfo, gzTooltipStrings[STR_TT_CAT_HEAD_POS_2], pStrInfo, ItemNames[ pSoldier->inv[HEAD2POS].usItem ] );
|
||||
|
||||
#ifdef ENCYCLOPEDIA_WORKS
|
||||
//Moa: encyclopedia item visibility
|
||||
if ( pSoldier->inv[HEAD2POS].usItem )
|
||||
EncyclopediaSetItemAsVisible( pSoldier->inv[ HEAD2POS ].usItem, ENC_ITEM_DISCOVERED_NOT_REACHABLE );
|
||||
#endif
|
||||
}
|
||||
}
|
||||
// head slots info code block end
|
||||
@@ -529,9 +547,12 @@ void DisplayWeaponInfo( SOLDIERTYPE* pSoldier, CHAR16* pStrInfo, UINT8 ubSlot, U
|
||||
// display exact weapon model
|
||||
swprintf( pStrInfo, gzTooltipStrings[STR_TT_CAT_WEAPON], pStrInfo,
|
||||
WeaponInHand( pSoldier ) ? ItemNames[ pSoldier->inv[ubSlot].usItem ] : gzTooltipStrings[STR_TT_NO_WEAPON] );
|
||||
|
||||
#ifdef ENCYCLOPEDIA_WORKS
|
||||
//Moa: encyclopedia item visibility
|
||||
if ( pSoldier->inv[ubSlot].usItem )
|
||||
EncyclopediaSetItemAsVisible( pSoldier->inv[ ubSlot ].usItem, ENC_ITEM_DISCOVERED_NOT_REACHABLE );
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user