mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 17:43:52 +00:00
Make killXp public for level-based mob coloring in UI
This commit is contained in:
parent
81166346ef
commit
2859c95372
1 changed files with 1 additions and 1 deletions
|
|
@ -279,6 +279,7 @@ public:
|
||||||
uint32_t getPlayerXp() const { return playerXp_; }
|
uint32_t getPlayerXp() const { return playerXp_; }
|
||||||
uint32_t getPlayerNextLevelXp() const { return playerNextLevelXp_; }
|
uint32_t getPlayerNextLevelXp() const { return playerNextLevelXp_; }
|
||||||
uint32_t getPlayerLevel() const { return singlePlayerMode_ ? localPlayerLevel_ : serverPlayerLevel_; }
|
uint32_t getPlayerLevel() const { return singlePlayerMode_ ? localPlayerLevel_ : serverPlayerLevel_; }
|
||||||
|
static uint32_t killXp(uint32_t playerLevel, uint32_t victimLevel);
|
||||||
|
|
||||||
// Hearthstone callback (single-player teleport)
|
// Hearthstone callback (single-player teleport)
|
||||||
using HearthstoneCallback = std::function<void()>;
|
using HearthstoneCallback = std::function<void()>;
|
||||||
|
|
@ -680,7 +681,6 @@ private:
|
||||||
void awardLocalXp(uint64_t victimGuid, uint32_t victimLevel);
|
void awardLocalXp(uint64_t victimGuid, uint32_t victimLevel);
|
||||||
void levelUp();
|
void levelUp();
|
||||||
static uint32_t xpForLevel(uint32_t level);
|
static uint32_t xpForLevel(uint32_t level);
|
||||||
static uint32_t killXp(uint32_t playerLevel, uint32_t victimLevel);
|
|
||||||
|
|
||||||
// ---- Single-player combat ----
|
// ---- Single-player combat ----
|
||||||
bool singlePlayerMode_ = false;
|
bool singlePlayerMode_ = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue