Updated API for Necrom (101038)

Orionik [06-06-23 - 04:59]
Updated API for Necrom (101038)
Fix book reader scene is now "loreReaderDefault" instead of "loreReaderInteraction"
Add back PlaySound when opening the reader (but it seems the bug is coming from eso as there is no sound when opening a book from the lore library since the update)
Filename
CHANGELOG
Librarian.lua
Librarian.txt
LibrarianDeprecation/LibrarianDeprecation.txt
diff --git a/CHANGELOG b/CHANGELOG
index b29cfda..bbfaf27 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,11 @@
 -------------------------------------------------------------------------------
 Librarian v3.0 2022-07-25
 -------------------------------------------------------------------------------
+3.9 2023-06-05
+- Updated API for Necrom (101038)
+- Fix book reader scene is now "loreReaderDefault" instead of "loreReaderInteraction"
+- Add back PlaySound when opening the reader (but it seems the bug is coming from eso as there is no sound when opening a book from the lore library since the update)
+
 3.8 2022-11-02
 - Updated API for Scribes of Fate (101037)

diff --git a/Librarian.lua b/Librarian.lua
index df0d467..da96481 100644
--- a/Librarian.lua
+++ b/Librarian.lua
@@ -156,9 +156,10 @@ function Librarian:ReadBook(data)
     else
         LORE_READER:SetupBook(data.title, data.body, data.medium, data.showTitle)
     end
-    SCENE_MANAGER:Push("loreReaderInteraction")

-    -- PlaySound(LORE_READER.OpenSound)
+    SCENE_MANAGER:Push("loreReaderDefault")
+
+    PlaySound(LORE_READER.OpenSound)
 end

 function Librarian:RefreshAllData()
@@ -167,7 +168,7 @@ function Librarian:RefreshAllData()
 end

 function Librarian.SlashCommand(args)
-    Librarian:Toggle()
+    LIBRARIAN:Toggle()
 end

 function Librarian.OnShowBook(eventCode, title, body, medium, showTitle, bookId)
diff --git a/Librarian.txt b/Librarian.txt
index 201792d..a88e9f6 100644
--- a/Librarian.txt
+++ b/Librarian.txt
@@ -1,7 +1,7 @@
 ## Title: Librarian
 ## Author: Orionik, |c4EFFF6Calia1120|r, Flamage
 ## Version: 1.0
-## APIVersion: 101037
+## APIVersion: 101038
 ## SavedVariables: Librarian_SavedVariables Librarian_SavedVariables_Backup
 ## DependsOn: LibAddonMenu-2.0 LibrarianDeprecation

diff --git a/LibrarianDeprecation/LibrarianDeprecation.txt b/LibrarianDeprecation/LibrarianDeprecation.txt
index 43834e3..91ff9cb 100644
--- a/LibrarianDeprecation/LibrarianDeprecation.txt
+++ b/LibrarianDeprecation/LibrarianDeprecation.txt
@@ -2,7 +2,7 @@
 ## Description: Store the save of "Librarian" before version 3 in a different file to avoid getting a save too big
 ## Author: Orionik
 ## Version: 1.0
-## APIVersion: 101035
+## APIVersion: 101038
 ## SavedVariables: LibrarianDeprecation_SavedVariables_Backup
 ## DisableSavedVariablesAutoSaving: 1
 ## IsLibrary: true