summaryrefslogtreecommitdiff
path: root/src/emap/clif.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-13 16:08:50 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-13 16:09:16 +0300
commitac815f32696c415f02c6c5cde1d10c3111d3d28e (patch)
tree8adf5b2bdc394ba82896501c6c891538bea568b9 /src/emap/clif.c
parenta8e73e0cfdc5f0600ac26a6b733bace49edd0e9f (diff)
downloadevol-hercules-ac815f32696c415f02c6c5cde1d10c3111d3d28e.tar.gz
evol-hercules-ac815f32696c415f02c6c5cde1d10c3111d3d28e.tar.bz2
evol-hercules-ac815f32696c415f02c6c5cde1d10c3111d3d28e.tar.xz
evol-hercules-ac815f32696c415f02c6c5cde1d10c3111d3d28e.zip
Dont hide egg card fields in packets.
Diffstat (limited to 'src/emap/clif.c')
-rw-r--r--src/emap/clif.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/emap/clif.c b/src/emap/clif.c
index d2a89e8..87a2adc 100644
--- a/src/emap/clif.c
+++ b/src/emap/clif.c
@@ -1373,3 +1373,29 @@ void eclif_disp_message_pre(struct block_list **srcPtr,
safestrncpy(WBUFP(buf, 4), mes, len + 1);
clif->send(buf, WBUFW(buf, 2), src, *targetPtr);
}
+
+void eclif_addcards_post(unsigned char *buf, struct item *item)
+{
+ if (!buf || !item)
+ return;
+ if (item->card[0] == CARD0_PET)
+ {
+ WBUFW(buf, 0) = item->card[0];
+ WBUFW(buf, 2) = item->card[1];
+ WBUFW(buf, 4) = item->card[2];
+ WBUFW(buf, 6) = item->card[3];
+ }
+}
+
+void eclif_addcards2_post(unsigned short *cards, struct item *item)
+{
+ if (!cards || !item)
+ return;
+ if (item->card[0] == CARD0_PET)
+ {
+ cards[0] = item->card[0];
+ cards[1] = item->card[1];
+ cards[2] = item->card[2];
+ cards[3] = item->card[3];
+ }
+}