feat(Core): Another way to get talent points (#3773)

This commit is contained in:
zxdhe121
2020-12-21 09:26:00 +08:00
committed by GitHub
parent b6ec66eebd
commit ab8967c638
2 changed files with 22 additions and 1 deletions

View File

@@ -2169,6 +2169,16 @@ public:
void UpdateSkillsToMaxSkillsForLevel(); // for .levelup
void ModifySkillBonus(uint32 skillid, int32 val, bool talent);
/**
* A talent point boost.
* Usage:
* 1). Hot update situation (occurred when character is online, like PlayerScript:OnAchiComplete):
* Right after calling this function, character can reward talent points by calling function player->InitTalentForLevel().
*
* 2). Data initing situation (like PlayerScript:OnLoadFromDB)
*/
void RewardExtraBonusTalentPoints(uint32 bonusTalentPoints);
/*********************************************************/
/*** PVP SYSTEM ***/
/*********************************************************/
@@ -2918,6 +2928,7 @@ protected:
time_t m_resetTalentsTime;
uint32 m_usedTalentCount;
uint32 m_questRewardTalentCount;
uint32 m_extraBonusTalentCount;
// Social
PlayerSocial* m_social;