Skip to content

Commit

Permalink
Create eoc_spell_difficulty_modifiers.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Standing-Storm authored May 22, 2024
1 parent 5b4b49b commit aab6146
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions data/mods/Magiclysm/eoc_spell_difficulty_modifiers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"type": "effect_on_condition",
"id": "EOC_GRABBED_MAKES_SOMATIC_SPELLS_HARDER",
"eoc_type": "EVENT",
"required_event": "opens_spellbook",
"condition": {
"and": [
{
"or": [
{ "u_has_effect": "grabbed", "bodypart": "arm_r" },
{ "u_has_effect": "grabbed", "bodypart": "arm_l" },
]
},
{ "not": { "u_has_flag": "SUBTLE_SPELL" } }
]
},
"effect": [
{ "math": [ "u_spellcasting_adjustment('difficulty', 'flag_whitelist': 'SOMATIC' )", "=", "(u_effect_intensity('grabbed', 'bodypart': 'arm_l') + u_effect_intensity('grabbed', 'bodypart': 'arm_r') ) / 10" ] }
]
}
]

0 comments on commit aab6146

Please sign in to comment.