Code optimization, reduce repetitive code.

This commit is contained in:
Hash Borgir 2024-05-07 05:31:18 -06:00
parent 9719a540df
commit 41a4c4d181
2 changed files with 80 additions and 2104 deletions

View File

@ -5,6 +5,7 @@
#include <d2tweaks/ui/menu.h> #include <d2tweaks/ui/menu.h>
#include <chrono> // Add this line #include <chrono> // Add this line
#include <diablo2/d2common.h>
namespace diablo2 { namespace diablo2 {
namespace structures { namespace structures {
@ -126,6 +127,10 @@ namespace d2_tweaks {
void register_quality_checkboxes(); void register_quality_checkboxes();
void update_alt_only(bool value); void update_alt_only(bool value);
void extract_item(bool value, int prop, uint32_t val, uint32_t rune, diablo2::unit_stats_t stat);
void extract_r01(bool value); void extract_r01(bool value);
void extract_r02(bool value); void extract_r02(bool value);
void extract_r03(bool value); void extract_r03(bool value);
@ -160,14 +165,6 @@ namespace d2_tweaks {
void extract_r32(bool value); void extract_r32(bool value);
void extract_r33(bool value); void extract_r33(bool value);
void extract_amethyst(bool value);
void extract_diamond(bool value);
void extract_emerald(bool value);
void extract_ruby(bool value);
void extract_sapphire(bool value);
void extract_skull(bool value);
void extract_topaz(bool value);
void extract_chipped(bool value); void extract_chipped(bool value);
void extract_flawed(bool value); void extract_flawed(bool value);
void extract_normal(bool value); void extract_normal(bool value);