diff options
author | Haru <haru@dotalux.com> | 2016-03-11 12:18:19 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-03-11 12:18:19 +0100 |
commit | 7574d51be691d78217dfeb0d81a2ae93e985e92d (patch) | |
tree | 0318c061a56cc3a7a938eeecfd1901720e40ec84 /src/map/pet.c | |
parent | fa1459d521bab6c33a57bfa25a66855e3df521f0 (diff) | |
parent | ca5f133a7c57854e3f02acdb616d3c14e21bcf6b (diff) | |
download | hercules-7574d51be691d78217dfeb0d81a2ae93e985e92d.tar.gz hercules-7574d51be691d78217dfeb0d81a2ae93e985e92d.tar.bz2 hercules-7574d51be691d78217dfeb0d81a2ae93e985e92d.tar.xz hercules-7574d51be691d78217dfeb0d81a2ae93e985e92d.zip |
Merge pull request #1192 from 4144/extendlog
Add new logging types.
Diffstat (limited to 'src/map/pet.c')
-rw-r--r-- | src/map/pet.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/pet.c b/src/map/pet.c index 256324d29..e2b257e10 100644 --- a/src/map/pet.c +++ b/src/map/pet.c @@ -317,7 +317,7 @@ int pet_return_egg(struct map_session_data *sd, struct pet_data *pd) tmp_item.card[1] = GetWord(pd->pet.pet_id,0); tmp_item.card[2] = GetWord(pd->pet.pet_id,1); tmp_item.card[3] = pd->pet.rename_flag; - if((flag = pc->additem(sd,&tmp_item,1,LOG_TYPE_OTHER))) { + if((flag = pc->additem(sd,&tmp_item,1,LOG_TYPE_EGG))) { clif->additem(sd,0,0,flag); map->addflooritem(&sd->bl, &tmp_item, 1, sd->bl.m, sd->bl.x, sd->bl.y, 0, 0, 0, 0); } @@ -464,7 +464,7 @@ int pet_recv_petdata(int account_id,struct s_pet *p,int flag) { return 1; } if (!pet->birth_process(sd,p)) //Pet hatched. Delete egg. - pc->delitem(sd, i, 1, 0, DELITEM_NORMAL, LOG_TYPE_OTHER); + pc->delitem(sd, i, 1, 0, DELITEM_NORMAL, LOG_TYPE_EGG); } else { pet->data_init(sd,p); if(sd->pd && sd->bl.prev != NULL) { @@ -703,7 +703,7 @@ int pet_equipitem(struct map_session_data *sd,int index) { return 1; } - pc->delitem(sd, index, 1, 0, DELITEM_NORMAL, LOG_TYPE_OTHER); + pc->delitem(sd, index, 1, 0, DELITEM_NORMAL, LOG_TYPE_CONSUME); pd->pet.equip = nameid; status->set_viewdata(&pd->bl, pd->pet.class_); //Updates view_data. clif->send_petdata(NULL, sd->pd, 3, sd->pd->vd.head_bottom); @@ -734,7 +734,7 @@ int pet_unequipitem(struct map_session_data *sd, struct pet_data *pd) { memset(&tmp_item,0,sizeof(tmp_item)); tmp_item.nameid = nameid; tmp_item.identify = 1; - if((flag = pc->additem(sd,&tmp_item,1,LOG_TYPE_OTHER))) { + if((flag = pc->additem(sd,&tmp_item,1,LOG_TYPE_CONSUME))) { clif->additem(sd,0,0,flag); map->addflooritem(&sd->bl, &tmp_item, 1, sd->bl.m, sd->bl.x, sd->bl.y, 0, 0, 0, 0); } |