summaryrefslogtreecommitdiff
path: root/src/map/pet.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/pet.h')
-rw-r--r--src/map/pet.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/map/pet.h b/src/map/pet.h
index 537a50c4b..5c890ef85 100644
--- a/src/map/pet.h
+++ b/src/map/pet.h
@@ -2,11 +2,17 @@
// See the LICENSE file
// Portions Copyright (c) Athena Dev Teams
-#ifndef _MAP_PET_H_
-#define _MAP_PET_H_
+#ifndef MAP_PET_H
+#define MAP_PET_H
-#define MAX_PET_DB 300
-#define MAX_PETLOOT_SIZE 30
+#include "map.h" // struct block_list
+#include "status.h" // enum sc_type
+#include "unit.h" // struct unit_data
+#include "../common/cbasetypes.h"
+#include "../common/mmo.h" // NAME_LENGTH, struct s_pet
+
+#define MAX_PET_DB 300
+#define MAX_PETLOOT_SIZE 30
struct s_pet_db {
short class_;
@@ -127,7 +133,7 @@ struct pet_interface {
int (*select_egg) (struct map_session_data *sd, short egg_index);
int (*catch_process1) (struct map_session_data *sd, int target_class);
int (*catch_process2) (struct map_session_data *sd, int target_id);
- int (*get_egg) (int account_id, int pet_id, int flag);
+ bool (*get_egg) (int account_id, short pet_class, int pet_id );
int (*unequipitem) (struct map_session_data *sd, struct pet_data *pd);
int (*food) (struct map_session_data *sd, struct pet_data *pd);
int (*ai_sub_hard_lootsearch) (struct block_list *bl, va_list ap);
@@ -152,4 +158,4 @@ struct pet_interface *pet;
void pet_defaults(void);
-#endif /* _MAP_PET_H_ */
+#endif /* MAP_PET_H */