mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +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 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)
|
uint32 talentPointsForLevel = base_talent + m_questRewardTalentCount;
|
||||||
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;
|
|
||||||
|
|
||||||
return uint32(talentPointsForLevel * sWorld.getConfig(CONFIG_FLOAT_RATE_TALENT));
|
return uint32(talentPointsForLevel * sWorld.getConfig(CONFIG_FLOAT_RATE_TALENT));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11194"
|
#define REVISION_NR "11195"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue