Magic level

Magic level is a statistic in Magical Vacation. Unlike levels, which affect a party member's own stat growth, magic levels increase with magic experience, and rewards characters with new spells. Magical Starsign replaces magic levels with the intelligence stat.

Information
Magic level determines the following:
 * Spells learned.
 * Damage output of magic attacks.
 * Resistance to certain elements, independent of the spirit stat.

Formula
Magic attacks are always guaranteed to hit targets, except for when the caster lacks sufficient MP, or if they are afflicted with a status ailment that prevents them from acting in battle.

Damage calculation
(A - B) x C ÷ D
 * A = (Strength x (STAB magic level ÷ quotient of 2) + strength + STAB magic level) + 1) x (100% ~ 112.5%) + (attacker's level - defender's level)
 * "STAB magic level" refers to the caster using a spell of their original element.
 * In the case of a bomb being thrown: STAB magic level + 2 (no limit)
 * Only when the level difference is 0 or more.
 * If an AoE spell damages multiple enemies simultaneously, the random portions will all have varying values.
 * The amplitude of the random portions: 0 ~ (magic level x strength ÷ 2 + strength + magic level) ÷ 8
 * The caster's equipped stickers, spirit, etc. do not influence magic damage calculation.
 * For the beast spell, powers united: A = party's collective MP total ÷ 6
 * A character's MP caps at 9999, so the cap for this particular A value is 1666.


 * B = (Spirit + spirit adjustment rank x defending STAB magic level + number of stickers x 2) x element compatibility
 * Spirit buffs/debuffs included.
 * Spirit adjustment rank comes in three stages:
 * Spirit up = rank 4
 * Spirit down = rank 2
 * Spirit unchanged = rank 3
 * If a spirit debuff and buff are applied, it defaults to rank 2.
 * "Defending STAB magic level" refers to the target(s) defending against magic of a particular element.
 * All enemies have set magic levels outside of their original element. The elements they are weak to (excluding light or love) always has a magic level of 0. For example, a fire monster's magic levels for ancient and dark are 0.
 * Only stickers of the corresponding element are calculated for the "number of stickers" value.
 * Enemies are also equipped with a few stickers. Dark enemies always have one scorching sticker, breezy sticker, boulder sticker, ladybug sticker, and animal sticker equipped.
 * Enemies who not dark-elemental wear stickers of either their own element, or of the element they are strong against.
 * Three stages of element compatibility:
 * Defender is hit with an element they resist: 50% (doubles spirit, reduces damage).
 * Defender is hit with an element they are weak to: 200% (halves spirit, increases damage).
 * Defender is hit with an element they are neither strong, nor weak to: 100%.
 * Attribute compatibility does not apply to light or love since they have no weaknesses.
 * If the caster uses a spell on an enemy of the same element, the damage is 1.


 * C = Spirit combo
 * Up to 128x (with 7 spirits on the field)


 * D = If the defender is guarding (damage halved)