added transmorify wrapper

This commit is contained in:
Hash Borgir 2024-05-04 12:06:59 -06:00
parent 9e57031fdd
commit 6141cc0a7b
2 changed files with 10 additions and 0 deletions

View File

@ -50,5 +50,7 @@ namespace diablo2 {
//D2Game.0x6FC4ED80
structures::unit* __fastcall D2GAME_CreateItemEx_6FC4ED80(structures::game* pGame, structures::D2ItemDropStrc* pItemDrop, int32_t a3);
static int32_t __fastcall D2GAME_Transmogrify_6FC4A660(structures::game* pGame, structures::unit* pUnit, structures::unit* pItem);
};
}

View File

@ -143,3 +143,11 @@ diablo2::structures::unit* __fastcall diablo2::d2_game::D2GAME_CreateItemEx_6FC4
static wrap_func_fast< diablo2::structures::unit* (diablo2::structures::game*, diablo2::structures::D2ItemDropStrc*, int32_t)> D2GAME_CreateItemEx_6FC4ED80(0x1ed80, get_base());
return D2GAME_CreateItemEx_6FC4ED80(pGame, pItemDrop, a3);
}
// Add a wrapper for the following function:
//D2Game.0x6FC4A660
//int32_t __fastcall D2GAME_Transmogrify_6FC4A660(D2GameStrc* pGame, D2UnitStrc* pUnit, D2UnitStrc* pItem)
int32_t __fastcall diablo2::d2_game::D2GAME_Transmogrify_6FC4A660(diablo2::structures::game* pGame, diablo2::structures::unit* pUnit, diablo2::structures::unit* pItem) {
static wrap_func_fast<int32_t(diablo2::structures::game*, diablo2::structures::unit*, diablo2::structures::unit* item)> D2GAME_Transmogrify_6FC4A660(0x1a660, get_base());
return D2GAME_Transmogrify_6FC4A660(pGame, pUnit, pItem);
}