diff --git a/data/mods/Magiclysm/Spells/classless.json b/data/mods/Magiclysm/Spells/classless.json index a639cb008edfa..61569b81bb164 100644 --- a/data/mods/Magiclysm/Spells/classless.json +++ b/data/mods/Magiclysm/Spells/classless.json @@ -579,6 +579,28 @@ "energy_increment": 33.33, "base_casting_time": 100 }, + { + "id": "classless_restore_crystal_mana", + "//": "This spell does not have a corresponding Dabbler hobby because it's literally useless on its own.", + "type": "SPELL", + "name": "Mana Extraction", + "description": "Return crystallized mana into raw mana and absorb it, restoring some of your mana. The process is slow and not very efficient, but it's easier to transport than mana potions.", + "message": "You slowly crush the crystallized mana and as it flares into a burst of light, absorb the now-free mana.", + "valid_targets": [ "self" ], + "flags": [ "RESTORATION_SPELL", "CONCENTRATE", "SOMATIC", "NO_LEGS", "RANDOM_DAMAGE" ], + "effect": "recover_energy", + "effect_str": "MANA", + "shape": "blast", + "components": "spell_components_restore_crystal_mana", + "difficulty": 3, + "max_level": 10, + "min_damage": { "math": [ "(u_spell_level('classless_restore_crystal_mana') * 10) + 50" ] }, + "max_damage": { "math": [ "(u_spell_level('classless_restore_crystal_mana') * 30) + 150" ] }, + "energy_source": "MANA", + "extra_effects": [ { "id": "eoc_restoration_setup", "hit_self": true } ], + "base_energy_cost": 0, + "base_casting_time": 12000 + }, { "id": "eoc_evocation_setup", "type": "SPELL", diff --git a/data/mods/Magiclysm/itemgroups/itemgroups.json b/data/mods/Magiclysm/itemgroups/itemgroups.json index d78ec8ca06a3b..c3aec1bde3ef3 100644 --- a/data/mods/Magiclysm/itemgroups/itemgroups.json +++ b/data/mods/Magiclysm/itemgroups/itemgroups.json @@ -1583,6 +1583,7 @@ { "item": "spell_scroll_ethereal_grasp", "prob": 50 }, { "item": "spell_scroll_crystallize_mana", "prob": 50 }, { "item": "spell_scroll_blinding_flash", "prob": 50 }, + { "item": "spell_scroll_classless_restore_crystal_mana", "prob": 40 }, { "item": "spell_scroll_classless_clean_clothing_and_self", "prob": 50 }, { "item": "spell_scroll_classless_easy_sleep_spell", "prob": 50 } ], diff --git a/data/mods/Magiclysm/itemgroups/spellbooks.json b/data/mods/Magiclysm/itemgroups/spellbooks.json index 977bde4c0e986..1bdb95da8185b 100644 --- a/data/mods/Magiclysm/itemgroups/spellbooks.json +++ b/data/mods/Magiclysm/itemgroups/spellbooks.json @@ -38,6 +38,7 @@ [ "spell_scroll_classless_watch_spell", 30 ], [ "spell_scroll_classless_clean_clothing_and_self", 75 ], [ "spell_scroll_classless_easy_sleep_spell", 45 ], + [ "spell_scroll_classless_restore_crystal_mana", 35 ], [ "spell_scroll_disruption_bolt", 50 ], [ "spell_scroll_shocking_lash", 50 ], [ "spell_scroll_electric_arts", 50 ], diff --git a/data/mods/Magiclysm/items/spell_scrolls.json b/data/mods/Magiclysm/items/spell_scrolls.json index 4ecbcf20cb5ea..744cf60b2be07 100644 --- a/data/mods/Magiclysm/items/spell_scrolls.json +++ b/data/mods/Magiclysm/items/spell_scrolls.json @@ -2094,5 +2094,14 @@ "name": { "str": "Scroll of Faerie Fire", "str_pl": "Scrolls of Faerie Fire" }, "description": "Limn the target in a soft green or blue light. Great at parties.", "use_action": { "type": "learn_spell", "spells": [ "magus_light_target" ] } + }, + { + "type": "BOOK", + "copy-from": "spell_scroll", + "id": "spell_scroll_classless_restore_crystal_mana", + "//": "Classless spell", + "name": { "str": "Scroll of Mana Extraction", "str_pl": "Scrolls of Mana Extraction" }, + "description": "Turn crystallized mana back into mana you can use. Doing that repeatedly is a great way to make huge quatities of mana vanish into the Aethereum.", + "use_action": { "type": "learn_spell", "spells": [ "classless_restore_crystal_mana" ] } } ] diff --git a/data/mods/Magiclysm/items/spellbooks.json b/data/mods/Magiclysm/items/spellbooks.json index cc2a5843f1a8f..b26f872d54d92 100644 --- a/data/mods/Magiclysm/items/spellbooks.json +++ b/data/mods/Magiclysm/items/spellbooks.json @@ -379,7 +379,7 @@ "category": "manuals", "name": { "str": "The Utility of Mana as an Energy Source", "str_pl": "copies of The Utility of Mana as an Energy Source" }, "description": "This book details spells that use your mana to recover various physiological effects.", - "//": "1 technomancer, 2 animist, 1 druid, 1 earthshaper spell", + "//": "1 classless, 1 technomancer, 2 animist, 1 druid, 1 earthshaper spell", "weight": "728 g", "volume": "3 L", "price": "50 USD", @@ -390,6 +390,7 @@ "use_action": { "type": "learn_spell", "spells": [ + "classless_restore_crystal_mana", "recover_mana", "recover_bionic_power", "recover_pain", @@ -1010,7 +1011,7 @@ "type": "BOOK", "category": "manuals", "name": { "str": "The Limitations of the Mana Economy", "str_pl": "copies of The Limitations of the Mana Economy" }, - "//": "1 Classless spell", + "//": "2 Classless spells", "description": "A study of the inherent non-scalability of magical solutions to problems, touching on the difficulty of producing crystallized mana in the quantities needed for industrial use, the long time period necessary for magical materials like orichalcum, mithril, or crimsonite to reach reliability, the way that earthshaping and druidism specifically require wilderness for some of their spells, and the way that an average mage exhausts their mana pool within fifteen minutes of working on any major project without extensive study and training.", "weight": "1728 g", "volume": "3 L", @@ -1019,7 +1020,7 @@ "looks_like": "cookbook", "symbol": "?", "color": "white", - "use_action": { "type": "learn_spell", "spells": [ "crystallize_mana" ] } + "use_action": { "type": "learn_spell", "spells": [ "classless_restore_crystal_mana", "crystallize_mana" ] } }, { "id": "special_effects_spellbook", diff --git a/data/mods/Magiclysm/requirements/spell_components.json b/data/mods/Magiclysm/requirements/spell_components.json index b8003edf40952..992e8ee8fc1c2 100644 --- a/data/mods/Magiclysm/requirements/spell_components.json +++ b/data/mods/Magiclysm/requirements/spell_components.json @@ -294,5 +294,11 @@ "//": "Lens, chisel, and mana focus for the Zoom Lens spell", "qualities": [ { "id": "CHISEL", "level": 3 }, { "id": "MANA_FOCUS", "level": 1 } ], "components": [ [ [ "lens", 1 ] ] ] + }, + { + "id": "spell_components_restore_crystal_mana", + "type": "requirement", + "//": "Crystallized mana for the Mana Extraction spell", + "components": [ [ [ "crystallized_mana", 5 ] ] ] } ]