mirror of
https://github.com/azerothcore/mod-transmog
synced 2025-11-29 22:48:30 +08:00
style: restore code style
This commit is contained in:
@@ -50,9 +50,9 @@ public:
|
||||
return commandTable;
|
||||
}
|
||||
|
||||
static bool HandleDisableTransMogVisual(ChatHandler *handler, bool hide)
|
||||
static bool HandleDisableTransMogVisual(ChatHandler* handler, bool hide)
|
||||
{
|
||||
Player *player = handler->GetPlayer();
|
||||
Player* player = handler->GetPlayer();
|
||||
|
||||
if (hide)
|
||||
{
|
||||
@@ -69,7 +69,7 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool HandleAddTransmogItem(ChatHandler *handler, Optional<PlayerIdentifier> player, ItemTemplate const *itemTemplate)
|
||||
static bool HandleAddTransmogItem(ChatHandler* handler, Optional<PlayerIdentifier> player, ItemTemplate const* itemTemplate)
|
||||
{
|
||||
if (!sTransmogrification->GetUseCollectionSystem())
|
||||
return true;
|
||||
@@ -91,7 +91,7 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
Player *target = player->GetConnectedPlayer();
|
||||
Player* target = player->GetConnectedPlayer();
|
||||
|
||||
if (!sTransmogrification->GetTrackUnusableItems() && !sTransmogrification->SuitableForTransmogrification(target, itemTemplate))
|
||||
{
|
||||
@@ -112,7 +112,7 @@ public:
|
||||
auto guid = player->GetGUID().GetCounter();
|
||||
if (QueryResult result = CharacterDatabase.Query("SELECT `account` FROM `characters` WHERE `guid` = {}", guid))
|
||||
{
|
||||
Field *fields = result->Fetch();
|
||||
Field* fields = result->Fetch();
|
||||
accountId = fields[0].Get<uint32>();
|
||||
}
|
||||
else
|
||||
@@ -159,7 +159,7 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool HandleAddTransmogItemSet(ChatHandler *handler, Optional<PlayerIdentifier> player, Variant<Hyperlink<itemset>, uint32> itemSetId)
|
||||
static bool HandleAddTransmogItemSet(ChatHandler* handler, Optional<PlayerIdentifier> player, Variant<Hyperlink<itemset>, uint32> itemSetId)
|
||||
{
|
||||
if (!sTransmogrification->GetUseCollectionSystem())
|
||||
return true;
|
||||
@@ -181,8 +181,8 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
Player *target = player->GetConnectedPlayer();
|
||||
ItemSetEntry const *set = sItemSetStore.LookupEntry(uint32(itemSetId));
|
||||
Player* target = player->GetConnectedPlayer();
|
||||
ItemSetEntry const* set = sItemSetStore.LookupEntry(uint32(itemSetId));
|
||||
|
||||
if (!set)
|
||||
{
|
||||
@@ -199,7 +199,7 @@ public:
|
||||
auto guid = player->GetGUID().GetCounter();
|
||||
if (QueryResult result = CharacterDatabase.Query("SELECT `account` FROM `characters` WHERE `guid` = {}", guid))
|
||||
{
|
||||
Field *fields = result->Fetch();
|
||||
Field* fields = result->Fetch();
|
||||
accountId = fields[0].Get<uint32>();
|
||||
}
|
||||
else
|
||||
@@ -212,7 +212,7 @@ public:
|
||||
itemId = set->itemId[i];
|
||||
if (itemId)
|
||||
{
|
||||
ItemTemplate const *itemTemplate = sObjectMgr->GetItemTemplate(itemId);
|
||||
ItemTemplate const* itemTemplate = sObjectMgr->GetItemTemplate(itemId);
|
||||
if (itemTemplate)
|
||||
{
|
||||
if (!sTransmogrification->GetTrackUnusableItems() && !sTransmogrification->SuitableForTransmogrification(target, itemTemplate))
|
||||
|
||||
Reference in New Issue
Block a user