[Xedra Evolved] Seasonal magic casting failure adjustments #79567
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Mods "[Xedra Evolved] Seasonal magic casting failure adjustments"
Purpose of change
#79554 makes more complicated custom failure formulae possible. Going to start with seasonal magic (and will eventually probably overhaul MoM--get ready for a bunch of things to affect your channeling odds)
Describe the solution
Previously, the calculation was a flat 15%, +20% if at the opposite season, -3% per level of Deduction.
Now the calculation is a flat 15%, +35% if at the opposite season, +15% if simply in a different season, +9% per point of the spell's Difficulty, -6% per level of Deduction, -4% per other spell of that season you know. All of this is also modified by your mana--if below half mana, you suffer a penalty of 1 minus the ratio of your mana to max mana, minus 20%, divided by 1.5, as a percentage So if your max mana is 1000 and you have 400 mana, your spells are ((1 - 0.4) - 0.2) / 1.5 * 100) = 27% more likely to fail, going further up as your mana goes down.
(The logic here is that fae are innately magical beings, so spells are easier for them [they don't need to study and level individual spells] but as they use their magical reserves, using more of it becomes harder)
As before, your failure chance cannot go below 5% in the opposing season.
Describe alternatives you've considered
Testing
Gave myself various seasonal spells, added and removed spells, changed the season, and observed failure rates go up and down.
Additional context
At the moment with only three spells per season this is going to make them very difficult to cast, which is why I'm already working on more spells
When I have more time I might go back and revamp all the elemental fae spells so they also don't have levels and scale off your total power the way changeling magic does, for Fair Folk consistency.