summaryrefslogtreecommitdiff
path: root/src/map/pet.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-06-11 22:14:50 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-06-11 22:14:50 +0000
commitf24a3d43c43fc28c292cd7af10defae894aedc6d (patch)
tree3bdc85ce1e475a38440d155567587ee2ba59cfc0 /src/map/pet.c
parent15d0d129834b212fa00285afa412cbb38f97ca6b (diff)
downloadhercules-f24a3d43c43fc28c292cd7af10defae894aedc6d.tar.gz
hercules-f24a3d43c43fc28c292cd7af10defae894aedc6d.tar.bz2
hercules-f24a3d43c43fc28c292cd7af10defae894aedc6d.tar.xz
hercules-f24a3d43c43fc28c292cd7af10defae894aedc6d.zip
- Fixed pet equip not displaying correctly at all (closes topic:153753)
- Removed old fixpos packet (the 'new' one is way smaller) - Fixed some major logical typos in the code, cleaned up many places git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10746 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pet.c')
-rw-r--r--src/map/pet.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/map/pet.c b/src/map/pet.c
index 866d8ca67..22237279e 100644
--- a/src/map/pet.c
+++ b/src/map/pet.c
@@ -325,13 +325,13 @@ static int pet_performance(struct map_session_data *sd, struct pet_data *pd)
if (pd->pet.intimate > 900)
val = (pd->petDB->s_perfor > 0)? 4:3;
- else if(pd->pet.intimate > 750)
+ else if(pd->pet.intimate > 750) //TODO: this is way too high
val = 2;
else
val = 1;
pet_stop_walking(pd,2000<<8);
- clif_pet_performance(&pd->bl,rand()%val + 1);
+ clif_pet_performance(pd, rand()%val + 1);
pet_lootitem_drop(pd,NULL);
return 1;
}
@@ -556,7 +556,7 @@ int pet_catch_process2(struct map_session_data *sd,int target_id)
if (sd->menuskill_id != SA_TAMINGMONSTER)
{ //Exploit?
- clif_pet_rulet(sd,0);
+ clif_pet_roulette(sd,0);
sd->catch_target_class = -1;
return 1;
}
@@ -566,7 +566,7 @@ int pet_catch_process2(struct map_session_data *sd,int target_id)
i=pc_search_inventory(sd,sd->menuskill_lv);
if (i < 0)
{ //they tried an exploit?
- clif_pet_rulet(sd,0);
+ clif_pet_roulette(sd,0);
sd->catch_target_class = -1;
return 1;
}
@@ -584,7 +584,7 @@ int pet_catch_process2(struct map_session_data *sd,int target_id)
sd->catch_target_class = md->class_;
if(i < 0 || sd->catch_target_class != md->class_) {
clif_emotion(&md->bl, 7); //mob will do /ag if wrong lure is used on them.
- clif_pet_rulet(sd,0);
+ clif_pet_roulette(sd,0);
sd->catch_target_class = -1;
return 1;
}
@@ -597,16 +597,16 @@ int pet_catch_process2(struct map_session_data *sd,int target_id)
if(rand()%10000 < pet_catch_rate) {
unit_remove_map(&md->bl,0);
status_kill(&md->bl);
- clif_pet_rulet(sd,1);
+ clif_pet_roulette(sd,1);
// if(battle_config.etc_log)
-// printf("rulet success %d\n",target_id);
+// printf("roulette success %d\n",target_id);
intif_create_pet(sd->status.account_id,sd->status.char_id,pet_db[i].class_,mob_db(pet_db[i].class_)->lv,
pet_db[i].EggID,0,pet_db[i].intimate,100,0,1,pet_db[i].jname);
}
else
{
sd->catch_target_class = -1;
- clif_pet_rulet(sd,0);
+ clif_pet_roulette(sd,0);
}
return 0;