Skip to content

Commit

Permalink
Merge pull request #74798 from QuillInkwell/magic_fix_spell_profs
Browse files Browse the repository at this point in the history
[Magiclysm] Fix Spell Casting Proficiencies not progressing
  • Loading branch information
Maleclypse authored Jun 27, 2024
2 parents 17f2b41 + e782887 commit 7d0afa4
Show file tree
Hide file tree
Showing 41 changed files with 367 additions and 347 deletions.
63 changes: 34 additions & 29 deletions data/mods/Magiclysm/Spells/animist.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"max_level": 15,
"damage_type": "light",
"flags": [ "VERBAL", "LOUD", "NO_HANDS" ],
"extra_effects": [ { "id": "eoc_evocation_setup" } ],
"extra_effects": [ { "id": "eoc_evocation_setup", "hit_self": true } ],
"energy_source": "MANA"
},
{
Expand All @@ -44,7 +44,7 @@
"components": "spell_components_rune_animist",
"base_casting_time": { "math": [ "channeling_proficiency_negate_calculate(500, 4)" ] },
"flags": [ "SOMATIC", "VERBAL", "SILENT", "NO_LEGS", "CONSUMES_RUNES" ],
"extra_effects": [ { "id": "eoc_channeling_setup" } ],
"extra_effects": [ { "id": "eoc_channeling_setup", "hit_self": true } ],
"difficulty": 3
},
{
Expand All @@ -66,7 +66,7 @@
"base_energy_cost": 5000,
"energy_increment": 500.0,
"flags": [ "SOMATIC", "VERBAL", "PAIN_NORESIST" ],
"extra_effects": [ { "id": "eoc_channeling_setup" } ],
"extra_effects": [ { "id": "eoc_channeling_setup", "hit_self": true } ],
"final_energy_cost": 10000
},
{
Expand All @@ -91,7 +91,7 @@
"min_duration": { "math": [ "summoning_proficiency_bonus_calculate(36000, 30)" ] },
"max_duration": { "math": [ "summoning_proficiency_bonus_calculate(1080000, 30)" ] },
"duration_increment": { "math": [ "summoning_proficiency_bonus_calculate(36000, 0.034)" ] },
"extra_effects": [ { "id": "eoc_summon_setup" } ]
"extra_effects": [ { "id": "eoc_summon_setup", "hit_self": true } ]
},
{
"type": "effect_on_condition",
Expand Down Expand Up @@ -234,7 +234,7 @@
"min_duration": { "math": [ "summoning_proficiency_bonus_calculate(36000, 40)" ] },
"max_duration": { "math": [ "summoning_proficiency_bonus_calculate(1080000, 40)" ] },
"duration_increment": { "math": [ "summoning_proficiency_bonus_calculate(36000, 0.034)" ] },
"extra_effects": [ { "id": "eoc_summon_setup" } ]
"extra_effects": [ { "id": "eoc_summon_setup", "hit_self": true } ]
},
{
"type": "effect_on_condition",
Expand Down Expand Up @@ -409,7 +409,7 @@
"min_aoe": 1,
"max_aoe": 3,
"aoe_increment": 0.1,
"extra_effects": [ { "id": "eoc_evocation_setup" } ],
"extra_effects": [ { "id": "eoc_evocation_setup", "hit_self": true } ],
"damage_type": "necrotic"
},
{
Expand All @@ -433,7 +433,7 @@
"spell_class": "ANIMIST",
"energy_source": "HP",
"//": "I'm not sure if this should train anything, since it's an innate ability.",
"extra_effects": [ { "id": "eoc_channeling_setup" } ],
"extra_effects": [ { "id": "eoc_channeling_setup", "hit_self": true } ],
"flags": [ "PERMANENT", "NO_LEGS", "CONCENTRATE" ]
},
{
Expand Down Expand Up @@ -467,7 +467,7 @@
"base_casting_time": { "math": [ "channeling_proficiency_negate_calculate(300, 1)" ] },
"final_casting_time": { "math": [ "channeling_proficiency_negate_calculate(30, 1)" ] },
"casting_time_increment": { "math": [ "channeling_proficiency_negate_calculate(-14, 0.051)" ] },
"extra_effects": [ { "id": "eoc_channeling_setup" } ],
"extra_effects": [ { "id": "eoc_channeling_setup", "hit_self": true } ],
"energy_source": "MANA"
},
{
Expand All @@ -494,7 +494,7 @@
"base_energy_cost": 300,
"energy_source": "MANA",
"damage_type": "necrotic",
"extra_effects": [ { "id": "life_detonation_explosion" }, { "id": "eoc_evocation_setup" } ]
"extra_effects": [ { "id": "life_detonation_explosion" }, { "id": "eoc_evocation_setup", "hit_self": true } ]
},
{
"id": "life_detonation_explosion",
Expand Down Expand Up @@ -540,7 +540,7 @@
"final_casting_time": { "math": [ "channeling_proficiency_negate_calculate(1000, 10)" ] },
"casting_time_increment": { "math": [ "channeling_proficiency_negate_calculate(-200, 0.007)" ] },
"energy_source": "MANA",
"extra_effects": [ { "id": "create_rune_animist", "hit_self": true }, { "id": "eoc_channeling_setup" } ]
"extra_effects": [ { "id": "create_rune_animist", "hit_self": true }, { "id": "eoc_channeling_setup", "hit_self": true } ]
},
{
"id": "soulrend",
Expand All @@ -565,7 +565,7 @@
"base_energy_cost": { "math": [ "summoning_proficiency_negate_calculate(200, 1)" ] },
"min_range": 3,
"max_range": 6,
"extra_effects": [ { "id": "eoc_summon_setup" } ],
"extra_effects": [ { "id": "eoc_summon_setup", "hit_self": true } ],
"range_increment": 0.2
},
{
Expand All @@ -592,7 +592,7 @@
"energy_source": "MANA",
"shape": "blast",
"effect": "attack",
"extra_effects": [ { "id": "eoc_evocation_setup" } ],
"extra_effects": [ { "id": "eoc_evocation_setup", "hit_self": true } ],
"learn_spells": { "soulrend": 20 }
},
{
Expand All @@ -619,7 +619,7 @@
"min_duration": { "math": [ "summoning_proficiency_bonus_calculate(3600, 8)" ] },
"max_duration": { "math": [ "summoning_proficiency_bonus_calculate(12000, 8)" ] },
"duration_increment": { "math": [ "summoning_proficiency_bonus_calculate(1000, 0.12)" ] },
"extra_effects": [ { "id": "eoc_summon_setup" } ]
"extra_effects": [ { "id": "eoc_summon_setup", "hit_self": true } ]
},
{
"id": "spirit_walk",
Expand All @@ -643,7 +643,7 @@
"final_energy_cost": 200,
"min_range": 5,
"max_range": 15,
"extra_effects": [ { "id": "eoc_enhancement_setup" } ],
"extra_effects": [ { "id": "eoc_enhancement_setup", "hit_self": true } ],
"range_increment": 1.0
},
{
Expand All @@ -665,7 +665,7 @@
"difficulty": 9,
"max_level": 25,
"base_casting_time": 100,
"extra_effects": [ { "id": "eoc_evocation_setup" } ],
"extra_effects": [ { "id": "eoc_evocation_setup", "hit_self": true } ],
"energy_source": "MANA"
},
{
Expand Down Expand Up @@ -695,7 +695,7 @@
"min_duration": { "math": [ "summoning_proficiency_bonus_calculate(6000, 30)" ] },
"max_duration": { "math": [ "summoning_proficiency_bonus_calculate(60000, 30)" ] },
"duration_increment": { "math": [ "summoning_proficiency_bonus_calculate(2160, 0.04)" ] },
"extra_effects": [ { "id": "eoc_summon_setup" } ]
"extra_effects": [ { "id": "eoc_summon_setup", "hit_self": true } ]
},
{
"id": "bleed",
Expand Down Expand Up @@ -724,7 +724,7 @@
"duration_increment": 20,
"min_dot": { "math": [ "evocation_proficiency_bonus_calculate(2, 0.2)" ] },
"max_dot": { "math": [ "evocation_proficiency_bonus_calculate(52, 0.2)" ] },
"extra_effects": [ { "id": "eoc_evocation_setup" } ],
"extra_effects": [ { "id": "eoc_evocation_setup", "hit_self": true } ],
"dot_increment": 2
},
{
Expand All @@ -749,7 +749,7 @@
"base_energy_cost": 6,
"energy_source": "HP",
"learn_spells": { "animist_summon_decaying_boneclub_plus": 20 },
"extra_effects": [ { "id": "eoc_summon_setup" } ],
"extra_effects": [ { "id": "eoc_summon_setup", "hit_self": true } ],
"difficulty": 6
},
{
Expand Down Expand Up @@ -777,7 +777,7 @@
"final_energy_cost": 3,
"energy_increment": -0.2,
"energy_source": "HP",
"extra_effects": [ { "id": "eoc_summon_setup" } ],
"extra_effects": [ { "id": "eoc_summon_setup", "hit_self": true } ],
"difficulty": 7
},
{
Expand Down Expand Up @@ -808,7 +808,7 @@
"max_dot": 6,
"energy_source": "MANA",
"difficulty": 3,
"extra_effects": [ { "id": "eoc_evocation_setup" } ],
"extra_effects": [ { "id": "eoc_evocation_setup", "hit_self": true } ],
"damage_type": "necrotic"
},
{
Expand All @@ -833,7 +833,11 @@
"max_level": 25,
"base_casting_time": 100,
"energy_source": "MANA",
"extra_effects": [ { "id": "devour_damage" }, { "id": "devour_healing", "hit_self": true }, { "id": "eoc_evocation_setup" } ]
"extra_effects": [
{ "id": "devour_damage" },
{ "id": "devour_healing", "hit_self": true },
{ "id": "eoc_evocation_setup", "hit_self": true }
]
},
{
"id": "devour_damage",
Expand Down Expand Up @@ -881,7 +885,7 @@
"max_duration": { "math": [ "enhancement_proficiency_bonus_calculate(900000, 5400)" ] },
"duration_increment": { "math": [ "enhancement_proficiency_bonus_calculate(60000, 0.074)" ] },
"base_casting_time": { "math": [ "enhancement_proficiency_negate_calculate(1500, 10)" ] },
"extra_effects": [ { "id": "eoc_enhancement_setup" } ]
"extra_effects": [ { "id": "eoc_enhancement_setup", "hit_self": true } ]
},
{
"id": "animist_summon_watcher",
Expand All @@ -907,7 +911,7 @@
"energy_source": "MANA",
"base_casting_time": 500,
"base_energy_cost": { "math": [ "summoning_proficiency_negate_calculate(150, 1)" ] },
"extra_effects": [ { "id": "eoc_summon_setup" } ]
"extra_effects": [ { "id": "eoc_summon_setup", "hit_self": true } ]
},
{
"id": "animist_mass_hiding_aoe",
Expand All @@ -921,7 +925,7 @@
"max_level": 20,
"effect": "attack",
"effect_str": "telepathic_ignorance",
"extra_effects": [ { "id": "animist_mass_hiding_self", "hit_self": true }, { "id": "eoc_evocation_setup" } ],
"extra_effects": [ { "id": "animist_mass_hiding_self", "hit_self": true }, { "id": "eoc_evocation_setup", "hit_self": true } ],
"shape": "blast",
"min_duration": { "math": [ "evocation_proficiency_bonus_calculate(3000, 5)" ] },
"max_duration": { "math": [ "evocation_proficiency_bonus_calculate(63000, 5)" ] },
Expand Down Expand Up @@ -971,7 +975,7 @@
"energy_source": "MANA",
"base_casting_time": 30000,
"base_energy_cost": { "math": [ "summoning_proficiency_negate_calculate(600, 3)" ] },
"extra_effects": [ { "id": "eoc_summon_setup" } ]
"extra_effects": [ { "id": "eoc_summon_setup", "hit_self": true } ]
},
{
"id": "animist_spirit_walking",
Expand All @@ -995,7 +999,7 @@
"base_energy_cost": 1200,
"final_energy_cost": 850,
"energy_increment": -17.5,
"extra_effects": [ { "id": "eoc_enhancement_setup" } ]
"extra_effects": [ { "id": "eoc_enhancement_setup", "hit_self": true } ]
},
{
"type": "effect_on_condition",
Expand Down Expand Up @@ -1030,7 +1034,7 @@
"max_duration": { "math": [ "enhancement_proficiency_bonus_calculate(480000, 3000)" ] },
"duration_increment": { "math": [ "enhancement_proficiency_bonus_calculate(30000, 0.07)" ] },
"base_casting_time": { "math": [ "enhancement_proficiency_negate_calculate(250, 2)" ] },
"extra_effects": [ { "id": "eoc_enhancement_setup" } ]
"extra_effects": [ { "id": "eoc_enhancement_setup", "hit_self": true } ]
},
{
"id": "animist_slow_food_rotting_spell",
Expand All @@ -1048,7 +1052,8 @@
"max_level": 15,
"energy_source": "MANA",
"base_energy_cost": { "math": [ "channeling_proficiency_negate_calculate(550, 5)" ] },
"base_casting_time": { "math": [ "channeling_proficiency_negate_calculate(90000, 100)" ] }
"base_casting_time": { "math": [ "channeling_proficiency_negate_calculate(90000, 100)" ] },
"extra_effects": [ { "id": "eoc_channeling_setup", "hit_self": true } ]
},
{
"type": "effect_on_condition",
Expand All @@ -1073,7 +1078,7 @@
"description": "I cast Magic… Fissile? At the darkness?",
"valid_targets": [ "hostile" ],
"flags": [ "VERBAL", "SOMATIC", "NO_LEGS", "SILENT", "NO_PROJECTILE" ],
"extra_effects": [ { "id": "animist_radiation_bolt", "hit_self": false }, { "id": "eoc_evocation_setup" } ],
"extra_effects": [ { "id": "animist_radiation_bolt", "hit_self": false }, { "id": "eoc_evocation_setup", "hit_self": true } ],
"min_damage": { "math": [ "evocation_proficiency_bonus_calculate(1, 0.2)" ] },
"damage_increment": { "math": [ "evocation_proficiency_bonus_calculate(1.5, 0.083)" ] },
"damage_type": "necrotic",
Expand Down
6 changes: 3 additions & 3 deletions data/mods/Magiclysm/Spells/attunements/Alchemist.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"effect": "spawn_item",
"effect_str": "potion_starter",
"components": "spell_components_potion_starter",
"extra_effects": [ { "id": "eoc_summon_setup" } ],
"extra_effects": [ { "id": "eoc_summon_setup", "hit_self": true } ],
"shape": "blast",
"valid_targets": [ "self" ],
"flags": [ "SOMATIC", "CONCENTRATE", "VERBAL" ],
Expand All @@ -32,7 +32,7 @@
"description": "Oversaturates potion starter with mana to create a deadly mana explosion.",
"valid_targets": [ "none" ],
"flags": [ "SOMATIC", "PERMANENT_ALL_LEVELS" ],
"extra_effects": [ { "id": "eoc_summon_setup" } ],
"extra_effects": [ { "id": "eoc_summon_setup", "hit_self": true } ],
"effect": "spawn_item",
"effect_str": "alchemist_bomb",
"components": "spell_components_manabomb",
Expand All @@ -59,7 +59,7 @@
"//": "In perfect world there will be another spell that create already buried mine, making very effective trap in realtime. But not today.",
"valid_targets": [ "none" ],
"flags": [ "SOMATIC", "PERMANENT_ALL_LEVELS" ],
"extra_effects": [ { "id": "eoc_summon_setup" } ],
"extra_effects": [ { "id": "eoc_summon_setup", "hit_self": true } ],
"effect": "spawn_item",
"effect_str": "alchemist_mine",
"shape": "blast",
Expand Down
4 changes: 2 additions & 2 deletions data/mods/Magiclysm/Spells/attunements/Artificer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"description": "Sends out a partly magical, partly electronic spy drone shaped like a wasp that reveals terrain in a line in front of you. The wasp can travel through walls.",
"valid_targets": [ "hostile", "ground" ],
"flags": [ "CONCENTRATE", "IGNORE_WALLS", "NO_LEGS", "SILENT", "MUST_HAVE_CLASS_TO_LEARN" ],
"extra_effects": [ { "id": "eoc_channeling_setup" } ],
"extra_effects": [ { "id": "eoc_channeling_setup", "hit_self": true } ],
"effect": "attack",
"shape": "line",
"min_range": 24,
Expand Down Expand Up @@ -91,7 +91,7 @@
"description": "Artificers have a special pocket dimension with a magical tool that can cover a wide variety of tasks. It is only a matter of temporarily summoning the item for use.",
"valid_targets": [ "none" ],
"flags": [ "CONCENTRATE", "NO_LEGS", "MUST_HAVE_CLASS_TO_LEARN" ],
"extra_effects": [ { "id": "eoc_summon_setup" } ],
"extra_effects": [ { "id": "eoc_summon_setup", "hit_self": true } ],
"effect": "spawn_item",
"shape": "blast",
"effect_str": "artificer_toolkit",
Expand Down
4 changes: 2 additions & 2 deletions data/mods/Magiclysm/Spells/attunements/Biotek.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"description": "You overclock your flesh and bionics, charging so fast the friction can ignite the air, to wind up for a skull-cracking punch.",
"valid_targets": [ "hostile", "ground" ],
"flags": [ "MUST_HAVE_CLASS_TO_LEARN" ],
"extra_effects": [ { "id": "eoc_evocation_setup" } ],
"extra_effects": [ { "id": "eoc_evocation_setup", "hit_self": true } ],
"effect": "dash",
"effect_str": "downed",
"shape": "cone",
Expand Down Expand Up @@ -36,7 +36,7 @@
"name": "Jury Rig",
"description": "Heals a little bit of damage on the target.",
"valid_targets": [ "self" ],
"extra_effects": [ { "id": "eoc_channeling_setup" } ],
"extra_effects": [ { "id": "eoc_channeling_setup", "hit_self": true } ],
"min_damage": -5,
"max_damage": -40,
"damage_increment": -1.0,
Expand Down
4 changes: 2 additions & 2 deletions data/mods/Magiclysm/Spells/attunements/Blood_Mage.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"description": "A more advanced version of Banishment, which is a ritual spell that attempts to banish a monster. Being closely related to blood magic, the Blood Mage is much more specialized to use a spell like this.",
"valid_targets": [ "hostile" ],
"flags": [ "SOMATIC", "VERBAL", "MUST_HAVE_CLASS_TO_LEARN", "NO_HANDS" ],
"extra_effects": [ { "id": "eoc_evocation_setup" } ],
"extra_effects": [ { "id": "eoc_evocation_setup", "hit_self": true } ],
"effect": "banishment",
"shape": "blast",
"min_damage": { "math": [ "evocation_proficiency_bonus_calculate(120, 1)" ] },
Expand Down Expand Up @@ -61,7 +61,7 @@
"description": "You allow a demon to possess your body for a short time, giving you great combat abilities. You still retain control, though lose your spellcasting abilities temporarily.",
"valid_targets": [ "none" ],
"flags": [ "SOMATIC", "NO_LEGS", "MUST_HAVE_CLASS_TO_LEARN" ],
"extra_effects": [ { "id": "eoc_summon_setup" } ],
"extra_effects": [ { "id": "eoc_summon_setup", "hit_self": true } ],
"effect": "spawn_item",
"shape": "blast",
"effect_str": "demon_possession_aura",
Expand Down
4 changes: 2 additions & 2 deletions data/mods/Magiclysm/Spells/attunements/Boreal_Mage.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"flags": [ "SOMATIC", "MUST_HAVE_CLASS_TO_LEARN", "NO_HANDS" ],
"effect": "attack",
"shape": "cone",
"extra_effects": [ { "id": "auroral_wave_cold" }, { "id": "eoc_evocation_setup" } ],
"extra_effects": [ { "id": "auroral_wave_cold" }, { "id": "eoc_evocation_setup", "hit_self": true } ],
"damage_type": "light",
"min_damage": { "math": [ "evocation_proficiency_bonus_calculate(60, 0.5)" ] },
"damage_increment": { "math": [ "evocation_proficiency_bonus_calculate(3.0, 0.03)" ] },
Expand Down Expand Up @@ -59,7 +59,7 @@
"shape": "blast",
"energy_source": "MANA",
"flags": [ "CONCENTRATE", "VERBAL", "NO_LEGS" ],
"extra_effects": [ { "id": "eoc_summon_setup" } ],
"extra_effects": [ { "id": "eoc_summon_setup", "hit_self": true } ],
"difficulty": 9,
"max_level": 40,
"base_casting_time": 350,
Expand Down
6 changes: 3 additions & 3 deletions data/mods/Magiclysm/Spells/attunements/Cleansing_Flame.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"description": "Speak a short phrase and transform your footsteps into burning pits of flame, leaving a trail of fire behind you. Each step will consume mana, but you will be immune to fire while the spell is in effect.",
"valid_targets": [ "self" ],
"flags": [ "CONCENTRATE", "VERBAL", "NO_HANDS", "MUST_HAVE_CLASS_TO_LEARN", "NO_FAIL" ],
"extra_effects": [ { "id": "eoc_enhancement_setup" } ],
"extra_effects": [ { "id": "eoc_enhancement_setup", "hit_self": true } ],
"effect": "effect_on_condition",
"effect_str": "EOC_CLEANSING_FLAME_FIRE_FOOSTEPS",
"shape": "blast",
Expand Down Expand Up @@ -107,7 +107,7 @@
"flags": [ "SOMATIC", "VERBAL", "NO_LEGS", "LOUD", "CONCENTRATE", "IGNITE_FLAMMABLE", "MUST_HAVE_CLASS_TO_LEARN", "NO_HANDS" ],
"effect": "attack",
"shape": "blast",
"extra_effects": [ { "id": "immolate_transform" }, { "id": "immolate_push" }, { "id": "eoc_evocation_setup" } ],
"extra_effects": [ { "id": "immolate_transform" }, { "id": "immolate_push" }, { "id": "eoc_evocation_setup", "hit_self": true } ],
"damage_type": "heat",
"min_damage": { "math": [ "evocation_proficiency_bonus_calculate(90, 1)" ] },
"damage_increment": { "math": [ "evocation_proficiency_bonus_calculate(4.9, 0.03)" ] },
Expand Down Expand Up @@ -163,7 +163,7 @@
"max_damage": -120,
"damage_increment": -2.9,
"max_level": 35,
"extra_effects": [ { "id": "cleansingflame_hermes_burn" }, { "id": "pain_split" }, { "id": "eoc_channeling_setup" } ],
"extra_effects": [ { "id": "cleansingflame_hermes_burn" }, { "id": "pain_split" }, { "id": "eoc_channeling_setup", "hit_self": true } ],
"flags": [ "SOMATIC", "VERBAL", "CONCENTRATE", "LOUD" ]
},
{
Expand Down
Loading

0 comments on commit 7d0afa4

Please sign in to comment.