[8085] Apply talent rate to all talents points. Author: duckman
--HG-- branch : trunk
This commit is contained in:
+4
-6
@@ -20374,19 +20374,17 @@ void Player::AutoStoreLoot(uint8 bag, uint8 slot, uint32 loot_id, LootStore cons
|
|||||||
|
|
||||||
uint32 Player::CalculateTalentsPoints() const
|
uint32 Player::CalculateTalentsPoints() const
|
||||||
{
|
{
|
||||||
uint32 base_talent = getLevel() < 10 ? 0 : uint32((getLevel()-9)*sWorld.getRate(RATE_TALENT));
|
uint32 base_talent = getLevel() < 10 ? 0 : getLevel()-9;
|
||||||
|
|
||||||
if(getClass() != CLASS_DEATH_KNIGHT)
|
if(getClass() != CLASS_DEATH_KNIGHT)
|
||||||
return base_talent;
|
return uint32(base_talent * sWorld.getRate(RATE_TALENT));
|
||||||
|
|
||||||
uint32 talentPointsForLevel =
|
uint32 talentPointsForLevel = getLevel() < 56 ? 0 : getLevel() - 55 + m_questRewardTalentCount;
|
||||||
(getLevel() < 56 ? 0 : uint32((getLevel()-55)*sWorld.getRate(RATE_TALENT)))
|
|
||||||
+ m_questRewardTalentCount;
|
|
||||||
|
|
||||||
if(talentPointsForLevel > base_talent)
|
if(talentPointsForLevel > base_talent)
|
||||||
talentPointsForLevel = base_talent;
|
talentPointsForLevel = base_talent;
|
||||||
|
|
||||||
return talentPointsForLevel;
|
return uint32(talentPointsForLevel * sWorld.getRate(RATE_TALENT));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Player::IsAllowUseFlyMountsHere() const
|
bool Player::IsAllowUseFlyMountsHere() const
|
||||||
|
|||||||
Reference in New Issue
Block a user