Skip to content

Commit

Permalink
Add non-default option to assume that any BOOK with a script on it is…
Browse files Browse the repository at this point in the history
… a quest book. Will help with quest detection on mod books.
  • Loading branch information
KJack committed May 11, 2021
1 parent 93efdef commit 44e8c70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion BookSmart/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public static List<string> CreateQuestBookCache(IPatcherState<ISkyrimMod, ISkyri
{
foreach (var script in book.VirtualMachineAdapter.Scripts)
{
if (script.Name.Contains("Quest", StringComparison.OrdinalIgnoreCase))
if (script.Name.Contains("Quest", StringComparison.OrdinalIgnoreCase) || settings.assumeBookScriptsAreQuests)
{
Console.WriteLine($"{book.FormKey}: '{book.Name}' has a quest script called '{script.Name}'.");
isBookQuestRealted = true;
Expand Down
4 changes: 4 additions & 0 deletions BookSmart/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ class Settings
[SynthesisTooltip("Add a quest tag to the book name if the book is used in a quest.")]
public bool addQuestLabels = true;

[SynthesisOrder]
[SynthesisTooltip("Assumes that any BOOK with a script on it is a quest book. May incorrectly mark some books. Will improve detection for mod books that use their own scripts.")]
public bool assumeBookScriptsAreQuests = false;

// Label Position
public enum LabelPosition
{
Expand Down

0 comments on commit 44e8c70

Please sign in to comment.