comparison Player.cpp @ 2046:da35dc35d635

GetRangedAttack
author Ritor1
date Tue, 26 Nov 2013 18:45:03 +0600
parents 4000f8184c29
children 62a27b2cfcc2
comparison
equal deleted inserted replaced
2038:d4cc4d71d9cf 2046:da35dc35d635
1635 1635
1636 //----- (0048D0B9) -------------------------------------------------------- 1636 //----- (0048D0B9) --------------------------------------------------------
1637 int Player::GetRangedAttack() 1637 int Player::GetRangedAttack()
1638 { 1638 {
1639 int v3; // edi@3 1639 int v3; // edi@3
1640 int v4; // eax@4 1640 //int v4; // eax@4
1641 int v5; // edi@4 1641 //int v5; // edi@4
1642 int v6; // edi@4 1642 int v6; // edi@4
1643 int v7; // edi@4 1643 int v7; // edi@4
1644 1644
1645 ItemGen* mainHandItem = GetMainHandItem(); 1645 ItemGen* mainHandItem = GetMainHandItem();
1646 if ( mainHandItem != nullptr && ( mainHandItem->uItemID < ITEM_BLASTER || mainHandItem->uItemID > ITEM_LASER_RIFLE )) 1646 if ( mainHandItem != nullptr && ( mainHandItem->uItemID < ITEM_BLASTER || mainHandItem->uItemID > ITEM_LASER_RIFLE ))
1647 { 1647 {
1648 v4 = GetActualAccuracy(); 1648 //v4 = GetActualAccuracy();
1649 v5 = GetParameterBonus(v4); 1649 //v5 = GetParameterBonus(GetActualAccuracy());
1650 v6 = GetItemsBonus(CHARACTER_ATTRIBUTE_RANGED_ATTACK) + v5; 1650 v6 = GetItemsBonus(CHARACTER_ATTRIBUTE_RANGED_ATTACK) + GetParameterBonus(GetActualAccuracy());
1651 v7 = GetSkillBonus(CHARACTER_ATTRIBUTE_RANGED_ATTACK) + v6; 1651 v7 = GetSkillBonus(CHARACTER_ATTRIBUTE_RANGED_ATTACK) + v6;
1652 v3 = this->_ranged_atk_bonus + GetMagicalBonus(CHARACTER_ATTRIBUTE_RANGED_ATTACK) + v7; 1652 v3 = this->_ranged_atk_bonus + GetMagicalBonus(CHARACTER_ATTRIBUTE_RANGED_ATTACK) + v7;
1653 } 1653 }
1654 else 1654 else
1655 { 1655 {