comparison Player.cpp @ 949:c0d0656aa662

Awards
author Nomad
date Wed, 01 May 2013 20:04:24 +0200
parents a78f08dbeb88
children ec7568e13b24
comparison
equal deleted inserted replaced
948:5a2dbb00c399 949:c0d0656aa662
3279 unsigned int Player::GetExperienceDisplayColor() 3279 unsigned int Player::GetExperienceDisplayColor()
3280 { 3280 {
3281 unsigned int result; // eax@2 3281 unsigned int result; // eax@2
3282 3282
3283 if ( CanTrainToNextLevel() ) 3283 if ( CanTrainToNextLevel() )
3284 result = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0xFFu, 0); 3284 result = TargetColor(0, 0xFFu, 0);
3285 else 3285 else
3286 result = 0; 3286 result = 0;
3287 return result; 3287 return result;
3288 } 3288 }
3289 3289
6917 int attribute_value; // edx@1 6917 int attribute_value; // edx@1
6918 unsigned __int8 pBaseAttrValue; // of@1 6918 unsigned __int8 pBaseAttrValue; // of@1
6919 __int16 uGreen; // [sp+8h] [bp-8h]@1 6919 __int16 uGreen; // [sp+8h] [bp-8h]@1
6920 __int16 uRed; // [sp+Ch] [bp-4h]@1 6920 __int16 uRed; // [sp+Ch] [bp-4h]@1
6921 6921
6922 uRed = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0x23u, 0); 6922 uRed = TargetColor(0xFFu, 0x23u, 0);
6923 uGreen = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0xFFu, 0); 6923 uGreen = TargetColor(0, 0xFFu, 0);
6924 uWhite = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0xFFu); 6924 uWhite = TargetColor(0xFFu, 0xFFu, 0xFFu);
6925 pBaseAttrValue = StatTable[GetRace()][uStat].uBaseValue; 6925 pBaseAttrValue = StatTable[GetRace()][uStat].uBaseValue;
6926 6926
6927 switch (uStat) 6927 switch (uStat)
6928 { 6928 {
6929 case 0: attribute_value = uMight; break; 6929 case 0: attribute_value = uMight; break;