Draft:Two Worlds:Heal: Difference between revisions
Jump to navigation
Jump to search
Fandom Two Worlds>Phicr (Change *card to the more generic *effect, which is accurate to both the new and old magic templates + update values to match the first level) |
Fandom Two Worlds>Phicr m (Fix final example of the health restoration formula) |
||
Line 36: | Line 36: | ||
4500 HP | 4500 HP | ||
</syntaxhighlight> | </syntaxhighlight> | ||
*3 cards, 2 spell boosters, air school level | *3 cards, 2 spell boosters, air school level 15:<syntaxhighlight lang="julia"> | ||
(3 * 3 * 100) + (15 * 3 * 100) HP = | (3 * 3 * 100) + (15 * 3 * 100) HP = | ||
900 + 4500 HP = | 900 + 4500 HP = |
Revision as of 20:14, March 29, 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 cardsspell_booster_level
= Level increased by Spell Boostersair_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
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.