style: restore code style

This commit is contained in:
Helias
2022-05-27 11:08:59 +02:00
parent ef9ed561c7
commit 1aff20100e

View File

@@ -32,14 +32,14 @@ public:
{
static ChatCommandTable addCollectionTable =
{
{"set", HandleAddTransmogItemSet, SEC_MODERATOR, Console::Yes},
{"", HandleAddTransmogItem, SEC_MODERATOR, Console::Yes},
{"set", HandleAddTransmogItemSet, SEC_MODERATOR, Console::Yes},
{"", HandleAddTransmogItem, SEC_MODERATOR, Console::Yes},
};
static ChatCommandTable transmogTable =
{
{"add", addCollectionTable},
{"", HandleDisableTransMogVisual, SEC_PLAYER, Console::No},
{"", HandleDisableTransMogVisual, SEC_PLAYER, Console::No},
};
static ChatCommandTable commandTable =
@@ -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))