Skip to content

Commit

Permalink
🐛 Fix dice roller paths for books and adventures
Browse files Browse the repository at this point in the history
  • Loading branch information
ebullient committed Feb 17, 2024
1 parent 5ecf9a4 commit 8bc6519
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit 8bc6519

Please sign in to comment.