mirror of
https://github.com/Kornstalx/5etools-mirror-2.github.io.git
synced 2025-10-28 20:45:35 -05:00
v1.198.3
This commit is contained in:
@@ -37,7 +37,7 @@ class PageFilterRecipes extends PageFilter {
|
||||
});
|
||||
this._miscFilter = new Filter({
|
||||
header: "Miscellaneous",
|
||||
items: ["SRD"],
|
||||
items: ["SRD", "Legacy"],
|
||||
isMiscFilter: true,
|
||||
displayFn: PageFilterRecipes._miscTagToFull,
|
||||
});
|
||||
@@ -45,6 +45,7 @@ class PageFilterRecipes extends PageFilter {
|
||||
|
||||
static mutateForFilters (it) {
|
||||
it._fMisc = it.srd ? ["SRD"] : [];
|
||||
if (SourceUtil.isLegacySourceWotc(it.source)) it._fMisc.push("Legacy");
|
||||
if (it.miscTags) it._fMisc.push(...it.miscTags);
|
||||
it._fServes = (it.serves?.min != null && it.serves?.max != null) ? [it.serves.min, it.serves.max] : (it.serves?.exact ?? null);
|
||||
it._fDiet = it.diet ? PageFilterRecipes._DIET_TO_FULL[it.diet] || it.diet : null;
|
||||
|
||||
Reference in New Issue
Block a user