mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-03 02:53:48 +00:00
refactor(Core/Player): extract methods based on existing categories (#6838)
This commit is contained in:
@@ -54,6 +54,22 @@ typedef void(*bgZoneRef)(Battleground*, WorldPacket&);
|
||||
#define PLAYER_MAX_DAILY_QUESTS 25
|
||||
#define PLAYER_EXPLORED_ZONES_SIZE 128
|
||||
|
||||
// corpse reclaim times
|
||||
#define DEATH_EXPIRE_STEP (5*MINUTE)
|
||||
#define MAX_DEATH_COUNT 3
|
||||
|
||||
#define PLAYER_SKILL_INDEX(x) (PLAYER_SKILL_INFO_1_1 + ((x)*3))
|
||||
#define PLAYER_SKILL_VALUE_INDEX(x) (PLAYER_SKILL_INDEX(x)+1)
|
||||
#define PLAYER_SKILL_BONUS_INDEX(x) (PLAYER_SKILL_INDEX(x)+2)
|
||||
|
||||
#define SKILL_VALUE(x) PAIR32_LOPART(x)
|
||||
#define SKILL_MAX(x) PAIR32_HIPART(x)
|
||||
#define MAKE_SKILL_VALUE(v, m) MAKE_PAIR32(v, m)
|
||||
|
||||
#define SKILL_TEMP_BONUS(x) int16(PAIR32_LOPART(x))
|
||||
#define SKILL_PERM_BONUS(x) int16(PAIR32_HIPART(x))
|
||||
#define MAKE_SKILL_BONUS(t, p) MAKE_PAIR32(t, p)
|
||||
|
||||
// Note: SPELLMOD_* values is aura types in fact
|
||||
enum SpellModType
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user