Skip to content

Commit

Permalink
[Magiclysm] Feral dabblers: add small chance ferals know a single spe…
Browse files Browse the repository at this point in the history
…ll (#77509)

* Initial commit

* You can dispell feral windrunning too

* police and soldiers might know combat-useful magic
  • Loading branch information
Standing-Storm authored Nov 2, 2024
1 parent 11f9f25 commit b844217
Show file tree
Hide file tree
Showing 4 changed files with 1,508 additions and 7 deletions.
61 changes: 61 additions & 0 deletions data/mods/Magiclysm/Spells/monsterspells.json
Original file line number Diff line number Diff line change
Expand Up @@ -443,5 +443,66 @@
]
}
]
},
{
"type": "SPELL",
"id": "feral_dabble_spell_selector_spell",
"name": { "str": "Dabbler Spell selector", "//~": "NO_I18N" },
"description": "Random chance for a feral to have a single spell. This picks a random spell.",
"flags": [ "SILENT", "NO_HANDS", "NO_LEGS", "MUST_HAVE_CLASS_TO_LEARN" ],
"valid_targets": [ "hostile" ],
"max_level": 1,
"effect": "effect_on_condition",
"effect_str": "EOC_FERAL_DABBLE_SPELLS_SELECTOR_SPELL",
"shape": "blast",
"min_range": 60,
"max_range": 60
},
{
"type": "effect_on_condition",
"id": "EOC_FERAL_DABBLE_SPELLS_SELECTOR_SPELL",
"effect": [ { "math": [ "n_feral_dabbler_chosen_spell_number", "=", "rand(99) + 1" ] } ]
},
{
"id": "summon_wisps_monster",
"type": "SPELL",
"name": "Ignus Fatuus Monster",
"description": "Summons ghostly foxfire worked from living marsh vapor to lead your enemies astray. With more experience, this spell can conjure multiple ghost lights.",
"valid_targets": [ "ground" ],
"effect": "summon",
"effect_str": "mon_wisp",
"shape": "blast",
"flags": [ "CONJURATION_SPELL", "LOUD", "SOMATIC", "HOSTILE_SUMMON" ],
"energy_source": "MANA",
"difficulty": 2,
"max_level": 25,
"min_damage": 1,
"max_damage": 8,
"damage_increment": 0.28,
"min_aoe": 3,
"max_aoe": 3,
"min_range": 3,
"max_range": 7,
"range_increment": 0.16,
"min_duration": 6000,
"max_duration": 60000,
"duration_increment": 2160
},
{
"id": "windrun_monster",
"type": "SPELL",
"name": "Windrunning Monster",
"description": "A magical wind pushes you forward as you move, easing your movements and increasing speed.",
"energy_source": "MANA",
"difficulty": 1,
"effect": "attack",
"effect_str": "enchant_windrun_monster",
"shape": "blast",
"valid_targets": [ "self" ],
"flags": [ "ENHANCEMENT_SPELL", "SILENT", "VERBAL", "NO_HANDS", "NO_PROJECTILE" ],
"max_level": 10,
"min_duration": 6000,
"max_duration": 30000,
"duration_increment": 2400
}
]
18 changes: 16 additions & 2 deletions data/mods/Magiclysm/effects/effects.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,18 @@
"enchantments": [ { "values": [ { "value": "SPEED", "add": { "math": [ "((u_spell_level('windrun') * 2) + 10)" ] } } ] } ],
"base_mods": { "stamina_min": [ 10 ] }
},
{
"type": "effect_type",
"id": "enchant_windrun_monster",
"name": [ "Windrunning" ],
"desc": [ "You are bolstered and pushed along by the power of the wind." ],
"apply_message": "You are bolstered and pushed along by the power of the wind",
"remove_message": "The wind at your back dies down.",
"rating": "good",
"show_in_info": true,
"enchantments": [ { "values": [ { "value": "SPEED", "add": 20 } ] } ],
"base_mods": { "stamina_min": [ 10 ] }
},
{
"type": "effect_type",
"id": "dark_sight",
Expand Down Expand Up @@ -1558,7 +1570,8 @@
"effect_stormshaper_loud_voice",
"effect_technomancer_gain_electronics_computer",
"effect_technomancer_pain_ignore",
"effect_feral_stormshaper_stormhammer"
"effect_feral_stormshaper_stormhammer",
"enchant_windrun_monster"
]
},
{
Expand Down Expand Up @@ -1707,7 +1720,8 @@
"effect_flame_immunity",
"effect_burning_trail",
"effect_ring_of_flight",
"effect_feral_stormshaper_stormhammer"
"effect_feral_stormshaper_stormhammer",
"enchant_windrun_monster"
]
},
{
Expand Down
Loading

0 comments on commit b844217

Please sign in to comment.