Mana

Mana is a resource consumed by the player when using magic weapons. Each magic weapon has a specific mana cost that depletes the player's mana upon use. When a player's mana is depleted completely, a magic weapon cannot be used again until that weapon's mana cost has regenerated.
Similar to player Health, the player's current mana supply and capacity are represented by a meter: a column of blue stars displayed on the top-right edge of the screen, with each star representing 20 mana. Mana regenerates automatically as long as the player is not firing a magic weapon. It fills more quickly if the player stands still, with a further rate boost based on the current total mana: The more mana a player has, the faster it regenerates.
Each character starts with 20 mana capacity (one star in the mana meter). Using Mana Crystals increases the player's mana capacity by 20 permanently, adding another star to the meter. This can be done up to 9 times, which in addition to the 1 initial star makes 10 stars total, representing 200 mana.
Mana capacity can be increased further through the use of various armors such as Gem Robes and Nebula armor, plus accessories. Reforging accessories to the Arcane modifier can further boost maximum mana.
When mana regeneration has completed and the player again reaches maximum mana, a chirp sound is played and a blue sparkle effect is shown briefly on the character's sprite.
== Boost gear ==
To use magic weapons more often, certain items can increase the maximum mana or reduce the cost of using magic weapons. Because of how mana regeneration works, these can also effectively increase the rate of mana regeneration, so long as the player takes care to remain above certain current mana thresholds.
Item 	Maximum mana increase 	Mana usage reduction	Notes
 	20 (1 star) 	 	
 	20 (1 star) 	 	Increases mana regeneration rate.
 	20 (1 star) 	 	Restores mana upon taking damage.
 	20 (1 star) 	 	Restores mana upon taking damage. Increases the pickup range for stars.
 	20 (1 star) 	5% 	
/ 	40 (2 stars) / 20 (1 star)	16% (set bonus) 	
/ 	20 (1 star) 	16% (set bonus) 	
/ 	20 (1 star) 	16% (set bonus) 	
 	40 (2 stars) 	7% 	
 	40 (2 stars) 	9% 	
 	40 (2 stars) 	14% (set bonus) 	
 	60 (3 stars) 	 	
 	60 (3 stars) 	11% 	
 	60 (3 stars) 	13% 	
 	60 (3 stars) 	13% 	
 	60 (3 stars) 	17% (set bonus) 	
 	60 (3 stars) 	15% 	7% increased magic damage and critical strike chance.
 	80 (4 stars) 	 	
 	80 (4 stars) 	15% 	
 	40 (2 stars) 	 	
 	80 (4 stars) 	17% 	
 	80 (4 stars) 	19% (set bonus) 	
 	100 (5 stars) 	 	
 	100 (5 stars) 	 	
 	120 (6 stars) 	 	Grants 150 maximum mana (7½ stars) with Spectral Subligar .
 	30 (1½ star) 	 	
 	 	6% 	
 	 	8% 	Uses Mana Potions automatically.
 	 	8% 	Uses Mana Potions automatically. Increases the pickup range for stars.
 	 	8% 	Uses Mana Potions automatically. Enemies are less likely to target you.
 	 	8% 	Uses Mana Potions automatically. Causes star to fall after taking damage. Stars restore mana when collected.
 	 	15% 	
 	20 (1 star) 	2% 	Lasts until death.
Any accessory with an Arcane modifier 	20 (1 star) 	 	
Weapon with Mystic / Adept / Masterful modifier 	 	15% 	
Weapon with Celestial / Manic / Mythical modifier	 	10% 	
== Restoring Mana ==
Mana regenerates on its own when not in use until the player's current maximum is reached.
The natural rate of regeneration is modified by whether or not the player is moving and how much current mana a character has. This formula exists to punish reckless mana use – if all mana is spent, the player will have almost no regeneration at all until they stop moving or use a potion. Conversely, when the player stands still waiting between uses of magical weapons until mana is refilled, mana recovers at its fastest possible rate. Wearing items that increase the maximum mana can thus also increase the rate of recovery, as each use of magic will still leave the player with more remaining mana, and the higher multiplier.
However, mana does not regenerate for a small period after any magic is expended, meaning that to start regenerating mana the player must stop casting spells for a short time. The regeneration cooldown starts the moment the player stops spending mana, so casting Magic Missile and Flamelash will start the cooldown as soon as it is cast, regardless of how long the projectile is held. Setting up Star Statues on timers can help giving magic-using players much better rates of magical fire in boss-fighting or enemy-farming situations where there is time to prepare where the player is going to fight. (A Crystal Ball is also helpful in such situations.)
To be more specific, the mana regeneration has a similar mechanism of health regeneration – there is also a mana counter which is increased by a mana regeneration rate every tick. When it reaches 120 or more, it would be reduced by 120 and increase mana by 1. (So, 1 mana regeneration rate equals to 0.5 mana per second.)
Also, there is a mana regeneration delay, which would be set to a certain number calculated by the formula below (round up after the calculation), if the player used any magic weapons:
{{math|mana-math-1|{{#uesc:<esc>\mathit{mana\ regeneration\ delay} = 0.7\times\left(\left(1-\frac{\mathit{current\ mana}}{\mathit{maximum\ mana}}\right)\times 240 + 45 \right)</esc>}}}}
It will be reduced by 1 (if moving) or 2 (if standing still) every tick (also an additional 1 per tick if wearing the Mana Regeneration Band). Once it reaches 0, the mana regeneration rate would be calculated by the formula below:
If the player is moving:
{{math|mana-math-2|{{#uesc:<esc>\mathit{mana\ regeneration\ rate} = \left(\frac{\mathit{maximum\ mana}}{7}+1+\mathit{bonus}\right)\times\left(\frac{\mathit{current\ mana}}{\mathit{maximum\ mana}}\times0.8+0.2\right)\times1.15</esc>}}}}
If the player is standing still:
{{math|mana-math-3|{{#uesc:<esc>\mathit{mana\ regeneration\ rate} = \left(\frac{\mathit{maximum\ mana}}{7}+1+\frac{\mathit{maximum\ mana}}{2}+\mathit{bonus}\right)\times\left(\frac{\mathit{current\ mana}}{\mathit{maximum\ mana}}\times0.8+0.2\right)\times1.15</esc>}}}}
Note: In both formulae, the bonus will normally be 0. It would be 25 if the player was wearing the Mana Regeneration Band.
Then, if the player has the Mana Regeneration buff, the mana regeneration delay will be reset to 20 if it is greater than 20, and it would always treat the player as standing still and having maximum mana. So, it would act like this formula:
{{math|mana-math-4|{{#uesc:<esc>\mathit{mana\ regeneration\ rate} = \left(\frac{\mathit{maximum\ mana}}{7}+1+\frac{\mathit{maximum\ mana}}{2}+\mathit{bonus}\right)\times1.15</esc>}}}}
If a player wants to rely on magical weapons for normal exploration, they should memorize how to best recover mana, even while distracted. To make the most of mana regeneration, the player should practice understanding the timing between when they fire, and when the tone that indicates they have recovered full mana occurs, (so that they fire their next attack at exactly that moment,) and try to remain stationary during times when the mana recovery starts. Firing can be practiced in a safe location like the player's home until they are comfortable with how they regenerate their mana.
Several items can be used to regenerate mana:
Item	Instant mana restoration	Notes
 	20 	Also increases maximum mana by 20. Can be used a maximum of 9 times on a single character (until a permanent maximum of 200 is reached).
 	50 	
 	100 	
 	200 	
 	300 	
 	50 	Shares a cooldown with most other consumable healing items.
 	80 	Shares a cooldown with most other consumable healing items.
 	400 	Shares a cooldown with most other consumable healing items.
 	 	Increased mana regeneration, lasts 7 minutes.
 	 	While equipped, increases mana by 20 and increases mana regeneration rate.
 	 	While equipped, increases mana by 20 and restores mana when damaged.
 	 	Provides the Mana Nebula buff, which continually restores mana (10 per second for each level) regardless of current usage or mana supply. Effects can be stacked up to three times.
 	100 	
 	 	While equipped, increases the pickup range for stars.
 	 	Uses Mana Potions automatically. Increases the pickup range for stars.
 	 	While equipped, increases mana by 20, restores mana when damaged, and increases the pickup range for stars.
 	 	While equipped, increases magic damage and the pickup range for stars.
 	 	Increased mana regeneration when nearby.
 	 	Activating a Star Statue via wire will spawn a blue mana star.
=== Notes ===
* Mana-restoring effects will not exceed the player's maximum mana and any mana restoration beyond the maximum is lost. It is thus advisable to take care when pressing the mana potion hotkey to avoid wasteful overuse of mana restoring items.
* Restoration Potions (which also restore health) share an item cooldown called Potion Sickness with all other health-restoring items. The cooldown is 60 seconds long and begins when the consumable item is used. During this period, the player is unable to consume any more of those items. This prevents players from bypassing hazardous areas or enemies by constant item consumption.
** "Pure" mana-restoration items do not have this restriction – there is even the previously mentioned Mana Flower item that allows automatic consumption of mana potions for continuous mana consumption. Players may attempt continuous fire of magical attacks if they are willing to pay the costs in terms of potions to do so. Do keep in mind that consuming a "pure" mana-restoration item will trigger the Mana Sickness debuff. While this will not prevent the player from consuming more mana potions, it will cripple their magic damage output for a short time. Consider having Magic Power Potions to offset the reduction in magic damage if using a Mana Flower.
* It is generally more worthwhile to focus on equipment that reduces mana cost instead of increasing maximum mana, especially if using weapons with a low mana cost. For example, a Mythical Razorpine's mana cost can be reduced from 4 to 2 when using the Spectre Mask and Dark Artist's Robes, both of which also provide substantial offensive magic bonuses. This is functionally the same as doubling your maximum mana.
* Maximum mana is capped at a value of 400. It is possible to reach this value without any Mana Crystals by equipping certain gear:
:* (Expert-only)
:: 
:* 
:: 
:: This even increases the maximum mana to 410.
== Achievements ==
== Trivia ==
* The sound that is played when mana is fully restored is also used for notifying the end of the projectile's cooldown of the Starfury, Frostbrand, Beam Sword, Ice Blade, Enchanted Sword, Chlorophyte Claymore, and Chlorophyte Saber.
== History ==
== References ==