Spellbook Injector V2

This mod was originally developed and released by user r3m on Mod the Sims, and is required by many spell mods. However,
it began to throw exceptions some time ago, and r3m apparently hasn't been logged in since late 2019. Since I liked this
mod, and the many custom spells that rely on it, I decided to fix the errors that users have been experiencing with it.

Preamble aside, here's most of the original description of this mod from r3m's
posting, since I can't improve on it, updated for V2.

=======================================================================================================================

Mod Overview

The Spellbook Injector is a utility mod that loads custom spells into the game. These spells won't override any EAxian
tuning, which ensures that creations from different modders will be compatible! If you've downloaded a custom spell,
and it says it requires the Spellbook Injector, this is the mod you need.

If you're a modder interested in making new spells for Spellcasters, then this is also for you! The Spellbook Injector
will take care of all the scripting required to inject a new spell, so you don't have to worry about maintaining a Python
script. Instead you can focus on the tuning of you spell. For more details and documentation about developing your own
spells, see r3m's original posting linked below.

Features

Below is a list of what the Spellbook Injector (V2) actually does:
    * Injects spells developed by modders to the spellbook
    * Allows injected spells to be learned randomly through one of the following interactions:
        * "Ask to Teach Spell"
        * "Duel for Knowledge"
        * "Practice Magic"
    * Makes custom magic tomes findable through the "Search for Tomes" interaction
    * Unlocks custom spells for newly generated Sages
    * Allows injection of potential outcomes that result from the Curse of Scrambled Spells
    * Allows injection of interactions that are exclusive to spellcasters

Installation & Testing

r3m_spellbook_injector_V2.zip is the main download meant for users. Extract the zip file, and put the files inside your
Mods folder (no more than one 1 folder deep).

Version 2 Notes

This fix is compatible with all spells that were written for V1 of the Spellbook Injector, as the changes I made to fix
it were fairly minor. The main reason it's 'version 2' instead of 'version 1.0.4' is that somebody new is maintaining it.

There is one bit of functionality that has been disabled for the time being: making custom magic tomes purchasable from
Caster's Alley in the Magic Realm. Many users reported issues with being able to buy anything a the RoM market stalls
while V1 of this mod was installed, so I disabled that for now.

TO HELP ENSURE CONTINUE SUPPORT OF THIS MOD I have included the current Python source code within the .ts4script archive.
If I vanish too, hopefully another modder can pick it back up and continue supporting it. This mod lets us do some cool
things, and we should try to keep it around.

Original Spellbook Injector V1 Mod Posting by r3m:
https://modthesims.info/d/633665/the-spellbook-injector.html

Current Maintainer
https://www.patreon.com/SimsonianLibrary
