Skip to content

Commit

Permalink
Add XP Helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
kaytotes committed Oct 20, 2024
1 parent 5e0a099 commit af793e3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions tswow-core/Private/TSPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4165,4 +4165,9 @@ bool TSPlayer::IsTaximaskNodeKnown(uint32 nodeidx)
void TSPlayer::SendQuestGiverStatusMultiple()
{
player->SendQuestGiverStatusMultiple();
}

TSNumber<uint32> TSPlayer::GetXPForDifficulty(uint8 difficulty)
{
return player->GetXPForDifficulty(difficulty);
}
2 changes: 2 additions & 0 deletions tswow-core/Public/TSPlayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,8 @@ class TC_GAME_API TSPlayer : public TSUnit, public TSDBJsonProvider {

void SendQuestGiverStatusMultiple();

TSNumber<uint32> GetXPForDifficulty(uint8 difficulty);

private:
TSLua::Dictionary<TSNumber<uint32>, TSPlayerSpell> LGetSpellMap();
TSItem LGetItemByGUID0(TSGUID guid);
Expand Down
2 changes: 2 additions & 0 deletions tswow-core/Public/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2278,6 +2278,8 @@ declare interface TSPlayer extends TSUnit, TSDBJsonProvider {
SetFace(face: uint8);

SendQuestGiverStatusMultiple() : void

GetXPForDifficulty(difficulty: uint8) : TSNumber<uint32>;
}

declare interface TSCorpse extends TSWorldObject {
Expand Down

0 comments on commit af793e3

Please sign in to comment.