Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Standing-Storm committed Feb 6, 2025
1 parent bfaee8a commit 29a8057
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions data/mods/Xedra_Evolved/jmath.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,25 +64,31 @@
"type": "jmath_function",
"id": "xe_fey_seasonal_magick_spring_failure_chance",
"num_args": 0,
"return": "(0.15 + (global_what_is_the_season == 3 ? 0.2 : 0 ) ) - (u_skill('deduction') * 0.03)"
"return": "(0.15 + (global_what_is_the_season == 3 ? 0.2 : 0 ) + (u_spell_difficulty(_spell_id) * 0.08 ) + xe_fey_magick_mana_penalty() - ( (u_skill('deduction') * 0.03) + (u_spell_count('school': 'CHANGELING_SEASONAL_MAGIC_SPRING') * 0.04) )"
},
{
"type": "jmath_function",
"id": "xe_fey_seasonal_magick_summer_failure_chance",
"num_args": 0,
"return": "(0.15 + (global_what_is_the_season == 4 ? 0.2 : 0 ) ) - (u_skill('deduction') * 0.03)"
"return": "(0.15 + (global_what_is_the_season == 4 ? 0.2 : 0 ) + (u_spell_difficulty(_spell_id) * 0.08 ) + xe_fey_magick_mana_penalty() - ( (u_skill('deduction') * 0.03) + (u_spell_count('school': 'CHANGELING_SEASONAL_MAGIC_SUMMER') * 0.04) )"
},
{
"type": "jmath_function",
"id": "xe_fey_seasonal_magick_autumn_failure_chance",
"num_args": 0,
"return": "(0.15 + (global_what_is_the_season == 1 ? 0.2 : 0 ) ) - (u_skill('deduction') * 0.03)"
"return": "(0.15 + (global_what_is_the_season == 1 ? 0.2 : 0 ) + (u_spell_difficulty(_spell_id) * 0.08 ) + xe_fey_magick_mana_penalty() - ( (u_skill('deduction') * 0.03) + (u_spell_count('school': 'CHANGELING_SEASONAL_MAGIC_AUTUMN') * 0.04) )"
},
{
"type": "jmath_function",
"id": "xe_fey_seasonal_magick_winter_failure_chance",
"num_args": 0,
"return": "(0.15 + (global_what_is_the_season == 2 ? 0.2 : 0 ) ) - (u_skill('deduction') * 0.03)"
"return": "(0.15 + (global_what_is_the_season == 2 ? 0.2 : 0 ) + (u_spell_difficulty(_spell_id) * 0.08 ) + xe_fey_magick_mana_penalty() - ( (u_skill('deduction') * 0.03) + (u_spell_count('school': 'CHANGELING_SEASONAL_MAGIC_WINTER') * 0.04) )"
},
{
"type": "jmath_function",
"id": "xe_fey_magick_mana_penalty",
"num_args": 0,
"return": "u_val('mana') < (u_val('max_mana') / 2) ? ( ( (1 - ( u_val('mana') / u_val('max_mana') ) - 0.2) / 1.5) : 0"
},
{
"type": "jmath_function",
Expand Down

0 comments on commit 29a8057

Please sign in to comment.