Draft:Two Worlds:Heal: Difference between revisions

The Two Worlds Wiki - Documenting Two Worlds since 2008.
Jump to navigation Jump to search
Fandom Two Worlds>Phicr
(Improve mana cost formula and link to the Mana Cost page for more info.)
Fandom Two Worlds>Phicr
(Make formula usage examples look like the ones in the Mana Cost page, for a unified look)
Line 28: Line 28:
Examples:
Examples:


*3 cards, 0 spell boosters, air school level 1: <code>0 + (1 * 3 * 100</code>) HP = 300 HP
*3 cards, 0 spell boosters, air school level 1:<syntaxhighlight lang="julia">
*3 cards, 0 spell boosters, air school level 15: <code>0 + (15 * 3 * 100)</code> HP = 4500 HP
0 + (1 * 3 * 100) HP =
*3 cards, 2 spell boosters, air school level 10: <code>(3 * 3 * 100) + (15 * 3 * 100)</code> HP = <code>900 + 4500</code> HP = 5400 HP
300 HP
 
</syntaxhighlight>
*3 cards, 0 spell boosters, air school level 15:<syntaxhighlight lang="julia">
0 + (15 * 3 * 100) HP =
4500 HP
</syntaxhighlight>
*3 cards, 2 spell boosters, air school level 10:<syntaxhighlight lang="julia">
(3 * 3 * 100) + (15 * 3 * 100) HP =
900 + 4500 HP =
5400 HP
</syntaxhighlight>


===Mana Cost===
===Mana Cost===

Revision as of 16:17, January 20, 2021

Template:ItemInfoBoxHeal is an air magic spell that restores HP.

Formulas

HP Restoration

Healling power is calculated using the formula:<syntaxhighlight lang="julia"> (cards * spell_booster_level * 100) + (cards * air_magic_level * 100) </syntaxhighlight>

  • cards = Number of Heal cards
  • spell_booster_level = Level increased by Spell Boosters
  • air_magic_level = Level of Air Magic

Examples:

  • 3 cards, 0 spell boosters, air school level 1:<syntaxhighlight lang="julia">

0 + (1 * 3 * 100) HP = 300 HP </syntaxhighlight>

  • 3 cards, 0 spell boosters, air school level 15:<syntaxhighlight lang="julia">

0 + (15 * 3 * 100) HP = 4500 HP </syntaxhighlight>

  • 3 cards, 2 spell boosters, air school level 10:<syntaxhighlight lang="julia">

(3 * 3 * 100) + (15 * 3 * 100) HP = 900 + 4500 HP = 5400 HP </syntaxhighlight>

Mana Cost

Mana consumption is calculated by the formula:<syntaxhighlight lang="julia"> floor(40 + 40/7 + max(0, cards + air_magic_level + spell_booster_level - 3) * 40/7) </syntaxhighlight>

For examples and more information, see the Mana Cost page.