Spiritual Refinement

Spiritual Refinement (aka Spiritual Refining) is a Golden Core-tier Miracle from the Sunflower Refining Law that is used to increase the Qi of items. When cast on an item, Spiritual Refinement consumes 1 and has a chance to raise the target item's Max Qi. Unlike Specter Refinement, it can be performed indefinitely without success rate decreasing. 
Spiritual Refinement requires that the item to be refined have greater than 0 Accommodate (a hidden Property)XiaWorld.UILogicMode_IndividualCommand.CheckThing. This means that any items made from Spirit Stone, Spirit Crystal or their blocks cannot be Spiritual Refined. Due to inheritance properties, Artifacts that are made from any item without a Material also cannot be Spiritual Refined, as their Accommodate property is lost. For example, a Darksteel Sword artifact can be refined, but a Darksteel Ore artifact cannot be refined.
==What can be improved==
As item Qi and artifact Max Qi are not considered useful under most circumstances, the uses of Spiritual Refinement are limited. Some uses include:
*Powering up the Spirit Pagoda with the required 99,999 Qi after obtainment.
*For Shendao cultivators, allowing their Artifact to obtain billions of Qi, as the Artifact's Max Qi is not capped like regular cultivators' Max Qi.
=== Amount of improvement ===
* Any Artifact successfully refined has its Max Qi increased by 5%. This results in Max Qi doubling approximately every 14-15 refinements, and due to exponential growth, increasing a thousand-fold after 142 refinements.
* Any other item successfully refined has its Accommodate value increased by 5. This makes it absorb Qi from the environment more quickly. For reference, Earth Flux has an Accommodate value of 45, and most items range from 1-10. The Spirit Pagoda has 200 by defaultSettings\ThingDef\Item\Item_FengShuiItem.xml, performing 40 refinements doubles its rate of Qi absorption. 
==Cost==
*1 
*30,000 Qi
==Getting Spirit Soul Gems==
*Casting Soul Chant Miracle on happy Mortals
*Feeding a corpse to Blessed Spirit Roots
*Buying from other sects, or the Merchant
==What affects Success Chance==
Spiritual Refinement has higher chance to work on low-tier items. Successful Spiritual refinements do not decrease the success chance, unlike Specter Refinement. 
*Each successful Specter/Tao Refinement (not Spiritual Refinement) decreases success rate multiplicatively
*Each additional Tier of the item decreases success rate multiplicatively
*Refinements have higher chance to succeed in Very Ominous room (not shown in tooltip)
*Awakened sentient gem illuminated from Darksoul Genesis and made human by Body of Genesis has doubled success rate at refining. Any of the following 5 soul gems countSettings\ThingDef\Item\Item_Consumable_SoulCrystal.xml: 
**
**
**
**
**
==Chance of success formula==
As of game version 1.24, the in-game display for chance of success is bugged, and does not represent the actual chance of success, as the wrong multiplier is used (0.8 instead of 0.9). The bonus from a Very Ominous room is also ignored. 
The success rate decreases as the number of times Specter Refinement (not Spiritual Refinement) has been performed on the ItemItemThing.DoSoulCrystalLingPowerUp, so it is recommended against performing Specter Refinement on the item until all Spiritual Refinement attempts are completed.
The success rate depends on the following:
===Feng Shui of room===
The base multiplier is 0.9. The bonus for room type is 0 if the room is not ominous. Otherwise, the bonus is 0.01 for slightly ominous, 0.02 for ominous, 0.03 for very ominousXiaWorld.ToilAbsorbLing.get_ToilAnimation (lines 322-326). 
The room type multipliers are: 0.93 in a very ominous room, 0.92 for ominous, 0.91 for slightly ominous, and 0.9 otherwise
===Sentient Soul Gem===
If the cultivator casting Specter Refinement is a Sentient Soul Gem, the success rate is doubledXiaWorld.ToilAbsorbLing.get_ToilAnimation (line 329). 
===Current Tier of the item being refined===
The higher the Tier of the item, the lower the chance of success. Each additional tier results in the success rate being multiplied by the room type multiplier. 
===Number of times the item has been Specter/Tao refined===
The higher the number of times the item has been Specter/Tao refined, the lower the chance of success. Each additional refinement results in the success rate being multiplied by the room type multiplier. 
Despite the two types of refinement (Specter and Tao Refinement) being listed separately, they are considered as the same for success rate calculations, and the number of refinements is the sum of Specter and Tao refinementsItemThing.YouAddDaoPower. 
===Formula===
Success Chance = RoomType ^ (Item Tier + successful Specter/Tao refinement count in mouseover) * 2 if Sentient Soul Gem cultivator.
Meaning, you ALWAYS want to Spiritual Refine in a very ominous room, and ideally with a Sentient Gem cult. It should also be done before any Specter/Tao refinements are performed on the item.
==Calculating Correct Chance of Success (Examples)==
Chance of Spiritual Refining a T12 Artifact in a Very Auspicious room with a regular Cultivator:
 0.90 ^ 12 = 0.282429 = 28.2%
With a regular Cultivator in a Very Ominous room:
 0.93 ^ (12 + 0) = 0.93 ^ 12 = 0.418596 = 41.9%
With a "Sentient Gem Cultivator" (Incarnated Sentient Spirit) in a Very Ominous room:
 0.93 ^ 12 * 2 = 0.837192 = 83.7%
Sentient Gem cultivators can guarantee success at lower Tiers (Tier 9 or below in a Very Ominous room). The maximum chance possible with a Tier 12 item is 83.7%, and 67.3% with a Tier 15 item.
Spiritual Refinement does not reduce the chances of success after multiple refinements, meaning that the success rate remains constant unless the item is Specter/Tao Refined.
==Spiritual refining in large quantities==
===Spirit Soul Gems===
Unlike s, s cannot be farmed directly. Dying in a Very Auspicious room does not drop any itemsXiaWorld.Npc.ChangeToCorpse. Instead, they can be obtained from feeding Corpses to Blessed Spirit Roots. This can be done by provoking any Sect, preferably an Evil Sect through adventuring to their Sect with low favor, which results in Invaders attacking the sect. The resulting Corpses can be fed to the Spirit Roots. Killing an Evil Sect member with high Condemnation will also drop large amounts of each, which is required for Tao Refinement.
===Max Qi and forget===
If you intend to Spiritual Refine a lot, consider having a cultivator who can cast Spiritual Refining as many times as possible.
The dialog screen lets you queue up to 30 Spiritual refinements, for 30,000 Qi each. This is a total of 900,000 Qi.
While at first this looks like a large number, it's very achievable with even the worst Tier 1 Golden Cores.
Factors that can help
*Sunflower Law has Earthbound Qi upgrades, which will give you 225,000 Max Qi flat (210k is law-exclusive)
*There are several +1500%-4000% Max Qi manuals available for all laws, and some other laws have more exclusives too.
*A Spirit Contract will upgrade your max Qi. Ideally a frog, as it breaks through your Qi Sense when culti is a Primordial Spirit rank
*If that's still not enough, it's possible to eat Tier 12 Sun pills for even more.
If you can't quite get this amount, don't worry. Just get as much as you can. This is more a hassle-remover rather than a must-have.
Category:Xiandao Cultivation
Category:Game Mechanics
Category:Miracles