mirror of
https://gitlab.com/hashborgir/d2tweaks-rnd2k.git
synced 2025-09-19 01:52:08 +00:00
Clean up
This commit is contained in:
@@ -387,13 +387,13 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::register_misc_checkb
|
||||
if (m_show_rejuv_potion) {
|
||||
m_show_rejuv_potion->set_state(loot_filter_settings::get().m_show_rejuv_potion);
|
||||
m_show_rejuv_potion->set_on_click(std::bind(&loot_filter_settings_menu::extract_rejuv_potion,
|
||||
this, std::placeholders::_1));
|
||||
this, std::placeholders::_1));
|
||||
}
|
||||
|
||||
if (m_show_full_rejuv_potion) {
|
||||
m_show_full_rejuv_potion->set_state(loot_filter_settings::get().m_show_full_rejuv_potion);
|
||||
m_show_full_rejuv_potion->set_on_click(std::bind(&loot_filter_settings_menu::extract_full_rejuv_potion,
|
||||
this, std::placeholders::_1));
|
||||
this, std::placeholders::_1));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -922,7 +922,6 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_full_rejuv_p
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// gems extraction functions
|
||||
|
||||
void d2_tweaks::client::modules::loot_filter_settings_menu::extract_amethyst(bool value) {}
|
||||
@@ -945,12 +944,9 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_topaz(bool v
|
||||
// Implementation goes here
|
||||
}
|
||||
|
||||
|
||||
// stones
|
||||
|
||||
|
||||
void d2_tweaks::client::modules::loot_filter_settings_menu::extract_rough(bool value) {
|
||||
|
||||
uint32_t gemCode = 0;
|
||||
int gemPropRowID = 0;
|
||||
diablo2::unit_stats_t stat;
|
||||
@@ -991,7 +987,6 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_rough(bool v
|
||||
stat = diablo2::UNIT_STAT_gembag_Stones_TigerEye;
|
||||
}
|
||||
|
||||
|
||||
loot_filter_settings::get().m_show_rough = value;
|
||||
auto player = diablo2::d2_client::get_local_player();
|
||||
auto inventory = player->inventory;
|
||||
@@ -1036,10 +1031,7 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_rough(bool v
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void d2_tweaks::client::modules::loot_filter_settings_menu::extract_faded(bool value) {
|
||||
|
||||
uint32_t gemCode = 0;
|
||||
int gemPropRowID = 0;
|
||||
diablo2::unit_stats_t stat;
|
||||
@@ -1080,8 +1072,6 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_faded(bool v
|
||||
stat = diablo2::UNIT_STAT_gembag_Stones_TigerEye;
|
||||
}
|
||||
|
||||
|
||||
|
||||
loot_filter_settings::get().m_show_rough = value;
|
||||
auto player = diablo2::d2_client::get_local_player();
|
||||
auto inventory = player->inventory;
|
||||
@@ -1126,10 +1116,7 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_faded(bool v
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void d2_tweaks::client::modules::loot_filter_settings_menu::extract_blemished(bool value) {
|
||||
|
||||
uint32_t gemCode = 0;
|
||||
int gemPropRowID = 0;
|
||||
diablo2::unit_stats_t stat;
|
||||
@@ -1170,9 +1157,6 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_blemished(bo
|
||||
stat = diablo2::UNIT_STAT_gembag_Stones_TigerEye;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
loot_filter_settings::get().m_show_rough = value;
|
||||
auto player = diablo2::d2_client::get_local_player();
|
||||
auto inventory = player->inventory;
|
||||
@@ -1217,10 +1201,7 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_blemished(bo
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void d2_tweaks::client::modules::loot_filter_settings_menu::extract_cleaned(bool value) {
|
||||
|
||||
uint32_t gemCode = 0;
|
||||
int gemPropRowID = 0;
|
||||
diablo2::unit_stats_t stat;
|
||||
@@ -1261,8 +1242,6 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_cleaned(bool
|
||||
stat = diablo2::UNIT_STAT_gembag_Stones_TigerEye;
|
||||
}
|
||||
|
||||
|
||||
|
||||
loot_filter_settings::get().m_show_rough = value;
|
||||
auto player = diablo2::d2_client::get_local_player();
|
||||
auto inventory = player->inventory;
|
||||
@@ -1307,10 +1286,7 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_cleaned(bool
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void d2_tweaks::client::modules::loot_filter_settings_menu::extract_triangle(bool value) {
|
||||
|
||||
uint32_t gemCode = 0;
|
||||
int gemPropRowID = 0;
|
||||
diablo2::unit_stats_t stat;
|
||||
@@ -1351,8 +1327,6 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_triangle(boo
|
||||
stat = diablo2::UNIT_STAT_gembag_Stones_TigerEye;
|
||||
}
|
||||
|
||||
|
||||
|
||||
loot_filter_settings::get().m_show_rough = value;
|
||||
auto player = diablo2::d2_client::get_local_player();
|
||||
auto inventory = player->inventory;
|
||||
@@ -1397,10 +1371,7 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_triangle(boo
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void d2_tweaks::client::modules::loot_filter_settings_menu::extract_trangle_cut(bool value) {
|
||||
|
||||
uint32_t gemCode = 0;
|
||||
int gemPropRowID = 0;
|
||||
diablo2::unit_stats_t stat;
|
||||
@@ -1441,8 +1412,6 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_trangle_cut(
|
||||
stat = diablo2::UNIT_STAT_gembag_Stones_TigerEye;
|
||||
}
|
||||
|
||||
|
||||
|
||||
loot_filter_settings::get().m_show_rough = value;
|
||||
auto player = diablo2::d2_client::get_local_player();
|
||||
auto inventory = player->inventory;
|
||||
@@ -1487,10 +1456,7 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_trangle_cut(
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void d2_tweaks::client::modules::loot_filter_settings_menu::extract_square(bool value) {
|
||||
|
||||
uint32_t gemCode = 0;
|
||||
int gemPropRowID = 0;
|
||||
diablo2::unit_stats_t stat;
|
||||
@@ -1531,7 +1497,6 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_square(bool
|
||||
stat = diablo2::UNIT_STAT_gembag_Stones_TigerEye;
|
||||
}
|
||||
|
||||
|
||||
loot_filter_settings::get().m_show_rough = value;
|
||||
auto player = diablo2::d2_client::get_local_player();
|
||||
auto inventory = player->inventory;
|
||||
@@ -1576,10 +1541,7 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_square(bool
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void d2_tweaks::client::modules::loot_filter_settings_menu::extract_square_cut(bool value) {
|
||||
|
||||
uint32_t gemCode = 0;
|
||||
int gemPropRowID = 0;
|
||||
diablo2::unit_stats_t stat;
|
||||
@@ -1620,8 +1582,6 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_square_cut(b
|
||||
stat = diablo2::UNIT_STAT_gembag_Stones_TigerEye;
|
||||
}
|
||||
|
||||
|
||||
|
||||
loot_filter_settings::get().m_show_rough = value;
|
||||
auto player = diablo2::d2_client::get_local_player();
|
||||
auto inventory = player->inventory;
|
||||
@@ -1666,10 +1626,7 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_square_cut(b
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void d2_tweaks::client::modules::loot_filter_settings_menu::extract_regular(bool value) {
|
||||
|
||||
uint32_t gemCode = 0;
|
||||
int gemPropRowID = 0;
|
||||
diablo2::unit_stats_t stat;
|
||||
@@ -1710,8 +1667,6 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_regular(bool
|
||||
stat = diablo2::UNIT_STAT_gembag_Stones_TigerEye;
|
||||
}
|
||||
|
||||
|
||||
|
||||
loot_filter_settings::get().m_show_rough = value;
|
||||
auto player = diablo2::d2_client::get_local_player();
|
||||
auto inventory = player->inventory;
|
||||
@@ -1756,10 +1711,7 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_regular(bool
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void d2_tweaks::client::modules::loot_filter_settings_menu::extract_regular_cut(bool value) {
|
||||
|
||||
uint32_t gemCode = 0;
|
||||
int gemPropRowID = 0;
|
||||
diablo2::unit_stats_t stat;
|
||||
@@ -1800,7 +1752,6 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_regular_cut(
|
||||
stat = diablo2::UNIT_STAT_gembag_Stones_TigerEye;
|
||||
}
|
||||
|
||||
|
||||
loot_filter_settings::get().m_show_rough = value;
|
||||
auto player = diablo2::d2_client::get_local_player();
|
||||
auto inventory = player->inventory;
|
||||
@@ -1845,10 +1796,7 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_regular_cut(
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void d2_tweaks::client::modules::loot_filter_settings_menu::extract_star(bool value) {
|
||||
|
||||
uint32_t gemCode = 0;
|
||||
int gemPropRowID = 0;
|
||||
diablo2::unit_stats_t stat;
|
||||
@@ -1889,8 +1837,6 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_star(bool va
|
||||
stat = diablo2::UNIT_STAT_gembag_Stones_TigerEye;
|
||||
}
|
||||
|
||||
|
||||
|
||||
loot_filter_settings::get().m_show_rough = value;
|
||||
auto player = diablo2::d2_client::get_local_player();
|
||||
auto inventory = player->inventory;
|
||||
@@ -1935,10 +1881,7 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_star(bool va
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void d2_tweaks::client::modules::loot_filter_settings_menu::extract_star_cut(bool value) {
|
||||
|
||||
uint32_t gemCode = 0;
|
||||
int gemPropRowID = 0;
|
||||
diablo2::unit_stats_t stat;
|
||||
@@ -1979,8 +1922,6 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_star_cut(boo
|
||||
stat = diablo2::UNIT_STAT_gembag_Stones_TigerEye;
|
||||
}
|
||||
|
||||
|
||||
|
||||
loot_filter_settings::get().m_show_rough = value;
|
||||
auto player = diablo2::d2_client::get_local_player();
|
||||
auto inventory = player->inventory;
|
||||
@@ -2025,10 +1966,7 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_star_cut(boo
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void d2_tweaks::client::modules::loot_filter_settings_menu::extract_imperial(bool value) {
|
||||
|
||||
uint32_t gemCode = 0;
|
||||
int gemPropRowID = 0;
|
||||
diablo2::unit_stats_t stat;
|
||||
@@ -2069,8 +2007,6 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_imperial(boo
|
||||
stat = diablo2::UNIT_STAT_gembag_Stones_TigerEye;
|
||||
}
|
||||
|
||||
|
||||
|
||||
loot_filter_settings::get().m_show_rough = value;
|
||||
auto player = diablo2::d2_client::get_local_player();
|
||||
auto inventory = player->inventory;
|
||||
@@ -2115,10 +2051,7 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_imperial(boo
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void d2_tweaks::client::modules::loot_filter_settings_menu::extract_imperial_cut(bool value) {
|
||||
|
||||
uint32_t gemCode = 0;
|
||||
int gemPropRowID = 0;
|
||||
diablo2::unit_stats_t stat;
|
||||
@@ -2159,8 +2092,6 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_imperial_cut
|
||||
stat = diablo2::UNIT_STAT_gembag_Stones_TigerEye;
|
||||
}
|
||||
|
||||
|
||||
|
||||
loot_filter_settings::get().m_show_rough = value;
|
||||
auto player = diablo2::d2_client::get_local_player();
|
||||
auto inventory = player->inventory;
|
||||
@@ -2205,10 +2136,7 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_imperial_cut
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void d2_tweaks::client::modules::loot_filter_settings_menu::extract_royal(bool value) {
|
||||
|
||||
uint32_t gemCode = 0;
|
||||
int gemPropRowID = 0;
|
||||
diablo2::unit_stats_t stat;
|
||||
@@ -2249,8 +2177,6 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_royal(bool v
|
||||
stat = diablo2::UNIT_STAT_gembag_Stones_TigerEye;
|
||||
}
|
||||
|
||||
|
||||
|
||||
loot_filter_settings::get().m_show_rough = value;
|
||||
auto player = diablo2::d2_client::get_local_player();
|
||||
auto inventory = player->inventory;
|
||||
@@ -2295,10 +2221,7 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_royal(bool v
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void d2_tweaks::client::modules::loot_filter_settings_menu::extract_royal_cut(bool value) {
|
||||
|
||||
uint32_t gemCode = 0;
|
||||
int gemPropRowID = 0;
|
||||
diablo2::unit_stats_t stat;
|
||||
@@ -2339,8 +2262,6 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_royal_cut(bo
|
||||
stat = diablo2::UNIT_STAT_gembag_Stones_TigerEye;
|
||||
}
|
||||
|
||||
|
||||
|
||||
loot_filter_settings::get().m_show_rough = value;
|
||||
auto player = diablo2::d2_client::get_local_player();
|
||||
auto inventory = player->inventory;
|
||||
@@ -2385,10 +2306,7 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_royal_cut(bo
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void d2_tweaks::client::modules::loot_filter_settings_menu::extract_spectacular(bool value) {
|
||||
|
||||
uint32_t gemCode = 0;
|
||||
int gemPropRowID = 0;
|
||||
diablo2::unit_stats_t stat;
|
||||
@@ -2429,8 +2347,6 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_spectacular(
|
||||
stat = diablo2::UNIT_STAT_gembag_Stones_TigerEye;
|
||||
}
|
||||
|
||||
|
||||
|
||||
loot_filter_settings::get().m_show_rough = value;
|
||||
auto player = diablo2::d2_client::get_local_player();
|
||||
auto inventory = player->inventory;
|
||||
@@ -2475,10 +2391,7 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_spectacular(
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void d2_tweaks::client::modules::loot_filter_settings_menu::extract_legendary(bool value) {
|
||||
|
||||
uint32_t gemCode = 0;
|
||||
int gemPropRowID = 0;
|
||||
diablo2::unit_stats_t stat;
|
||||
@@ -2519,8 +2432,6 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_legendary(bo
|
||||
stat = diablo2::UNIT_STAT_gembag_Stones_TigerEye;
|
||||
}
|
||||
|
||||
|
||||
|
||||
loot_filter_settings::get().m_show_rough = value;
|
||||
auto player = diablo2::d2_client::get_local_player();
|
||||
auto inventory = player->inventory;
|
||||
@@ -2565,10 +2476,7 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_legendary(bo
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void d2_tweaks::client::modules::loot_filter_settings_menu::extract_legendary_cut(bool value) {
|
||||
|
||||
uint32_t gemCode = 0;
|
||||
int gemPropRowID = 0;
|
||||
diablo2::unit_stats_t stat;
|
||||
@@ -2609,8 +2517,6 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_legendary_cu
|
||||
stat = diablo2::UNIT_STAT_gembag_Stones_TigerEye;
|
||||
}
|
||||
|
||||
|
||||
|
||||
loot_filter_settings::get().m_show_rough = value;
|
||||
auto player = diablo2::d2_client::get_local_player();
|
||||
auto inventory = player->inventory;
|
||||
@@ -2655,8 +2561,6 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_legendary_cu
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// qualities extraction functions
|
||||
|
||||
void d2_tweaks::client::modules::loot_filter_settings_menu::extract_chipped(bool value) {
|
||||
@@ -4312,11 +4216,8 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_r33(bool val
|
||||
|
||||
// End Rune Extraction Functions
|
||||
|
||||
|
||||
// Rejuv Potions
|
||||
|
||||
|
||||
|
||||
void d2_tweaks::client::modules::loot_filter_settings_menu::update_show_gold(bool value) {
|
||||
loot_filter_settings::get().show_gold = value;
|
||||
loot_filter_settings::get().save(diablo2::d2_client::get_local_player_name());
|
||||
|
@@ -72,14 +72,12 @@ bool d2_tweaks::server::modules::item_move::handle_packet(diablo2::structures::g
|
||||
bag_guid = std::to_string(itemMove->bag_guid);
|
||||
//MessageBox(NULL, bag_guid.c_str(), "Bag GUID", MB_OK | MB_ICONINFORMATION);
|
||||
|
||||
|
||||
// display itemMove->iCode in a messagebox
|
||||
std::string iCode = std::to_string(itemMove->iCode);
|
||||
//MessageBox(NULL, iCode.c_str(), "iCode", MB_OK | MB_ICONINFORMATION);
|
||||
|
||||
if (itemMove->extract == 1) {
|
||||
|
||||
// display bag guid in a messagebox
|
||||
// display bag guid in a messagebox
|
||||
std::string bag_guid = std::to_string(itemMove->bag_guid);
|
||||
//MessageBox(NULL, bag_guid.c_str(), "Bag GUID", MB_OK | MB_ICONINFORMATION);
|
||||
|
||||
@@ -104,7 +102,6 @@ bool d2_tweaks::server::modules::item_move::handle_packet(diablo2::structures::g
|
||||
diablo2::d2_game::D2GAME_Transmogrify_6FC4A660(game, player, item);
|
||||
|
||||
diablo2::d2_game::QUESTS_CreateItem(game, player, reverseDWORD('gfv '), 1, diablo2::structures::ITEMQUAL_NORMAL, true);
|
||||
|
||||
}
|
||||
else {
|
||||
D2PropertyStrc itemProperty = {};
|
||||
|
@@ -1141,7 +1141,6 @@ LRESULT d2_tweaks::ui::ui_manager::wnd_proc(HWND hWnd, UINT msg, WPARAM wParam,
|
||||
diablo2::structures::unit* box{};
|
||||
diablo2::structures::unit* harvester{};
|
||||
|
||||
|
||||
// get the gembag item
|
||||
for (auto item = player->inventory->first_item; item != nullptr; item = item->item_data->pt_next_item) {
|
||||
const auto record = diablo2::d2_common::get_item_record(item->data_record_index);
|
||||
|
Reference in New Issue
Block a user