Elin:Code Analysis/Combat: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 254: Line 254:
     return a;
     return a;
}
}
</syntaxhighlight>Spellpower is curve( ('''Spell''' '''Main Attribute''' x 8 + 50), 400, 100, 75 ) x (100 + '''Spell Enhance Enchanement''') / 100 if it's Player Character
</syntaxhighlight>Spellpower is curve( ('''Value(?)''' x 8 + 50), 400, 100, 75 ) x (100 + '''Spell Enhance Enchanement''') / 100 if it's Player Character


Spellpower is '''Spell''' '''Main Attribute''' x 8 + 50 or '''Char Level''' x 6 + 30, choose the bigger one of it's not Player Character
Spellpower is '''Value(?)''' x 8 + 50 or '''Char Level''' x 6 + 30, choose the bigger one of it's not Player Character


About '''curve''' '''<code>curve(a, start, step, rate)</code> Function:'''
About '''curve''' '''<code>curve(a, start, step, rate)</code> Function:'''
28

edits