mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[11195] Allow have bonus talent points from quests for any classes.
For non-custom cases DB expected have class req. settings.
This commit is contained in:
parent
09c5b49cc4
commit
43bdd4910a
2 changed files with 4 additions and 10 deletions
|
|
@ -21374,16 +21374,10 @@ void Player::AutoStoreLoot(Loot& loot, bool broadcast, uint8 bag, uint8 slot)
|
|||
|
||||
uint32 Player::CalculateTalentsPoints() const
|
||||
{
|
||||
uint32 base_talent = getLevel() < 10 ? 0 : getLevel()-9;
|
||||
uint32 base_level = getClass() == CLASS_DEATH_KNIGHT ? 55 : 9;
|
||||
uint32 base_talent = getLevel() <= base_level ? 0 : getLevel() - base_level;
|
||||
|
||||
if(getClass() != CLASS_DEATH_KNIGHT)
|
||||
return uint32(base_talent * sWorld.getConfig(CONFIG_FLOAT_RATE_TALENT));
|
||||
|
||||
uint32 talentPointsForLevel = getLevel() < 56 ? 0 : getLevel() - 55;
|
||||
talentPointsForLevel += m_questRewardTalentCount;
|
||||
|
||||
if(talentPointsForLevel > base_talent)
|
||||
talentPointsForLevel = base_talent;
|
||||
uint32 talentPointsForLevel = base_talent + m_questRewardTalentCount;
|
||||
|
||||
return uint32(talentPointsForLevel * sWorld.getConfig(CONFIG_FLOAT_RATE_TALENT));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue