diff options
Diffstat (limited to 'src/map/pet.h')
-rw-r--r-- | src/map/pet.h | 138 |
1 files changed, 69 insertions, 69 deletions
diff --git a/src/map/pet.h b/src/map/pet.h index b4ccf5ccb..365a4490f 100644 --- a/src/map/pet.h +++ b/src/map/pet.h @@ -1,69 +1,69 @@ -// $Id: pet.h,v 1.2 2004/09/25 05:32:18 MouseJstr Exp $
-#ifndef _PET_H_
-#define _PET_H_
-
-#define MAX_PET_DB 100
-#define PETLOOT_SIZE 20 // [Valaris]
-
-struct pet_db {
- int class;
- char name[24],jname[24];
- int itemID;
- int EggID;
- int AcceID;
- int FoodID;
- int fullness;
- int hungry_delay;
- int r_hungry;
- int r_full;
- int intimate;
- int die;
- int capture;
- int speed;
- char s_perfor;
- int talk_convert_class;
- int attack_rate;
- int defence_attack_rate;
- int change_target_rate;
- char *script;
-};
-extern struct pet_db pet_db[MAX_PET_DB];
-
-enum { PET_CLASS,PET_CATCH,PET_EGG,PET_EQUIP,PET_FOOD };
-
-int pet_hungry_val(struct map_session_data *sd);
-int pet_target_check(struct map_session_data *sd,struct block_list *bl,int type);
-int pet_stopattack(struct pet_data *pd);
-int pet_changestate(struct pet_data *pd,int state,int type);
-int pet_walktoxy(struct pet_data *pd,int x,int y);
-int pet_stop_walking(struct pet_data *pd,int type);
-int search_petDB_index(int key,int type);
-int pet_hungry_timer_delete(struct map_session_data *sd);
-int pet_remove_map(struct map_session_data *sd);
-int pet_data_init(struct map_session_data *sd);
-int pet_birth_process(struct map_session_data *sd);
-int pet_recv_petdata(int account_id,struct s_pet *p,int flag);
-int pet_select_egg(struct map_session_data *sd,short egg_index);
-int pet_catch_process1(struct map_session_data *sd,int target_class);
-int pet_catch_process2(struct map_session_data *sd,int target_id);
-int pet_get_egg(int account_id,int pet_id,int flag);
-int pet_menu(struct map_session_data *sd,int menunum);
-int pet_change_name(struct map_session_data *sd,char *name);
-int pet_equipitem(struct map_session_data *sd,int index);
-int pet_unequipitem(struct map_session_data *sd);
-int pet_food(struct map_session_data *sd);
-int pet_lootitem_drop(struct pet_data *pd,struct map_session_data *sd);
-int pet_delay_item_drop2(int tid,unsigned int tick,int id,int data);
-int pet_ai_sub_hard_lootsearch(struct block_list *bl,va_list ap);
-int pet_skill_bonus(struct map_session_data *sd,struct pet_data *pd,int type,int val,int duration,int timer,int data);
-int pet_skill_bonus_timer(int tid,unsigned int tick,int id,int data); // [Valaris]
-int pet_skill_bonus_duration(int tid,unsigned int tick,int id,int data); // [Valaris]
-int pet_recovery_timer(int tid,unsigned int tick,int id,int data); // [Valaris]
-int pet_mag_timer(int tid,unsigned int tick,int id,int data); // [Valaris]
-int pet_heal_timer(int tid,unsigned int tick,int id,int data); // [Valaris]
-int pet_skillattack_timer(int tid,unsigned int tick,int id,int data); // [Valaris]
-
-int do_init_pet(void);
-
-#endif
-
+// $Id: pet.h,v 1.2 2004/09/25 05:32:18 MouseJstr Exp $ +#ifndef _PET_H_ +#define _PET_H_ + +#define MAX_PET_DB 100 +#define PETLOOT_SIZE 20 // [Valaris] + +struct pet_db { + int class; + char name[24],jname[24]; + int itemID; + int EggID; + int AcceID; + int FoodID; + int fullness; + int hungry_delay; + int r_hungry; + int r_full; + int intimate; + int die; + int capture; + int speed; + char s_perfor; + int talk_convert_class; + int attack_rate; + int defence_attack_rate; + int change_target_rate; + char *script; +}; +extern struct pet_db pet_db[MAX_PET_DB]; + +enum { PET_CLASS,PET_CATCH,PET_EGG,PET_EQUIP,PET_FOOD }; + +int pet_hungry_val(struct map_session_data *sd); +int pet_target_check(struct map_session_data *sd,struct block_list *bl,int type); +int pet_stopattack(struct pet_data *pd); +int pet_changestate(struct pet_data *pd,int state,int type); +int pet_walktoxy(struct pet_data *pd,int x,int y); +int pet_stop_walking(struct pet_data *pd,int type); +int search_petDB_index(int key,int type); +int pet_hungry_timer_delete(struct map_session_data *sd); +int pet_remove_map(struct map_session_data *sd); +int pet_data_init(struct map_session_data *sd); +int pet_birth_process(struct map_session_data *sd); +int pet_recv_petdata(int account_id,struct s_pet *p,int flag); +int pet_select_egg(struct map_session_data *sd,short egg_index); +int pet_catch_process1(struct map_session_data *sd,int target_class); +int pet_catch_process2(struct map_session_data *sd,int target_id); +int pet_get_egg(int account_id,int pet_id,int flag); +int pet_menu(struct map_session_data *sd,int menunum); +int pet_change_name(struct map_session_data *sd,char *name); +int pet_equipitem(struct map_session_data *sd,int index); +int pet_unequipitem(struct map_session_data *sd); +int pet_food(struct map_session_data *sd); +int pet_lootitem_drop(struct pet_data *pd,struct map_session_data *sd); +int pet_delay_item_drop2(int tid,unsigned int tick,int id,int data); +int pet_ai_sub_hard_lootsearch(struct block_list *bl,va_list ap); +int pet_skill_bonus(struct map_session_data *sd,struct pet_data *pd,int type,int val,int duration,int timer,int data); +int pet_skill_bonus_timer(int tid,unsigned int tick,int id,int data); // [Valaris] +int pet_skill_bonus_duration(int tid,unsigned int tick,int id,int data); // [Valaris] +int pet_recovery_timer(int tid,unsigned int tick,int id,int data); // [Valaris] +int pet_mag_timer(int tid,unsigned int tick,int id,int data); // [Valaris] +int pet_heal_timer(int tid,unsigned int tick,int id,int data); // [Valaris] +int pet_skillattack_timer(int tid,unsigned int tick,int id,int data); // [Valaris] + +int do_init_pet(void); + +#endif + |