diff options
author | shennetsind <shennetsind@users.noreply.github.com> | 2013-11-06 15:10:38 -0800 |
---|---|---|
committer | shennetsind <shennetsind@users.noreply.github.com> | 2013-11-06 15:10:38 -0800 |
commit | 87d7348396af97428638723ae49ca2ff166e4acd (patch) | |
tree | f9cebecab0aaf281a8ebb5405648fe8d0b731ecb /src/map/itemdb.c | |
parent | 7d1bbde0046ee7520c907e090f1b4087eb713172 (diff) | |
parent | 4fbe8e2a270997b02e2e002074259e4648ac0031 (diff) | |
download | hercules-87d7348396af97428638723ae49ca2ff166e4acd.tar.gz hercules-87d7348396af97428638723ae49ca2ff166e4acd.tar.bz2 hercules-87d7348396af97428638723ae49ca2ff166e4acd.tar.xz hercules-87d7348396af97428638723ae49ca2ff166e4acd.zip |
Merge pull request #217 from HerculesWS/script-checker
Introducing the Hercules Standalone Script Syntax Checker
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r-- | src/map/itemdb.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c index 8dd6e9d9d..d7d117574 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -1927,7 +1927,7 @@ int itemdb_uid_load() { /*==================================== * read all item-related databases *------------------------------------*/ -void itemdb_read(void) { +void itemdb_read(bool minimal) { int i; DBData prev; @@ -1945,6 +1945,9 @@ void itemdb_read(void) { } } + if (minimal) + return; + itemdb->read_combos(); itemdb->read_groups(); itemdb->read_chains(); @@ -2065,7 +2068,7 @@ void itemdb_reload(void) { db_clear(itemdb->names); // read new data - itemdb->read(); + itemdb->read(false); //Epoque's awesome @reloaditemdb fix - thanks! [Ind] //- Fixes the need of a @reloadmobdb after a @reloaditemdb to re-link monster drop data @@ -2174,12 +2177,16 @@ void do_final_itemdb(void) { db_destroy(itemdb->names); } -void do_init_itemdb(void) { +void do_init_itemdb(bool minimal) { memset(itemdb->array, 0, sizeof(itemdb->array)); itemdb->other = idb_alloc(DB_OPT_BASE); itemdb->names = strdb_alloc(DB_OPT_BASE,ITEM_NAME_LENGTH); itemdb->create_dummy_data(); //Dummy data item. - itemdb->read(); + itemdb->read(minimal); + + if (minimal) + return; + clif->cashshop_load(); } void itemdb_defaults(void) { |