summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-21 17:11:31 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-21 17:11:31 +0300
commit4ab7d38fe9033695e23042e97b55999b26f00fd7 (patch)
tree55d35e4b11c46740dd9c10da2fbe94ecda036c58 /src/net/ea
parentc5e89f9543fcf7cb86d54e51356865e7001b6977 (diff)
downloadManaVerse-4ab7d38fe9033695e23042e97b55999b26f00fd7.tar.gz
ManaVerse-4ab7d38fe9033695e23042e97b55999b26f00fd7.tar.bz2
ManaVerse-4ab7d38fe9033695e23042e97b55999b26f00fd7.tar.xz
ManaVerse-4ab7d38fe9033695e23042e97b55999b26f00fd7.zip
Add cards fields in inventoryitem.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/inventoryitem.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/ea/inventoryitem.h b/src/net/ea/inventoryitem.h
index c0f5e15a1..1b6fd7f65 100644
--- a/src/net/ea/inventoryitem.h
+++ b/src/net/ea/inventoryitem.h
@@ -42,6 +42,7 @@ class InventoryItem final
public:
int slot;
int id;
+ int cards[4];
int quantity;
uint8_t refine;
unsigned char color;
@@ -52,6 +53,7 @@ class InventoryItem final
InventoryItem(const int slot0,
const int id0,
+ const int *const cards0,
const int quantity0,
const uint8_t refine0,
const unsigned char color0,
@@ -69,6 +71,8 @@ class InventoryItem final
favorite(favorite0),
equip(equip0)
{
+ for (int f = 0; f < 4; f ++)
+ cards[f] = cards0[f];
}
};