mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-09 08:17:56 +00:00
refactor(Core/Player): small clean in Player.h (#23018)
Co-authored-by: Rykles <219719782+Seamthesis@users.noreply.github.com>
This commit is contained in:
@@ -1090,11 +1090,6 @@ public:
|
|||||||
SetFloatValue(UNIT_FIELD_COMBATREACH, scale * DEFAULT_COMBAT_REACH);
|
SetFloatValue(UNIT_FIELD_COMBATREACH, scale * DEFAULT_COMBAT_REACH);
|
||||||
}
|
}
|
||||||
|
|
||||||
[[nodiscard]] bool hasSpanishClient()
|
|
||||||
{
|
|
||||||
return GetSession()->GetSessionDbLocaleIndex() == LOCALE_esES || GetSession()->GetSessionDbLocaleIndex() == LOCALE_esMX;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool TeleportTo(uint32 mapid, float x, float y, float z, float orientation, uint32 options = 0, Unit* target = nullptr, bool newInstance = false);
|
bool TeleportTo(uint32 mapid, float x, float y, float z, float orientation, uint32 options = 0, Unit* target = nullptr, bool newInstance = false);
|
||||||
bool TeleportTo(WorldLocation const& loc, uint32 options = 0, Unit* target = nullptr)
|
bool TeleportTo(WorldLocation const& loc, uint32 options = 0, Unit* target = nullptr)
|
||||||
{
|
{
|
||||||
@@ -1339,7 +1334,6 @@ public:
|
|||||||
{
|
{
|
||||||
return StoreItem(dest, pItem, update);
|
return StoreItem(dest, pItem, update);
|
||||||
}
|
}
|
||||||
Item* BankItem(uint16 pos, Item* pItem, bool update);
|
|
||||||
void RemoveItem(uint8 bag, uint8 slot, bool update, bool swap = false);
|
void RemoveItem(uint8 bag, uint8 slot, bool update, bool swap = false);
|
||||||
void MoveItemFromInventory(uint8 bag, uint8 slot, bool update);
|
void MoveItemFromInventory(uint8 bag, uint8 slot, bool update);
|
||||||
// in trade, auction, guild bank, mail....
|
// in trade, auction, guild bank, mail....
|
||||||
@@ -1600,7 +1594,6 @@ public:
|
|||||||
void SetBindPoint(ObjectGuid guid);
|
void SetBindPoint(ObjectGuid guid);
|
||||||
void SendTalentWipeConfirm(ObjectGuid guid);
|
void SendTalentWipeConfirm(ObjectGuid guid);
|
||||||
void ResetPetTalents();
|
void ResetPetTalents();
|
||||||
void CalcRage(uint32 damage, bool attacker);
|
|
||||||
void RegenerateAll();
|
void RegenerateAll();
|
||||||
void Regenerate(Powers power);
|
void Regenerate(Powers power);
|
||||||
void RegenerateHealth();
|
void RegenerateHealth();
|
||||||
|
|||||||
@@ -1536,7 +1536,7 @@ InventoryResult Player::CanStoreItem(uint8 bag, uint8 slot, ItemPosCountVec& des
|
|||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
InventoryResult Player::CanStoreItems(Item** pItems, int count) const
|
InventoryResult Player::CanStoreItems(Item** pItems, int32 count) const
|
||||||
{
|
{
|
||||||
Item* pItem2;
|
Item* pItem2;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user