From d2b8463b7d2b64ab122e86b2f9e44cba0b680caf Mon Sep 17 00:00:00 2001 From: Guilherme Menaldo Date: Thu, 30 May 2019 21:57:18 -0300 Subject: Adds Option DB and Option Drop Groups DB to be loaded on minimal mode --- src/map/itemdb.c | 3 ++- 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; } -- cgit v1.2.3-60-g2f50