diff options
author | Haru <haru@dotalux.com> | 2019-07-28 21:29:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-28 21:29:47 +0200 |
commit | cd04fd96954ccb9fbbe33d05ad1eb3e2f7ce98c5 (patch) | |
tree | f5af9a63a5158dc890b3b5a2ecbc90e5e98e66b5 /src/map/homunculus.c | |
parent | 1fe63a8d4b286a4d7981b96882dab495c57dffc6 (diff) | |
parent | 5ac507e88e116e6a11185beace600bde8896c534 (diff) | |
download | hercules-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.c | 6 |
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; |