mirror of
https://gitlab.com/hashborgir/d2tweaks-rnd2k.git
synced 2024-12-02 13:45:58 +00:00
added transmorify wrapper
This commit is contained in:
parent
9e57031fdd
commit
6141cc0a7b
@ -50,5 +50,7 @@ namespace diablo2 {
|
|||||||
|
|
||||||
//D2Game.0x6FC4ED80
|
//D2Game.0x6FC4ED80
|
||||||
structures::unit* __fastcall D2GAME_CreateItemEx_6FC4ED80(structures::game* pGame, structures::D2ItemDropStrc* pItemDrop, int32_t a3);
|
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);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -142,4 +142,12 @@ uint32_t __fastcall diablo2::d2_game::transmogrify(diablo2::structures::game* ga
|
|||||||
diablo2::structures::unit* __fastcall diablo2::d2_game::D2GAME_CreateItemEx_6FC4ED80(diablo2::structures::game* pGame, diablo2::structures::D2ItemDropStrc* pItemDrop, int32_t a3) {
|
diablo2::structures::unit* __fastcall diablo2::d2_game::D2GAME_CreateItemEx_6FC4ED80(diablo2::structures::game* pGame, diablo2::structures::D2ItemDropStrc* pItemDrop, int32_t a3) {
|
||||||
static wrap_func_fast< diablo2::structures::unit* (diablo2::structures::game*, diablo2::structures::D2ItemDropStrc*, int32_t)> D2GAME_CreateItemEx_6FC4ED80(0x1ed80, get_base());
|
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);
|
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);
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user