From f861935637664e109a7d3c66da67b9e129bdf5a1 Mon Sep 17 00:00:00 2001 From: TheGiddyLimit Date: Sun, 9 Jan 2022 17:30:57 +0000 Subject: [PATCH] chore: remove "allSourcesIncludeHomebrew" option Thanks @ darthbeep --- js/5etools-config.js | 5 ----- js/5etools-monsters.js | 4 ---- 2 files changed, 9 deletions(-) diff --git a/js/5etools-config.js b/js/5etools-config.js index 715e03a3..116bb00b 100644 --- a/js/5etools-config.js +++ b/js/5etools-config.js @@ -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, diff --git a/js/5etools-monsters.js b/js/5etools-monsters.js index 127db92d..35e90a80 100644 --- a/js/5etools-monsters.js +++ b/js/5etools-monsters.js @@ -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();