# Soul Gems

Soul Gems are rewarded to the player every 3 levels. They can be spent on 5 stats, up to 10 times each. The player can only *naturally* obtain 32 Soul Gems; the rest are found as secret [collectables](https://bluesod.gitbook.io/soulblaze-gdd/planned-features-and-mechanics/platforming-and-level-design/common-objects/collectables). both stats are shared between the protagonists.

**Attack** - Adds bonus damage.

*Although often thought of as brute strength, ones' ability to tackle problems head-on is a virtue of inner strength, not muscle and blades.*

* Handled by the equation `(attack * 1.5) + sheen = damage`

Defense - Adds Bonus MDEF and RDEF.

*Armor is not the defining trait of an enduring warrior-- rather, it is the determination of one's soul to press onward through any hardship.*

* Handled by the equation `(defense * 1.2) + helmet + armor = mdef/rdef`. `defense` is universal, but `helmet` and `armor` use the helmet and armor's MDEF and RDEF stats respectively.

Endurance - Adds bonus HP.

*Souls are the very core of any living being, and without the soul, the vessel is just a husk. The strongest warriors are the ones with the most resilient souls.*

* This is multiplied onto existing max health via `maxHealth * (endurance * 2)`. The highest health you could reach using Endurance alone is 800 HP.

Vigor - Adds bonus SP.

*Souls are capable of boundless releases of energy, but it takes sheer willpower to release more and more of it. The strongest warriors meditate to give themselves limitless vigor.*

* Done by the same equation as Endurance but replacing `maxHealth` with `maxMana` and `endurance` with `vigor`.

Soul - Unlocks new, exclusive combos.

*Truly, the greatest weapon in a warrior's arsenal is their mind. Should one's mind become one with their soul, there are no limits to their potential on the battlefield.*

* These exclusive combos are hidden from the player until they are unlocked, and are very powerful, niche attacks often taking advantage of abilities the player has.
