Skip to content
Permalink
Browse files

Merge pull request #2486 from guilherme-gm/minimal-loadoptions

Adds Option DB and Option Drop Groups DB to be loaded on minimal mode
  • Loading branch information...
MishimaHaruna committed Jun 2, 2019
2 parents 8226ed9 + d2b8463 commit d60605d1898d584e4ed527011ab65f35e2238b2f
Showing with 4 additions and 2 deletions.
  1. +2 −1 src/map/itemdb.c
  2. +2 −1 src/map/mob.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();
}

/**
@@ -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;
}

0 comments on commit d60605d

Please sign in to comment.
You can’t perform that action at this time.