comparison Player.cpp @ 184:428cbb33872c

Слияние
author Ritor1
date Fri, 15 Feb 2013 18:34:53 +0600
parents f102bbff6fd8
children 49728858c35e 038a4d09406f
comparison
equal deleted inserted replaced
183:27573ee0d434 184:428cbb33872c
1981 int v5; // edi@7 1981 int v5; // edi@7
1982 signed int v6; // ebp@7 1982 signed int v6; // ebp@7
1983 char *v7; // esi@7 1983 char *v7; // esi@7
1984 signed int uSkillMultiplier; // [sp-4h] [bp-14h]@2 1984 signed int uSkillMultiplier; // [sp-4h] [bp-14h]@2
1985 1985
1986 LOBYTE(v2) = pPlayers[uActiveCharacter]->GetActualSkillLevel(PLAYER_SKILL_ITEM_ID); 1986 v2 = pPlayers[uActiveCharacter]->GetActualSkillLevel(PLAYER_SKILL_ITEM_ID);
1987 v3 = v2; 1987 v3 = v2;
1988 if ( HIBYTE(v2) & 1 ) 1988 if ( v2 & 1 )
1989 { 1989 {
1990 uSkillMultiplier = 5; 1990 uSkillMultiplier = 5;
1991 } 1991 }
1992 else 1992 else
1993 { 1993 {
1994 if ( (v2 & 0x80u) == 0 ) 1994 if ( (v2 & 0x80u) == 0 )
1995 { 1995 {
1996 uSkillMult = ((v2 & 0x40) != 0) + 1; 1996 uSkillMult = ((v2 & 0x40) != 0) + 1;
1997 goto LABEL_7; 1997 v5 = uSkillMult * (v3 & 0x3F);
1998 v6 = 0;
1999 v7 = (char *)&pItemsTable->pItems[pItem->uItemID].pIconName;
2000 if ( CheckHiredNPCSpeciality(4) )
2001 {
2002 v6 = 1;
2003 return v6;
2004 }
2005 if ( (signed int)SkillToMastery(v3) >= 4 )
2006 v6 = 1;
2007 if ( v5 >= (unsigned __int8)v7[46] )
2008 v6 = 1;
2009 return v6;
1998 } 2010 }
1999 uSkillMultiplier = 3; 2011 uSkillMultiplier = 3;
2000 } 2012 }
2001 uSkillMult = uSkillMultiplier; 2013 uSkillMult = uSkillMultiplier;
2002 LABEL_7:
2003 v5 = uSkillMult * (v3 & 0x3F); 2014 v5 = uSkillMult * (v3 & 0x3F);
2004 v6 = 0; 2015 v6 = 0;
2005 v7 = (char *)&pItemsTable->pItems[pItem->uItemID].pIconName; 2016 v7 = (char *)&pItemsTable->pItems[pItem->uItemID].pIconName;
2006 if ( CheckHiredNPCSpeciality(4u) ) 2017 if ( CheckHiredNPCSpeciality(4) )
2007 goto LABEL_15; 2018 {
2019 v6 = 1;
2020 return v6;
2021 }
2008 if ( (signed int)SkillToMastery(v3) >= 4 ) 2022 if ( (signed int)SkillToMastery(v3) >= 4 )
2009 v6 = 1; 2023 v6 = 1;
2010 if ( v5 >= (unsigned __int8)v7[46] ) 2024 if ( v5 >= (unsigned __int8)v7[46] )
2011 LABEL_15:
2012 v6 = 1; 2025 v6 = 1;
2013 return v6; 2026 return v6;
2014 } 2027 }
2015 2028
2016 //----- (00491151) -------------------------------------------------------- 2029 //----- (00491151) --------------------------------------------------------