Braindead's Mordor Site

Personal tools

Spell Cost Formula

From Braindead's Mordor Site

(Difference between revisions)
Jump to: navigation, search
(+minimum cost formula)
(hmm, good for all target costs, not just min cost)
Line 10: Line 10:
The "- 0.0001" term is caused by internal loss of precision when storing integers as floating-point decimals: 209 is stored as "208.9999...", causing it to be rounded down to 208.
The "- 0.0001" term is caused by internal loss of precision when storing integers as floating-point decimals: 209 is stored as "208.9999...", causing it to be rounded down to 208.
-
== Minimum Cost Formula ==
+
== Level Needed for a Given Cost Formula ==
-
For the level at which a spell will reach its minimum cost, the formula is:
+
For the level at which a spell will reach a given cost, the formula is:
-
Spell level = (StartSpellLevel * SpellPointRatio * BaseMod^2 * 1.9 / (StartSpellLevel + 1)), rounded up.
+
Spell level = (StartSpellLevel * SpellPointRatio * BaseMod^2 * 1.9 / (DesiredCost + 1)), rounded up.
For the equivalent guild level, multiply by 2 and subtract 1.
For the equivalent guild level, multiply by 2 and subtract 1.
 +
To find the level at which a spell will reach its minimum cost, plug StartSpellLevel (times BaseMod, if any) into DesiredCost.
<hr>
<hr>
[[Mordor Spoilers|Back to Mordor Spoilers]]
[[Mordor Spoilers|Back to Mordor Spoilers]]

Revision as of 20:07, 9 November 2009

SL = (guild level / 2 + 0.5), rounded down (min 1, max 255)
Spell Cost = (StartSpellLevel * SpellPointRatio * BaseMod^2 * 1.9 / SL) - 0.0001, rounded down (minimum cost is StartSpellLevel * BaseMod)

SL is the character's Spell Level for a given guild.

StartSpellLevel and SpellPointRatio are the values named for each given spell in Wabbit's Editor.

BaseMod is the "Spell Class Base Modifier" value for a given spell class in a specific guild (click "Show Spell Data").

The "- 0.0001" term is caused by internal loss of precision when storing integers as floating-point decimals: 209 is stored as "208.9999...", causing it to be rounded down to 208.

Level Needed for a Given Cost Formula

For the level at which a spell will reach a given cost, the formula is:

Spell level = (StartSpellLevel * SpellPointRatio * BaseMod^2 * 1.9 / (DesiredCost + 1)), rounded up.

For the equivalent guild level, multiply by 2 and subtract 1.

To find the level at which a spell will reach its minimum cost, plug StartSpellLevel (times BaseMod, if any) into DesiredCost.


Back to Mordor Spoilers

Disclaimers 
Copyrights And Credits