Line 6: |
Line 6: |
| * Casting a spell has a chance of failure. Failed spell cast costs no mana but you need to prepare the spell again. | | * Casting a spell has a chance of failure. Failed spell cast costs no mana but you need to prepare the spell again. |
| | | |
| + | ===Spell Casting Chance Calculation=== |
| + | '''Probability''' = { 300, 250, 200, 150, 100, 80, 70, 60, 50, 40 } |
| + | '''Penalty''' = { 5, 5, 8, 8, 10, 14, 28, 32, 36, 40 } |
| + | ''Adjusted Level'' = ''Level'' + ''Rebirth Level'' (max 140 in total) |
| + | ''Mage Level'' = ''Adjusted Level'' / 10 (round result down) |
| + | |
| + | ''Base Chance'' = (20 + (0.8 * ''Magic Skill'')) / 100 * '''Probability'''{''Circle''} (round result down) |
| + | |
| + | if ''Intelligence'' > 50, add |
| + | ''Intelligence Bonus'' = (''Intelligence'' - 50) / 2 (round result down) |
| + | |
| + | if ''Circle'' < ''Mage Level'', add |
| + | ''Level Bonus'' = 5 * (''Mage Level'' - ''Circle'') |
| + | |
| + | if ''Circle'' > ''Mage Level'', subtract |
| + | ''Level Penalty'' = ''b'' - (''a'' / ''c'' * ''b'') (round result to nearest) |
| + | ''a'' = ''Adjusted Level'' - (10 * ''Mage Level'') |
| + | ''b'' = (''Circle'' - ''Mage Level'') * '''Penalty'''{''Circle''} |
| + | ''c'' = (''Circle'' - ''Mage Level'') * 10 |
| | | |
| | | |