Skip to content

Commit

Permalink
chore: remove "allSourcesIncludeHomebrew" option
Browse files Browse the repository at this point in the history
Thanks @ darthbeep
  • Loading branch information
TheGiddyLimit committed Jan 9, 2022
1 parent 2dd8caa commit f861935
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
5 changes: 0 additions & 5 deletions js/5etools-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,6 @@ function tools5eConfig () {
"default": false,
"_type": "boolean",
},
"allSourcesIncludeHomebrew": {
"name": `Include Homebrew in "Import Monsters From All Sources" List (Warning: Slow)`,
"default": false,
"_type": "boolean",
},
"importIntervalHandout": {
"name": "Rest Time between Each Handout (msec)",
"default": 100,
Expand Down
4 changes: 0 additions & 4 deletions js/5etools-monsters.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,6 @@ function d20plusMonsters () {
.filter(src => !(SourceUtil.isNonstandardSource(src) && filterUnofficial))
.map(src => d20plus.monsters.formMonsterUrl(monsterDataUrls[src]));

if (d20plus.cfg.getOrDefault("import", "allSourcesIncludeHomebrew")) {
monsterBrewDataUrls.forEach(it => toLoad.push(it.url));
}

if (toLoad.length) {
const dataStack = (await Promise.all(toLoad.map(async url => DataUtil.loadJSON(url)))).flat();

Expand Down

0 comments on commit f861935

Please sign in to comment.