From 8bc651914eddcab5b0f86d2dea5864e9adb07edd Mon Sep 17 00:00:00 2001 From: Erin Schnabel Date: Sat, 17 Feb 2024 11:35:00 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20dice=20roller=20paths=20fo?= =?UTF-8?q?r=20books=20and=20adventures?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ebullient/convert/tools/dnd5e/qute/Tools5eQuteBase.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/dev/ebullient/convert/tools/dnd5e/qute/Tools5eQuteBase.java b/src/main/java/dev/ebullient/convert/tools/dnd5e/qute/Tools5eQuteBase.java index 3e9fd06df..b29dbc10e 100644 --- a/src/main/java/dev/ebullient/convert/tools/dnd5e/qute/Tools5eQuteBase.java +++ b/src/main/java/dev/ebullient/convert/tools/dnd5e/qute/Tools5eQuteBase.java @@ -35,7 +35,10 @@ public static String fixFileName(String name, Tools5eSources sources) { } public static String fixFileName(String name, String source, Tools5eIndexType type) { - if (type == Tools5eIndexType.adventureData || type == Tools5eIndexType.bookData) { + if (type == Tools5eIndexType.adventureData + || type == Tools5eIndexType.adventure + || type == Tools5eIndexType.book + || type == Tools5eIndexType.bookData) { return name; // file name is based on chapter, etc. } name = Tui.slugify(name.replaceAll(" \\(\\*\\)", "-gv"));