修复徽章镶嵌

This commit is contained in:
小疯
2022-09-17 00:49:27 +08:00
parent e41b0f976d
commit 1dc395f164
7 changed files with 95 additions and 42 deletions

View File

@@ -231,6 +231,12 @@ public:
return CallT<int>(base::CEquipItem::GetItemType, this);
}
int getAvatarSocket(int a2, stAvatarEmblemInfo_t* a3)
{
return CallT<int>(base::CEquipItem::getAvatarSocket, this, a2, a3);
}
};
class Inven_Item
@@ -267,11 +273,6 @@ public:
return ((__func)base::Inven_Item::isEquipableItemType)(this);
}
int get_ui_id()
{
return *(int*)(this + 0x7);
}
bool IsTradeLimitAttachTypeItem()
{
return CallT<bool>(base::Inven_Item::IsTradeLimitAttachTypeItem, this);
@@ -300,8 +301,7 @@ class DB_UpdateAvatarJewelSlot
public:
static int makeRequest(int a1, unsigned int a2, void* src)
{
typedef int (*__func)(int a1, unsigned int a2, void* src);
return ((__func)base::DB_UpdateAvatarJewelSlot::makeRequest)(a1, a2, src);
return CallT<int>(base::DB_UpdateAvatarJewelSlot::makeRequest, a1, a2, src);
}
};