mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Items: Define new socket color
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
#include "Player.h"
|
||||
#include "World.h"
|
||||
|
||||
int32 const SocketColorToGemTypeMask[30] =
|
||||
int32 const SocketColorToGemTypeMask[31] =
|
||||
{
|
||||
0,
|
||||
SOCKET_COLOR_META,
|
||||
@@ -51,7 +51,8 @@ int32 const SocketColorToGemTypeMask[30] =
|
||||
SOCKET_COLOR_FRAGRANCE,
|
||||
SOCKET_COLOR_SINGING_THUNDER,
|
||||
SOCKET_COLOR_SINGING_SEA,
|
||||
SOCKET_COLOR_SINGING_WIND
|
||||
SOCKET_COLOR_SINGING_WIND,
|
||||
SOCKET_COLOR_FIBER
|
||||
};
|
||||
|
||||
char const* ItemTemplate::GetName(LocaleConstant locale) const
|
||||
@@ -106,7 +107,7 @@ uint32 ItemTemplate::GetSkill() const
|
||||
|
||||
static constexpr uint32 ItemArmorSkills[MAX_ITEM_SUBCLASS_ARMOR] =
|
||||
{
|
||||
0, SKILL_CLOTH, SKILL_LEATHER, SKILL_MAIL, SKILL_PLATE_MAIL, 0, SKILL_SHIELD, 0, 0, 0, 0
|
||||
0, SKILL_CLOTH, SKILL_LEATHER, SKILL_MAIL, SKILL_PLATE_MAIL, 0, SKILL_SHIELD, 0, 0, 0, 0, 0
|
||||
};
|
||||
|
||||
static constexpr uint32 ItemProfessionSkills[MAX_ITEM_SUBCLASS_PROFESSION] =
|
||||
|
||||
@@ -379,9 +379,10 @@ enum SocketColor
|
||||
SOCKET_COLOR_SINGING_THUNDER = 0x08000000,
|
||||
SOCKET_COLOR_SINGING_SEA = 0x10000000,
|
||||
SOCKET_COLOR_SINGING_WIND = 0x20000000,
|
||||
SOCKET_COLOR_FIBER = 0x40000000,
|
||||
};
|
||||
|
||||
extern int32 const SocketColorToGemTypeMask[30];
|
||||
extern int32 const SocketColorToGemTypeMask[31];
|
||||
|
||||
#define SOCKET_COLOR_STANDARD (SOCKET_COLOR_RED | SOCKET_COLOR_YELLOW | SOCKET_COLOR_BLUE)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user