mirror of
https://gitlab.com/hashborgir/d2tweaks-rnd2k.git
synced 2025-10-14 08:54:22 -05:00
Right click gem add to bag working
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include <diablo2/d2common.h>
|
||||
#include <common/ptr_wrapper.h>
|
||||
#include <d2tweaks/common/protocol.h>
|
||||
|
||||
char* diablo2::d2_common::get_base() {
|
||||
static auto base = reinterpret_cast<char*>(GetModuleHandle("d2common.dll"));
|
||||
@@ -249,4 +250,9 @@ void diablo2::d2_common::update_trade(structures::inventory* inventory, structur
|
||||
//void diablo2::d2_common::set_item_flags(structures::unit* item, diablo2::structures::itemflags_t dwFlag, bool bSet) {
|
||||
// static wrap_func_std_import<void(structures::unit* item, structures::itemflags_t dwFlag, bool bSet)> set_item_flags(10708, get_base());
|
||||
// set_item_flags(item, dwFlag, bSet);
|
||||
//}
|
||||
//}
|
||||
|
||||
void diablo2::d2_common::add_property(structures::unit* item, D2PropertyStrc* prop, int nUnused) {
|
||||
static wrap_func_std_import<void(structures::unit* item, D2PropertyStrc* prop, int nUnused)> add_property(10868, get_base());
|
||||
add_property(item, prop, nUnused);
|
||||
}
|
Reference in New Issue
Block a user