summaryrefslogtreecommitdiff
path: root/src/map/homunculus.c
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-08-24 15:51:33 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-08-24 15:51:33 +0000
commit81601053b3df92c13a9bc0bd679b49369b2cf788 (patch)
tree102930f123aa52abf9d46ec20056746cca2d0411 /src/map/homunculus.c
parent6612269d2706ca08d9b174f292671a024724e6a3 (diff)
downloadhercules-81601053b3df92c13a9bc0bd679b49369b2cf788.tar.gz
hercules-81601053b3df92c13a9bc0bd679b49369b2cf788.tar.bz2
hercules-81601053b3df92c13a9bc0bd679b49369b2cf788.tar.xz
hercules-81601053b3df92c13a9bc0bd679b49369b2cf788.zip
- Ops!! this is mine (homunculus hungry messages).
- Fixed a bug on char delete. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13123 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/homunculus.c')
-rw-r--r--src/map/homunculus.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/map/homunculus.c b/src/map/homunculus.c
index 454d56e57..d6832e84a 100644
--- a/src/map/homunculus.c
+++ b/src/map/homunculus.c
@@ -487,8 +487,6 @@ static int merc_hom_hungry(int tid, unsigned int tick, int id, intptr data)
{
struct map_session_data *sd;
struct homun_data *hd;
- char mes[255];
- bool talk = true;
sd=map_id2sd(id);
if(!sd)
@@ -507,18 +505,13 @@ static int merc_hom_hungry(int tid, unsigned int tick, int id, intptr data)
hd->homunculus.hunger-- ;
if(hd->homunculus.hunger <= 10) {
clif_emotion(&hd->bl, 6) ; //an
- snprintf(mes, sizeof mes,"%s : Tengo mucha hambre...",hd->homunculus.name);
} else if(hd->homunculus.hunger == 25) {
clif_emotion(&hd->bl, 20) ; //hmm
- snprintf(mes, sizeof mes,"%s : Tengo hambre...",hd->homunculus.name);
} else if(hd->homunculus.hunger == 75) {
clif_emotion(&hd->bl, 33) ; //ok
- snprintf(mes, sizeof mes,"%s : Tengo un poco de hambre...",hd->homunculus.name);
} else
talk = false;
- if( talk ) clif_message(&hd->bl, mes);
-
if(hd->homunculus.hunger < 0) {
hd->homunculus.hunger = 0;
// Delete the homunculus if intimacy <= 100