====== Spell Book ====== {{ rpd:images:spell_book_item.png|Spell Book }} The **Spell Book** is an artifact in Remixed Dungeon that contains a single magical spell. When read, it casts the contained spell, making it a one-time use item with variable effects depending on the specific spell contained. ==== Item Overview ==== * **Type:** [[rpd:artifact|Artifact]] * **Rarity:** Rare * **Special Effect:** Contains and casts a single magical spell * **Usage:** Read to cast the contained spell * **Price:** 500 [[rpd:gold|gold]] when identified ==== Special Mechanics ==== * **Variable Spell:** Contains a random spell from the game's spell collection * **One-Time Use:** Consumed upon reading * **Instant Casting:** Casts the contained spell immediately when read * **Spell Identification:** Becomes identified to reveal the contained spell * **Storage:** Stored in [[rpd:scrollholder_item|Scroll Holder]] like other reading items * **Flame Immune:** Cannot be destroyed by fire (unlike scrolls) ==== Strategy ==== * Use to cast powerful spells without spending mana * Provides access to spells you may not have learned yet * Good for emergency situations requiring specific magical effects * Identifying before use reveals the contained spell * Can be useful when mana is low ==== Obtaining ==== * Found in special containers throughout dungeon levels * May appear in shops that sell artifacts * Dropped by certain magic-oriented enemies * Sometimes found in secret rooms or special areas ==== Effect ==== When read, the Spell Book casts its contained spell without requiring the hero to have learned that spell or possess the required magic affinity. The specific effect depends on the spell contained within. According to the game's string resources: "It looks more like a compilation of assorted pages that were sewed together, than an actual book. You might be able to make something out of it if you'll pay enough attention." ==== Code References ==== * **Java Implementation:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/items/artifacts/SpellBook.java|SpellBook.java]] * **String Resources:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values/strings_all.xml#L2739-L2742|SpellBook_Name, SpellBook_Info, SpellBook_Info_Identified]] * **Spell System:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mechanics/spells/SpellFactory.java|SpellFactory.java]] * **Water of Transmutation:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/blobs/WaterOfTransmutation.java#L44-L45|WaterOfTransmutation.java#L44-L45]] (can be transmuted to another spellbook) ==== Related Items ==== * [[rpd:artifact|Artifacts]] - Other special artifacts in the game * [[rpd:scroll|Scrolls]] - Similar read-based items * [[rpd:spells|Spells]] - List of possible spells contained in spellbooks * [[rpd:wand_of_wonder_item|Wand of Wonder]] - Another item with random effects * [[rpd:scrollholder_item|Scroll Holder]] - Container to store spellbooks {{tag> rpd items artifacts magic spellbook spell}}