diff options
author | Guilherme Menaldo <guilherme.menaldo@outlook.com> | 2019-05-30 21:57:18 -0300 |
---|---|---|
committer | Guilherme Menaldo <guilherme.menaldo@outlook.com> | 2019-05-30 21:57:18 -0300 |
commit | d2b8463b7d2b64ab122e86b2f9e44cba0b680caf (patch) | |
tree | b28ba210c4563607b68ba81a37d9f027ee8351a9 | |
parent | 2fb175dcee88aa8d1e37380899992147fcd36604 (diff) | |
download | hercules-d2b8463b7d2b64ab122e86b2f9e44cba0b680caf.tar.gz hercules-d2b8463b7d2b64ab122e86b2f9e44cba0b680caf.tar.bz2 hercules-d2b8463b7d2b64ab122e86b2f9e44cba0b680caf.tar.xz hercules-d2b8463b7d2b64ab122e86b2f9e44cba0b680caf.zip |
Adds Option DB and Option Drop Groups DB to be loaded on minimal mode
-rw-r--r-- | src/map/itemdb.c | 3 | ||||
-rw-r--r-- | src/map/mob.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c index 11d778f8a..8caf88a4e 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -2449,6 +2449,8 @@ static void itemdb_read(bool minimal) itemdb->other->foreach(itemdb->other, itemdb->addname_sub); + itemdb->read_options(); + if (minimal) return; @@ -2458,7 +2460,6 @@ static void itemdb_read(bool minimal) itemdb->read_groups(); itemdb->read_chains(); itemdb->read_packages(); - itemdb->read_options(); } /** diff --git a/src/map/mob.c b/src/map/mob.c index aa938a1e7..8511f8523 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -5519,7 +5519,8 @@ static bool mob_readdb_itemratio(char *str[], int columns, int current) static void mob_load(bool minimal) { if (minimal) { - // Only read the mob db in minimal mode + // Only read the mob db and option drops in minimal mode + mob->read_optdrops_db(); mob->readdb(); return; } |