diff options
author | Haru <haru@dotalux.com> | 2017-12-08 17:38:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-08 17:38:21 +0100 |
commit | 85b71be7fd1134de6b45f9510006b84dc39975ac (patch) | |
tree | 274df4073757d0cbf04701af7c2ac4e7b3afc827 /src/map/homunculus.c | |
parent | 52abec06442607fca319a8309d26674871b25b53 (diff) | |
parent | 952855644c1deaf2dc7d7880bcd14126e2d5f6bd (diff) | |
download | hercules-85b71be7fd1134de6b45f9510006b84dc39975ac.tar.gz hercules-85b71be7fd1134de6b45f9510006b84dc39975ac.tar.bz2 hercules-85b71be7fd1134de6b45f9510006b84dc39975ac.tar.xz hercules-85b71be7fd1134de6b45f9510006b84dc39975ac.zip |
Merge pull request #1898 from Asheraf/homunaf
implement homunculus autofeeding for 2017 clients
Diffstat (limited to 'src/map/homunculus.c')
-rw-r--r-- | src/map/homunculus.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/map/homunculus.c b/src/map/homunculus.c index ddaf3443a..9f5756885 100644 --- a/src/map/homunculus.c +++ b/src/map/homunculus.c @@ -683,7 +683,12 @@ int homunculus_hunger_timer(int tid, int64 tick, int id, intptr_t data) { } else if(hd->homunculus.hunger == 75) { clif->emotion(&hd->bl, E_OK); } - + if (battle_config.feature_enable_homun_autofeed != 0) { + if (hd->homunculus.autofeed) { + if (hd->homunculus.hunger < 30) + homun->feed(sd, hd); + } + } if(hd->homunculus.hunger < 0) { hd->homunculus.hunger = 0; // Delete the homunculus if intimacy <= 100 |