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
(Add formulas for HP restoration and MP consumption.)
m (Text replacement - "[[Category:Air Magic]" to "Category:Two Worlds Air Magic")
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<onlyinclude>{{ItemTransformer
{{Two Worlds Draft}}
{{ItemTransformer
|style={{{style|}}}
|style={{{style|}}}
|name=Heal
|name=Heal
|image=[[File:Magic_Heal.jpg]]
|image=[[File:Magic_Heal.jpg]]
|magiccircle=
|magiccircle=1
|firstcard=
|firsteffect= 100 HP
|firstduration=
|firstduration=
|firstmana=
|firstmana= 45
|secondcard=
|secondeffect= 200 HP
|secondduration=
|secondduration=
|secondmana=
|secondmana= 45
|additionalcard=
|additionaleffect=See [[Heal#HP Restoration]]
|additionalduration=
|additionalduration=
|additionalmana=
|additionalmana=+40/7 ≈ 5.714
}}</onlyinclude>Heal is a [[magic]] spell that restores HP. Healling power is calculated using the formula:
}}Heal is an air [[magic]] spell that restores HP.
{| class="article-table"
==Formulas==
|<code>(cards * spell_booster_level * 100) + (air_school_level * cards * 100)</code>
|}


* <code>cards</code> = Number of heal cards
===HP Restoration===
* <code>spell_booster_level</code> = Level increased by [[Spell Booster|spell boosters]]
Healling power is calculated using the formula:<syntaxhighlight lang="julia">
* <code>air_school_level</code> = Level of air school
(cards * spell_booster_level * 100) +
(cards * air_magic_level * 100)
</syntaxhighlight>
 
*<code>cards</code> = Number of Heal cards
*<code>spell_booster_level</code> = Level increased by [[Spell Booster|Spell Boosters]]
*<code>air_magic_level</code> = Level of [[Air Magic]]


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">
Mana consumption is calculated by the formula:
0 + (15 * 3 * 100) HP =
{| class="article-table"
4500 HP
|<code>45 + floor(max(0, cards + air_school_level + spell_booster_level - 3) * 5.75)</code>
</syntaxhighlight>
|}
*3 cards, 2 spell boosters, air school level 15:<syntaxhighlight lang="julia">
 
(3 * 3 * 100) + (15 * 3 * 100) HP =
* floor(x): Function, rounds number to the nearest integer less than <code>x</code>.
900 + 4500 HP =
** Examples: <code>floor(1.2) = 1</code>, <code>floor(2.7) = 2</code>
5400 HP
* <code>max(x,y)</code>: Function, returns the greatest number among its arguments.
</syntaxhighlight>
** Examples: <code>max(1,2) = 2</code>, <code>max(0,-2) = 0</code>
* <code>cards</code>, <code>air_school_level</code>, <code>spell_booster_level</code>: same as above formula
 
Examples:


* 1 card, 0 spell boosters, air school level 1: <code>45 + floor(max(0, -1) * 5.75)</code> MP = <code>45 + floor(0 * 5.75)</code> MP = <code>45 + 0</code> MP = 45 MP
===Mana Cost===
* 3 cards, 0 spell boosters, air school level 1: <code>45 + floor(max(0, 1) * 5.75)</code> MP = <code>45 + floor(1 * 5.75)</code> MP = <code>45 + 6</code> MP = 51 MP
Mana consumption is calculated by the formula:<syntaxhighlight lang="julia">
* 3 cards, 0 spell boosters, air school level 15: <code>45 + floor(max(0, 15) * 5.75)</code> MP = <code>45 + floor(15 * 5.75)</code> MP = <code>45 + 86</code> MP = 131 MP
floor(40 + 40/7 + max(0, cards + air_magic_level + spell_booster_level - 3) * 40/7)
* 3 cards, 2 spell boosters, air school level 15: <code>45 + floor(max(0, 18) * 5.75)</code> MP = <code>45 + floor(18 * 5.75)</code> MP = <code>45 + 103</code> MP = 148 MP
</syntaxhighlight>


<br />
For examples and more information, see the [[Mana Cost]] page.<br />
[[Category:Air Magic]]
[[Category:Two Worlds Air Magic]]]

Latest revision as of 01:15, December 4, 2023

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

Formulas[edit | edit source]

HP Restoration[edit | edit source]

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 15:<syntaxhighlight lang="julia">

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

Mana Cost[edit | edit source]

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.
]