kourendlibrary: add config to hide dark manuscripts

This commit is contained in:
Max Weber
2020-10-18 16:42:08 -06:00
parent 736e649e24
commit cfa6942678
2 changed files with 12 additions and 1 deletions

View File

@@ -63,6 +63,16 @@ public interface KourendLibraryConfig extends Config
return false;
}
@ConfigItem(
keyName = "hideDarkManuscript",
name = "Hide Dark Manuscript",
description = "Whether to hide Dark Manuscripts"
)
default boolean hideDarkManuscript()
{
return false;
}
@ConfigItem(
keyName = "showTutorialOverlay",
name = "Show tutorial overlay",

View File

@@ -127,7 +127,8 @@ class KourendLibraryOverlay extends Overlay
bookIsKnown = true;
}
if (book == Book.VARLAMORE_ENVOY && config.hideVarlamoreEnvoy())
if ((book == Book.VARLAMORE_ENVOY && config.hideVarlamoreEnvoy())
|| (book != null && book.isDarkManuscript() && config.hideDarkManuscript()))
{
continue;
}