Skip to content

Commit

Permalink
Merge pull request #78522 from Standing-Storm/magus-light-spell
Browse files Browse the repository at this point in the history
[Magiclysm] Add Imperishable Light spell
  • Loading branch information
Night-Pryanik authored Dec 13, 2024
2 parents a41ac47 + 76cc32f commit 4565e01
Show file tree
Hide file tree
Showing 7 changed files with 92 additions and 1 deletion.
23 changes: 23 additions & 0 deletions data/mods/Magiclysm/Spells/magus.json
Original file line number Diff line number Diff line change
Expand Up @@ -781,5 +781,28 @@
"energy_source": "MANA",
"base_casting_time": 100,
"base_energy_cost": 75
},
{
"id": "magus_permanent_light",
"type": "SPELL",
"name": "Imperishable Light",
"description": "Enchant the air in a location to glow, producing a orb of soft light. While not particularly bright, the light will last years if you're not lucky and millennia if you are.",
"valid_targets": [ "ground" ],
"effect": "ter_transform",
"effect_str": "ter_magus_permanent_light",
"shape": "blast",
"flags": [ "CONJURATION_SPELL", "SOMATIC", "VERBAL" ],
"components": "spell_components_magus_permanent_light",
"max_level": 15,
"spell_class": "MAGUS",
"energy_source": "MANA",
"difficulty": 8,
"min_range": 1,
"max_range": 1,
"base_casting_time": 180000,
"base_energy_cost": 2500,
"final_energy_cost": 1500,
"energy_increment": -75,
"extra_effects": [ { "id": "eoc_summon_setup", "hit_self": true } ]
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[
{
"type": "furniture",
"id": "f_magus_permanent_light",
"name": "imperishable light",
"description": "A glowing orb of light floats here, emitting a soft radiance.",
"symbol": "*",
"color": "white",
"move_cost_mod": 0,
"light_emitted": 35,
"required_str": -1,
"flags": [ "TRANSPARENT", "PERMEABLE", "TINY", "THIN_OBSTACLE" ],
"bash": { "str_min": 9999, "str_max": 9999 },
"examine_action": {
"type": "effect_on_condition",
"effect_on_conditions": [
{
"id": "EOC_REMOVE_MAGUS_LIGHT",
"condition": { "u_query": "Dismiss the imperishable light?", "default": false },
"effect": [
{
"u_map_run_eocs": [
{
"id": "EOC_REMOVE_MAGUS_LIGHT_2",
"effect": [ { "u_cast_spell": { "id": "magus_permanent_light" }, "loc": { "context_val": "loc" } } ],
"false_effect": { "u_message": "There is no nearby light to dismiss.", "type": "bad" }
}
],
"range": 1,
"store_coordinates_in": { "context_val": "loc" },
"stop_at_first": true,
"condition": { "map_furniture_id": "f_magus_permanent_light", "loc": { "context_val": "loc" } }
}
]
}
]
}
}
]
3 changes: 2 additions & 1 deletion data/mods/Magiclysm/itemgroups/itemgroups.json
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,8 @@
{ "item": "spell_scroll_magus_mana_blast", "prob": 50 },
{ "item": "spell_scroll_magus_haste", "prob": 50 },
{ "item": "spell_scroll_magus_diamond_imbuement", "prob": 30 },
{ "item": "spell_scroll_magus_slow", "prob": 50 }
{ "item": "spell_scroll_magus_slow", "prob": 50 },
{ "item": "spell_scroll_magus_permanent_light", "prob": 30 }
],
"prob": 10
},
Expand Down
1 change: 1 addition & 0 deletions data/mods/Magiclysm/itemgroups/spellbooks.json
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@
[ "spell_scroll_summon_magic_motorcycle", 5 ],
[ "spell_scroll_animist_spirit_walking", 10 ],
[ "spell_scroll_magus_haste", 50 ],
[ "spell_scroll_magus_permanent_light", 30 ],
[ "bio_sneeze_beam", 50 ],
[ "spell_scroll_druid_beguile_savage_beast", 10 ],
[ "spell_scroll_druid_thornskin", 20 ],
Expand Down
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 @@ -2121,5 +2121,14 @@
"name": { "str": "Scroll of Mind Crush", "str_pl": "Scrolls of Mind Crush" },
"description": "Use your own spirit to attack the target's spirit.",
"use_action": { "type": "learn_spell", "spells": [ "animist_do_psionic_damage_to_head" ] }
},
{
"type": "BOOK",
"copy-from": "spell_scroll",
"id": "spell_scroll_magus_permanent_light",
"//": "Magus spell",
"name": { "str": "Scroll of Imperishable Light", "str_pl": "Scrolls of Imperishable Light" },
"description": "Create a permanent glowing orb of light in the air. Well, it will take a few years to see if it's really permanent; hopefully you'll live to know the answer.",
"use_action": { "type": "learn_spell", "spells": [ "magus_permanent_light" ] }
}
]
6 changes: 6 additions & 0 deletions data/mods/Magiclysm/requirements/spell_components.json
Original file line number Diff line number Diff line change
Expand Up @@ -318,5 +318,11 @@
[ "wintergreen_berry", 1 ]
]
]
},
{
"id": "spell_components_magus_permanent_light",
"type": "requirement",
"//": "Precious metals for the Imperishable Light spell",
"components": [ [ [ "gold_small", 5 ] ], [ [ "silver_small", 5 ] ], [ [ "copper", 5 ] ] ]
}
]
12 changes: 12 additions & 0 deletions data/mods/Magiclysm/ter_fur_transform/ter_fur_transform.json
Original file line number Diff line number Diff line change
Expand Up @@ -616,5 +616,17 @@
"message": ""
}
]
},
{
"type": "ter_furn_transform",
"id": "ter_magus_permanent_light",
"furniture": [
{ "result": "f_magus_permanent_light", "valid_furniture": [ "f_null" ], "message": "The air begins glowing softly." },
{
"result": "f_null",
"valid_furniture": [ "f_magus_permanent_light" ],
"message": "The imperishable light winks out."
}
]
}
]

0 comments on commit 4565e01

Please sign in to comment.