Intelligence-based Sorcerer & Warlock

"Some learn spellcraft through painstaking study. Others are born with the spark, and through fascination with it's beauty learn it's mastery. But others still are born either with a sorcerers' fire but no talents of expression, or as mundanes unable to accept their fate. Those of curiosity and intellect, who follow the trails of secret knowledge all the way to their mind-bending conclusions, become casters of both great innate power and the skills to acquire ever more..."

Intelligence-based sorcerers & warlocks learn the secrets of their abilities through the stolen spellbooks of wizards, in crumbling libraries, by dialogue (or interrogations) with more natural sorcerers, or even under the tutelage of dragons, fey, or fiends. Perhaps a true wizard acted as mentor, guiding you on the arcane path until their ways could teach you no more, or your interests in their methods where spent.

Except where specified (see below), this class functions identically to the sorcerer or warlock.

Primary Ability
You treat all instances of the word ' charisma ' under the class as 'intelligence ' (for example, the warlock uses intelligence as it's spellcasting ability, and has proficiency in intelligence & wisdom saves).

Spellbook
Although you use the sorcerer/warlock spell list, you may add wizard spells to it by copying found spells into a spellbook in a similar manner to a true wizard. All spells in your spellbook are on your spell list, and count as sorcerer/warlock spells for you. To to add a wizard spell, you must both be capable of casting that level of spell, and have the following:
 * Access to a spellbook or scroll with that spell inscribed, and

Provided you have access to your spellbook, you may select any spells within when you would learn a new sorcerer spell as you would any other spells on your list. Sorcerer spells you choose when leveling up are automatically added to your spellbook (provided you have access to it), just as for wizards choosing their new spells.
 * A spellbook of your own to transcribe it into. The cost to do so is 50gp per level of the spell, and either occurs during the training time taken to level-up (if also learning the spell as part of gaining a new spell known for leveling up in sorcerer), or 2 hours per spell level. The time taken can be non-consecutive, so long as you spend at least 1 hour each day learning the spell.

A warlock can use their book of shadows as a spellbook (and vice-versa), though a replacement book will not contain their previously transcribed spells.

See the wizard class for further details on spellbooks, including creating a backup. Note that you do not need to prepare spells and cannot ordinarily cast rituals - you require a spellbook only when choosing new spells known, or swapping them (see below).

Swapping Known Spells
Unlike your charisma-based cousins, you cannot swap one of your known spells out when you gain a level in this class. However, you may swap any known spell for any spell in your spellbook in a process that takes 1 hour and 50gp in rare and arcane ingredients per level of the desired spell. The time taken must be consecutive, broken only by eating, sleeping etc.