mirror of
https://gitlab.com/hashborgir/d2tweaks-rnd2k.git
synced 2025-10-13 08:24:23 -05:00
right click add gem works
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <diablo2/structures/unit.h>
|
||||
|
||||
namespace d2_tweaks {
|
||||
namespace common {
|
||||
@@ -235,6 +236,10 @@ namespace d2_tweaks {
|
||||
struct item_move_cs : packet_header {
|
||||
uint32_t item_guid;
|
||||
uint8_t target_page;
|
||||
uint32_t bag_guid = 0;
|
||||
bool updateBag;
|
||||
int prop;
|
||||
int val;
|
||||
|
||||
item_move_cs() : item_guid(0), target_page(0) {
|
||||
message_type = MESSAGE_TYPE_ITEM_MOVE;
|
||||
@@ -246,7 +251,10 @@ namespace d2_tweaks {
|
||||
uint32_t tx;
|
||||
uint32_t ty;
|
||||
uint8_t target_page;
|
||||
|
||||
uint32_t bag_guid = 0;
|
||||
bool updateBag;
|
||||
int prop;
|
||||
int val;
|
||||
item_move_sc() : item_guid(0), tx(0), ty(0), target_page(0) {
|
||||
message_type = MESSAGE_TYPE_ITEM_MOVE;
|
||||
}
|
||||
@@ -254,12 +262,15 @@ namespace d2_tweaks {
|
||||
|
||||
struct inventory_sort_cs : packet_header {
|
||||
uint8_t page;
|
||||
diablo2::structures::unit* item_to_remove;
|
||||
bool remItem;
|
||||
|
||||
inventory_sort_cs() : page(0) {
|
||||
message_type = MESSAGE_TYPE_INVENTORY_SORT;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
struct inventory_sort_sc : packet_header {
|
||||
uint8_t page;
|
||||
uint8_t tx;
|
||||
|
@@ -981,6 +981,7 @@ namespace diablo2 {
|
||||
//static void diablo2::d2_common::set_item_flags(structures::unit* item, structures::itemflags_t dwFlag, bool bSet);
|
||||
|
||||
static void diablo2::d2_common::add_property(structures::unit* item, D2PropertyStrc* pProperty, int nUnused);
|
||||
static void diablo2::d2_common::ITEMS_SetItemFlag(structures::unit* item, uint32_t dwFlag, BOOL bSet);
|
||||
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user