summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
authorAsheraf <acheraf1998@gmail.com>2018-04-03 17:15:02 +0100
committerAsheraf <acheraf1998@gmail.com>2018-04-07 21:59:20 +0100
commitd269ece7b9c4315b59dc5aac970362cc36139be3 (patch)
treee5d87743ec321e2531e8c33d56961be21bbeabbb /src/map/itemdb.c
parent6e0a40288326495b97e6e5a1435a624defb8ed92 (diff)
downloadhercules-d269ece7b9c4315b59dc5aac970362cc36139be3.tar.gz
hercules-d269ece7b9c4315b59dc5aac970362cc36139be3.tar.bz2
hercules-d269ece7b9c4315b59dc5aac970362cc36139be3.tar.xz
hercules-d269ece7b9c4315b59dc5aac970362cc36139be3.zip
Implementation of Attendance system
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r--src/map/itemdb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index 17a73400a..7f0ebb39c 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -2387,6 +2387,8 @@ void itemdb_read(bool minimal) {
if (minimal)
return;
+ itemdb->name_constants();
+
itemdb->read_combos();
itemdb->read_groups();
itemdb->read_chains();
@@ -2619,6 +2621,7 @@ void do_final_itemdb(void) {
itemdb->options->destroy(itemdb->options, itemdb->options_final_sub);
itemdb->destroy_item_data(&itemdb->dummy, 0);
db_destroy(itemdb->names);
+ VECTOR_CLEAR(clif->attendance_data);
}
void do_init_itemdb(bool minimal) {
@@ -2637,6 +2640,8 @@ void do_init_itemdb(bool minimal) {
/** it failed? we disable it **/
if (battle_config.feature_roulette == 1 && !clif->parse_roulette_db())
battle_config.feature_roulette = 0;
+ VECTOR_INIT(clif->attendance_data);
+ clif->pAttendanceDB();
}
void itemdb_defaults(void) {
itemdb = &itemdb_s;