mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
maximum heath of merc on mapscreen will now show in red color if the merc suffered a health loss from critical hit
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9187 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2721,8 +2721,11 @@ void DrawCharHealth( INT16 sCharNum )
|
|||||||
DrawString( sString, usX, CHAR_HP_Y, CHAR_FONT );
|
DrawString( sString, usX, CHAR_HP_Y, CHAR_FONT );
|
||||||
usX += StringPixLength( sString, CHAR_FONT );
|
usX += StringPixLength( sString, CHAR_FONT );
|
||||||
|
|
||||||
|
if (gGameOptions.fNewTraitSystem && pSoldier->ubCriticalStatDamage[DAMAGED_STAT_HEALTH] > 0)
|
||||||
if( ( GetJA2Clock() < CHANGE_STAT_RECENTLY_DURATION + pSoldier->timeChanges.uiChangeHealthTime)&& ( pSoldier->timeChanges.uiChangeHealthTime != 0 ) )
|
{
|
||||||
|
SetFontForeground(FONT_RED);
|
||||||
|
}
|
||||||
|
else if( ( GetJA2Clock() < CHANGE_STAT_RECENTLY_DURATION + pSoldier->timeChanges.uiChangeHealthTime)&& ( pSoldier->timeChanges.uiChangeHealthTime != 0 ) )
|
||||||
{
|
{
|
||||||
if( pSoldier->usValueGoneUp & HEALTH_INCREASE )
|
if( pSoldier->usValueGoneUp & HEALTH_INCREASE )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user