Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Magiclysm] Technomancer Binoculars Spell #72251

Merged
merged 18 commits into from
Mar 13, 2024
47 changes: 47 additions & 0 deletions data/mods/Magiclysm/Spells/technomancer.json
Original file line number Diff line number Diff line change
Expand Up @@ -856,5 +856,52 @@
"true_eocs": [ { "id": "EOC_TECHNOMANCER_POWER_LINKAGE_ITEM", "effect": [ { "npc_set_flag": "USE_UPS" } ] } ]
}
]
},
{
"id": "technomancer_far_sight",
"type": "SPELL",
"name": "Zoom Lens",
"description": "By etching tiny runes on a lens of great quality and infusing it with their magic, the caster can use the lens to see further than even the finest mundane binoculars. Unfortunately, the arrangement is unstable and the lens will disintegrate after a time.",
"valid_targets": [ "self" ],
"effect": "spawn_item",
"effect_str": "technomancer_far_sight_lens",
"components": "spell_components_technomancer_far_sight",
"shape": "blast",
"flags": [ "SOMATIC", "CONCENTRATE", "VERBAL" ],
"extra_effects": [ { "id": "eoc_summon_setup" } ],
"spell_class": "TECHNOMANCER",
"difficulty": 6,
"min_duration": { "math": [ "summoning_proficiency_bonus_calculate(360000)" ] },
"max_duration": { "math": [ "summoning_proficiency_bonus_calculate(1440000)" ] },
"duration_increment": { "math": [ "summoning_proficiency_bonus_calculate(72000)" ] },
"energy_source": "MANA",
"base_casting_time": 60000,
"base_energy_cost": { "math": [ "summoning_proficiency_negate_calculate(600)" ] },
"final_energy_cost": { "math": [ "summoning_proficiency_negate_calculate(300)" ] },
"energy_increment": { "math": [ "summoning_proficiency_negate_calculate(-20)" ] },
"max_level": 15,
"learn_spells": { "technomancer_far_sight_plus": 15 }
},
{
"id": "technomancer_far_sight_plus",
"type": "SPELL",
"name": "Enhanced Zoom Lens",
"description": "This lens can see farther than ever! Now you know this spell like the back of your hand, and have started to design your own version.",
"valid_targets": [ "self" ],
"flags": [ "SOMATIC", "CONCENTRATE", "VERBAL", "NO_FAIL" ],
"extra_effects": [ { "id": "eoc_summon_setup" } ],
"effect": "spawn_item",
"effect_str": "technomancer_far_sight_lens",
"components": "spell_components_technomancer_far_sight",
"shape": "blast",
"base_casting_time": 60000,
"base_energy_cost": { "math": [ "summoning_proficiency_negate_calculate(300)" ] },
"min_duration": { "math": [ "summoning_proficiency_bonus_calculate(1440000)" ] },
"max_duration": { "math": [ "summoning_proficiency_bonus_calculate(8640000)" ] },
"duration_increment": { "math": [ "summoning_proficiency_bonus_calculate(288000)" ] },
"difficulty": 9,
"max_level": 25,
"spell_class": "TECHNOMANCER",
"energy_source": "MANA"
}
]
4 changes: 3 additions & 1 deletion data/mods/Magiclysm/effects/effects.json
Original file line number Diff line number Diff line change
Expand Up @@ -1333,7 +1333,8 @@
{ "u_remove_item_with": "armor_spirit" },
{ "u_remove_item_with": "magic_lamp" },
{ "u_remove_item_with": "technomancer_summoned_radio" },
{ "u_remove_item_with": "technomancer_welder" }
{ "u_remove_item_with": "technomancer_welder" },
{ "u_remove_item_with": "technomancer_far_sight_lens" }
]
},
{
Expand Down Expand Up @@ -1475,6 +1476,7 @@
{ "u_remove_item_with": "magic_lamp" },
{ "u_remove_item_with": "technomancer_summoned_radio" },
{ "u_remove_item_with": "technomancer_welder" },
{ "u_remove_item_with": "technomancer_far_sight_lens" },
{ "u_remove_item_with": "druid_thorn_skin_item" },
{ "u_remove_item_with": "bonespear" },
{ "u_remove_item_with": "longsword_holy" },
Expand Down
6 changes: 4 additions & 2 deletions data/mods/Magiclysm/itemgroups/spellbooks.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@
[ "spell_scroll_flamesword", 35 ],
[ "spell_scroll_force_jar", 30 ],
[ "spell_scroll_flamebreath", 30 ],
[ "spell_scroll_thought_shield", 35 ]
[ "spell_scroll_thought_shield", 35 ],
[ "spell_scroll_technomancer_far_sight", 20 ]
]
},
{
Expand Down Expand Up @@ -297,7 +298,8 @@
[ "basic_pyromancy", 50 ],
[ "stat_up_spellbook", 45 ],
[ "tome_of_wind", 45 ],
[ "tome_of_storms", 20 ]
[ "tome_of_storms", 20 ],
[ "pirate_spellbook", 20 ]
]
},
{
Expand Down
9 changes: 9 additions & 0 deletions data/mods/Magiclysm/items/ethereal_items.json
Original file line number Diff line number Diff line change
Expand Up @@ -1874,5 +1874,14 @@
"volume": "250 ml",
"longest_side": "40 cm",
"relic_data": { "passive_effects": [ { "id": "ench_luck_bone" } ] }
},
{
"id": "technomancer_far_sight_lens",
"type": "GENERIC",
"copy-from": "lens",
"name": { "str": "enchanted lens", "str_pl": "enchanted lenses" },
"description": "This lens has been etched with small symbols and infused with mana. Holding it up to your eye allows you to see further than any mundane binoculars allow.",
"flags": [ "ENHANCED_VISION", "TRADER_AVOID" ],
"relic_data": { "passive_effects": [ { "id": "ench_technomancer_far_sight_lens" } ] }
}
]
16 changes: 16 additions & 0 deletions data/mods/Magiclysm/items/item_enchants.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,5 +183,21 @@
{ "value": "REGEN_MANA", "multiply": { "math": [ "rand(10) * 0.01" ] } },
{ "value": "REGEN_STAMINA", "multiply": { "math": [ "rand(10) * 0.01" ] } }
]
},
{
"type": "enchantment",
"id": "ench_technomancer_far_sight_lens",
"has": "HELD",
"condition": "ALWAYS",
"name": { "str": "Enhanced Vision" },
"description": "Looking through your enchanted lens allows you to see farther than ever.",
"values": [
{
"value": "OVERMAP_SIGHT",
"add": {
"math": [ "(5 + (0.5 * u_spell_level('technomancer_far_sight')) + (1 * u_spell_level('technomancer_far_sight_plus')))" ]
}
}
]
}
]
9 changes: 9 additions & 0 deletions data/mods/Magiclysm/items/spell_scrolls.json
Original file line number Diff line number Diff line change
Expand Up @@ -2031,5 +2031,14 @@
"name": { "str": "Scroll of Power Linkage", "str_pl": "Scrolls of Power Linkage" },
"description": "Enchant a tool to accept power wirelessly from a compatible source.",
"use_action": { "type": "learn_spell", "spells": [ "technomancer_create_ups_connection" ] }
},
{
"type": "BOOK",
"copy-from": "spell_scroll",
"id": "spell_scroll_technomancer_far_sight",
"//": "Technomancer spell",
"name": { "str": "Scroll of Zoom Lens", "str_pl": "Scrolls of Zoom Lens" },
"description": "Enchant a lens with the ability to see beyond the horizon.",
"use_action": { "type": "learn_spell", "spells": [ "technomancer_far_sight" ] }
}
]
22 changes: 22 additions & 0 deletions data/mods/Magiclysm/items/spellbooks.json
Original file line number Diff line number Diff line change
Expand Up @@ -1365,5 +1365,27 @@
"symbol": "?",
"color": "red",
"use_action": { "type": "learn_spell", "spells": [ "mana_upgrade_sensitivity_02" ] }
},
{
"id": "pirate_spellbook",
"type": "BOOK",
"category": "manuals",
"name": {
"str": "Sail the High Seas with Sorcery on Your Side",
"str_pl": "copies of Sail the High Seas with Sorcery on Your Side"
},
"//": "3 Stormshaper spells, 1 Technomancer spell",
"description": "This romanticized book of dubious historical accuracy details how pirates used magic to their advantage while sailing. From better telescopes to banks of fog to hide their approach, it seems that according to this author at least, piracy was a true terror to behold.",
"weight": "437 g",
"volume": "825 ml",
"price": 7000,
"material": [ "paper" ],
"looks_like": "cookbook",
"symbol": "?",
"color": "red",
"use_action": {
"type": "learn_spell",
"spells": [ "stormshaper_cloak_of_fog", "storm_shipwrecker", "air_bubble", "technomancer_far_sight" ]
}
}
]
7 changes: 7 additions & 0 deletions data/mods/Magiclysm/requirements/spell_components.json
Original file line number Diff line number Diff line change
Expand Up @@ -288,5 +288,12 @@
"type": "requirement",
"//": "Fuel oils for the Power Linkage spell",
"components": [ [ [ "crude_lamp_oil", 120 ], [ "lamp_oil", 120 ], [ "gasoline", 120 ], [ "diesel", 120 ] ] ]
},
{
"id": "spell_components_technomancer_far_sight",
"type": "requirement",
"//": "Lens, chisel, and mana focus for the Zoom Lens spell",
"qualities": [ { "id": "CHISEL", "level": 3 }, { "id": "MANA_FOCUS", "level": 1 } ],
"components": [ [ [ "lens", 1 ] ] ]
}
]
Loading