mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-09-07 15:51:36 +00:00
Rename FindBehaviorSlotByEquipLocation to FindBehaviorSlot
Co-authored-by: aronwk-aaron <26027722+aronwk-aaron@users.noreply.github.com>
This commit is contained in:
@@ -1168,7 +1168,7 @@ LOT InventoryComponent::GetConsumable() const {
|
||||
void InventoryComponent::AddItemSkills(const LOT lot) {
|
||||
const auto info = Inventory::FindItemComponent(lot);
|
||||
|
||||
const auto slot = FindBehaviorSlotByEquipLocation(info.equipLocation);
|
||||
const auto slot = FindBehaviorSlot(info.equipLocation);
|
||||
|
||||
if (slot == BehaviorSlot::Invalid) {
|
||||
return;
|
||||
@@ -1203,7 +1203,7 @@ void InventoryComponent::FixInvisibleItems() {
|
||||
void InventoryComponent::RemoveItemSkills(const LOT lot) {
|
||||
const auto info = Inventory::FindItemComponent(lot);
|
||||
|
||||
const auto slot = FindBehaviorSlotByEquipLocation(info.equipLocation);
|
||||
const auto slot = FindBehaviorSlot(info.equipLocation);
|
||||
|
||||
if (slot == BehaviorSlot::Invalid) {
|
||||
return;
|
||||
@@ -1315,7 +1315,7 @@ void InventoryComponent::RemoveDatabasePet(LWOOBJID id) {
|
||||
m_Pets.erase(id);
|
||||
}
|
||||
|
||||
BehaviorSlot InventoryComponent::FindBehaviorSlotByEquipLocation(const std::string& equipLocation) {
|
||||
BehaviorSlot InventoryComponent::FindBehaviorSlot(const std::string& equipLocation) {
|
||||
if (equipLocation == "special_r") {
|
||||
return BehaviorSlot::Primary;
|
||||
} else if (equipLocation == "hair") {
|
||||
|
@@ -366,7 +366,7 @@ public:
|
||||
* @param equipLocation the equipment location to find the behavior slot for
|
||||
* @return the behavior slot for the given equipment location
|
||||
*/
|
||||
static BehaviorSlot FindBehaviorSlotByEquipLocation(const std::string& equipLocation);
|
||||
static BehaviorSlot FindBehaviorSlot(const std::string& equipLocation);
|
||||
|
||||
/**
|
||||
* Checks if the inventory type is a temp inventory
|
||||
|
Reference in New Issue
Block a user