summaryrefslogtreecommitdiff
path: root/src/map/mob.h
diff options
context:
space:
mode:
authorHaruna <haru@dotalux.com>2015-10-20 01:04:55 +0200
committerHaruna <haru@dotalux.com>2015-10-20 01:04:55 +0200
commit8547f799e5c395edf2f4e838889b7006e4320820 (patch)
tree1045b65e86b00ebbf6ef57b5c80542b3a3215179 /src/map/mob.h
parentcffb68c6ee66227327e128f86cde8aa843e273d6 (diff)
parent06ccf37fe3cf52fd45a18a55eec78f47844b7efe (diff)
downloadhercules-8547f799e5c395edf2f4e838889b7006e4320820.tar.gz
hercules-8547f799e5c395edf2f4e838889b7006e4320820.tar.bz2
hercules-8547f799e5c395edf2f4e838889b7006e4320820.tar.xz
hercules-8547f799e5c395edf2f4e838889b7006e4320820.zip
Merge pull request #778 from 4144/mobdb
Convert mob_db from txt to conf format.
Diffstat (limited to 'src/map/mob.h')
-rw-r--r--src/map/mob.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/map/mob.h b/src/map/mob.h
index bb26258c6..c20453cde 100644
--- a/src/map/mob.h
+++ b/src/map/mob.h
@@ -363,10 +363,16 @@ struct mob_interface {
int (*clone_delete) (struct mob_data *md);
unsigned int (*drop_adjust) (int baserate, int rate_adjust, unsigned short rate_min, unsigned short rate_max);
void (*item_dropratio_adjust) (int nameid, int mob_id, int *rate_adjust);
- bool (*parse_dbrow) (char **str);
- bool (*readdb_sub) (char *fields[], int columns, int current);
void (*readdb) (void);
- int (*read_sqldb) (void);
+ bool (*lookup_const) (const config_setting_t *it, const char *name, int *value);
+ bool (*get_const) (const config_setting_t *it, int *value);
+ int (*read_libconfig) (const char *filename);
+ void (*read_db_additional_fields) (struct mob_db *entry, int class_, config_setting_t *it, int n, const char *source);
+ bool (*read_db_sub) (config_setting_t *mobt, int id, const char *source);
+ void (*read_db_drops_sub) (struct mob_db *entry, struct status_data *mstatus, int class_, config_setting_t *t);
+ void (*read_db_mvpdrops_sub) (struct mob_db *entry, struct status_data *mstatus, int class_, config_setting_t *t);
+ int (*read_db_mode_sub) (struct mob_db *entry, struct status_data *mstatus, int class_, config_setting_t *t);
+ void (*read_db_stats_sub) (struct mob_db *entry, struct status_data *mstatus, int class_, config_setting_t *t);
void (*name_constants) (void);
bool (*readdb_mobavail) (char *str[], int columns, int current);
int (*read_randommonster) (void);