Remove unreadPerCollection from the save and re-compute it directly in ImportFromLoreLibrary

Author Orionik <orionik.eso@gmail.com>
Author date 2022-06-05 15:08:03
Author local date 2022-06-05 17:08:03 +0200
Committer Orionik <orionik.eso@gmail.com>
Committer date 2022-06-05 15:08:03
Committer local date 2022-06-05 17:08:03 +0200
Commit 3f04626a07e001305a281907c07f61f77686f1db
Tree b1fa58c4eba18dea39f2adf511fdb354d13dbd2c
Parent f0cb5b32382e44e0990af65f352a85d26954ddfd
Remove unreadPerCollection from the save and re-compute it directly in ImportFromLoreLibrary
Because the "read" flag was in the account wide save, if you read a book from one character, the count in the other character was wrong
Anyway, computing it in the ImportFromLoreLibrary has a very small impact performance wise and it avoid potential issues with the save

Remove local variables in ImportFromLoreLibrary as it wasn't compatible with addon overriding these functions (like LoreLibrary)