summaryrefslogtreecommitdiff
path: root/src/map/homunculus.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2019-07-28 21:29:47 +0200
committerGitHub <noreply@github.com>2019-07-28 21:29:47 +0200
commitcd04fd96954ccb9fbbe33d05ad1eb3e2f7ce98c5 (patch)
treef5af9a63a5158dc890b3b5a2ecbc90e5e98e66b5 /src/map/homunculus.c
parent1fe63a8d4b286a4d7981b96882dab495c57dffc6 (diff)
parent5ac507e88e116e6a11185beace600bde8896c534 (diff)
downloadhercules-cd04fd96954ccb9fbbe33d05ad1eb3e2f7ce98c5.tar.gz
hercules-cd04fd96954ccb9fbbe33d05ad1eb3e2f7ce98c5.tar.bz2
hercules-cd04fd96954ccb9fbbe33d05ad1eb3e2f7ce98c5.tar.xz
hercules-cd04fd96954ccb9fbbe33d05ad1eb3e2f7ce98c5.zip
Merge pull request #2507 from Emistry/homun_exp
Update Homunculus obtain EXP from master
Diffstat (limited to 'src/map/homunculus.c')
-rw-r--r--src/map/homunculus.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/homunculus.c b/src/map/homunculus.c
index f3a4c559a..d3e815872 100644
--- a/src/map/homunculus.c
+++ b/src/map/homunculus.c
@@ -552,6 +552,12 @@ static int homunculus_gainexp(struct homun_data *hd, unsigned int exp)
hd->homunculus.exp += exp;
+ if (hd->master->state.showexp && hd->exp_next > 0) {
+ char output[256];
+ sprintf(output, "Homunculus Experience Gained Base:%u (%.2f%%)", exp, ((float)exp / (float)hd->exp_next * (float)100));
+ clif_disp_onlyself(hd->master, output);
+ }
+
if(hd->homunculus.exp < hd->exp_next) {
clif->hominfo(hd->master,hd,0);
return 0;