Spirit Contract

### Description

Tiancang year <year>, day <day>, <cultivator> has sealed <Monster> into a spirit contract.

## Trading

### Sect Price

Buy Price: 5
Sell Price: 0
Stock: 1

### Merchant Price

Buy Price: 100
Sell Price: 20

### Auction Min. Price

Min. Buy Price: 1500 Spirit Stones

A **Spirit Contract** is an item which grants a Mount when be equipped by Xiandao and Shendao Inner Disciples for various bonuses. They are worn in the Contracts equipment slot.

## Obtaining

* Seal Contract (Miracle)
* Auction

### Seal Contract

By casting Seal Contract (Miracle) from Sixteen Supreme Steps Law on a Monster with the "Dying" status, an Inner Disciple produces a **Spirit Contract**. The type corresponds to the Animal type of the Monster. Sealing a Spirit Contract cannot fail. The appearance of the Mount is randomly (50%) chosen between the animal appearance or its monster appearance, except for Frog Spirit Contracts, which always have the Monster appearance.

Seal Contract can be cast when entering Camps.

#### Limitations

An Inner Disciple is unable to cast Seal Contract on a Monster with a higher level of Cultivation than themselves. The Miracle cannot be cast on an NPC with the status of "Flopped", "Flopped Unconscious dying", or "Unconscious dying", only Dying (xx s) works for this Miracle.

## Contract Tier

The tier of the Spirit Contract is dependent on the Cultivation Level the target monster had at the time the Miracle was cast on it. The Inner Disciple's Cultivation Level affects which bonuses they receive from a Spirit Contract (see #Bonuses).

## Multiplier

The final effect of the contract is computed based on the Cultivation Level of the Monster sealed. This is 0.8+0.2\*Tier, which is equal to 3.2 at Tier 12. Specter Refinement or other means of increasing the Tier of the contract after it has been sealed has no effect.

## Bonuses

A common misconception is to believe the effects are all tied to the Spirit Contract's tier. Instead, the **rider's cultivation level** is used to **determine which effects they get**, and the **spirit contract's tier** only affects the **bonus multiplier**.

The bonus is indicated for T4 as CL4 Core Shaping Monsters is the cultivation level of monsters present in Camps.

 1-5
 6-9
* 500% Max Qi (`AddP`)
* 800% Max Qi (`AddP`)
 10-12
* 300% Adventure Fly Speed Bonus (`AddV`)
* 500% Max Qi (`AddP`)
* Beast-specific bonus

Rabbit:
* 250% Adventure Fly Speed Bonus (`AddV`)
* 500% Max Qi (`AddP`)
* 480% Adventure Fly Speed Bonus (`AddV`)
* 800% Max Qi (`AddP`)
* 1.6 \* Beast-specific bonus

Rabbit:
* 400% Adventure Fly Speed Bonus (`AddV`)
* 500% Max Qi (`AddP`)
* 960% Adventure Fly Speed Bonus (`AddV`)
* 1,600% Max Qi (`AddP`)
* 3.2 \* Beast-specific bonus

Rabbit:
* 800% Adventure Fly Speed Bonus (`AddV`)
* 1,600% Max Qi (`AddP`)

## Beast-specific bonuses

Those bonus require the rider to have a Cultivation Level of 10 or higher, equivalent to Primordial Spirit or Attainment State. The movespeed is not related to the beast tier and is set when sealing the contract. The values indicated for movespeed are assuming the animal has adult age.

* Breakthrough refers to going over the Skill Level limit.

## Bonus calculation examples

### Example

A Tier 12 Bear contract has a multiplier of 3.2.

When ridden by a Cultivator of Cultivation Level 0-6, the Bear contract provides the following bonuses (from the Any Contract bonus requiring Cultivation Level 0), multiplied by 3.2:

* +480% Adventure Fly Speed (directly applied bonus)

When ridden by a Cultivator of Cultivation Level 7-9, the Bear contract provides the following bonuses (from the Any Contract bonus requiring Cultivation Level 0, and the Any Contract bonus requiring Cultivation Level 7), multiplied by 3.2:

* +480% Adventure Fly Speed (directly applied bonus)
* +1600% Max Qi

When ridden by a Cultivator of Cultivation Level 10 or above, the Bear contract provides the following bonuses (from the Any Contract bonus requiring Cultivation Level 0, Any Contract bonus requiring Cultivation Level 7, and the Bear Contract bonus requiring Cultivation Level 10), multiplied by 3.2:

* +960% Adventure Fly Speed (inherited bonus + directly applied bonus)
* +1600% Max Qi
* +32% Constitution
* +3 Breakthrough Artifact Mastery

### Example 2

A Tier 1 Lushu contract has a multiplier of 1.

When ridden by a Cultivator of any Cultivation Level, the Lushu contract provides the following bonuses (from the Lushu Contract bonus requiring Cultivation Level 0, and from the Any Contract bonus requiring Cultivation Level 0), multiplied by 1:

* Cloud Dispelling (Lushu) Miracle
* +300% Adventure Fly Speed (inherited bonus + directly applied bonus)

## Spirit Fly

The "Spirit Fly" option forces the use of an equipped Spirit Contact whenever possible. This causes the Cultivator to move at the Move Speed of the contract while walking. If the Cultivator walks faster than the Spirit Contract, "Spirit Fly" ought to be disabled to avoid being slowed down.

## References

1. ↑ `XiaWorld.NpcLuaHelper.MakeHorseFromSelf`
2. ↑ `XiaWorld.NpcEquipData.ActiveDefEquipData`, `XiaWorld.NpcEquipData.GetDefEquipDataScale`
3. ↑ `Settings\Modifiers\Modifier_Horse.xml, Settings\ThingDef\Item\Item_Horse.xml`
4. ↑ The 100% bonus from Rabbit contracts overwrites the 150% Fly Speed Bonus inherited by other contracts, making it the slowest contract.
5. ↑ In-game, listed as an `AddV` of 1 on `WorldMapFlySpeedAddP`