Mountain Shaping

Mountain Shaping is a Miracle that allows a Xiandao Cultivator to generate Mineral tiles in the Player Sect, allowing for the obtainment of more mineable resources without requiring Adventures, at a cost of a large amount of Qi.
==Obtainment==
The Miracle can be found in the "Primeval Earth Wonder" Orthodox Manual from Heaven Stealing Law.
==Cost==
This Miracle costs 100,000 QiSettings\Practice\Magic\Magic_new.xml.
==Possible Targets==
Any Ground tile which a Character can walk on. This means tiles such as Deep Water cannot be used as targets. 
==Effects==
The Miracle has the following effectsScripts\Magic\class\Magic_BuildMine.lua:
*The caster enters the flying animation
*The target area is selected within a radius of 3 tilesXiaWorld.GridMgr.GetAroundGrid in a 7x7 square range of the target location (maximum of 49 tiles)XiaWorld.GridMgr.GetSpiralAroundGrid
*Randomly determine the chance at which the Miracle produces a Mineral tile. The chance is 90%-(current tile/total tiles). On average, this equals 20.1 tiles of minerals generated in total, assuming all tiles are valid.
*For each tile within the target area, if the target area is walkable, check the tile, otherwise skip the tile:
**If there is a Building, the tile is skipped.
**If there is any Mineral, the tile is skipped.
**If there is a Plant, the Plant is destroyed and the tile is used as normal.
**If there are any Items on the tile, they are moved to a different tile nearby.
*Each tile of Mineral produced has the following probabilities:
**: 50/162 => average 6.2 per cast
**: 50/162 => average 6.2 per cast
**: 50/162 => average 6.2 per cast
**: 2/162 => average 0.25 per cast
**: 2/162 => average 0.25 per cast
**: 5/162 => average 0.62 per cast
**: 1/162 => average 0.12 per cast
**: 1/162 => average 0.12 per cast
**: 1/162 => average 0.12 per cast
==References==
Category:Miracles
Category:Game Mechanics