summaryrefslogtreecommitdiff
path: root/src/emap/homunculus.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-27 20:51:19 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-27 20:51:44 +0300
commit1a4218d46ecbed547be1a6849448bbfa3ef82bf3 (patch)
treefa3c1fad5d085b64874bbdaaa93cf48d22ada38f /src/emap/homunculus.c
parent01fd24443da378059a8e88c0755c5526e7b66cbc (diff)
downloadevol-hercules-1a4218d46ecbed547be1a6849448bbfa3ef82bf3.tar.gz
evol-hercules-1a4218d46ecbed547be1a6849448bbfa3ef82bf3.tar.bz2
evol-hercules-1a4218d46ecbed547be1a6849448bbfa3ef82bf3.tar.xz
evol-hercules-1a4218d46ecbed547be1a6849448bbfa3ef82bf3.zip
Add homunculus exp packet (0xb22)
Diffstat (limited to 'src/emap/homunculus.c')
-rw-r--r--src/emap/homunculus.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/emap/homunculus.c b/src/emap/homunculus.c
new file mode 100644
index 0000000..df9bafb
--- /dev/null
+++ b/src/emap/homunculus.c
@@ -0,0 +1,24 @@
+// Copyright (c) Copyright (c) Hercules Dev Team, licensed under GNU GPL.
+// Copyright (c) 2014 - 2015 Evol developers
+
+#include "common/hercules.h"
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include "common/HPMi.h"
+#include "common/nullpo.h"
+
+#include "emap/send.h"
+
+int ehomunculus_gainexp_pre(struct homun_data **hdPtr,
+ unsigned int *expPtr)
+{
+ struct homun_data *hd = *hdPtr;
+ nullpo_ret(hd);
+ const int exp = *expPtr;
+
+ send_homun_exp(hd, exp);
+ return 0;
+}