Death

Death transforms a NPC into a Corpse. It can be prevented as long as the concerned is in the intermediary Dying state, and resurrection is possible through Shendao Resurrection Miracles. 
==Dying==
=== Cultivators and Monsters ===
When a Cultivator or Monster loses all hitpoints, they reach a Dying state for 300 seconds, after which they will die. They can be fed a Rebirth pill in this state.
Occasionally, the Dying stage will be skipped if something severe enough has happened, like the loss of a head.
===Mortals ===
Mortals immediately become a corpse upon dying. They do not have a dying state.
==Resurrection==
Shendao resurrection works either on Dying NPCs or Corpses, but can not work on the body left by a Possessing cultivatorXiaWorld.Npc.BeRobBody() sets the flag FLAG_NOSOUL which is always checked, on PuppetsTechnically Zombies too, but they're bugged or on buried bodiesScripts/Magic/class/Magic_GodResurrectionA.lua [TargetCheck] & Scripts/Magic/class/Magic_GodResurrectionA.lua [MagicLeave]. On top of its base effect, it is equivalent to eating a so it can cure older ailments as well.
It also gives the resurrected NPC the +30 "Resurrected" Moodlet lasting 5 days.
== Soul gem==
People may drop a soul gem at random upon death in two separate events, if they didn't have had their soul already extracted by .
*if they die in a Room with slightly ominous to very ominous Feng Shui, they have a chance to drop an . This is related to the Hell Gate trick. The drop rates are as followsXiaWorld.Npc.ChangeToCorpse:
**Slightly Ominous: 10%
**Ominous: 50%
**Very Ominous: 100%
*if they didn't lose their soul from the above, Cultivatorsand technically Zombies too, but Zombies can't be spawned without mods due to a bug may drop a soul gem, depending on their mood at the moment of death.
In the second case, the chance for a soul gem to drop depends on their Cultivation Level: \frac{CultivationLevel^2}{10}%.
Stage 	Level	Soul gem drop
Qi Shaping 	3 	0.9%
Core Shaping 	6 	3.6%
Golden Core 	9 	8.1%
Primordial Spirit	12 	14.4%
The type of soul gem dropped follows the same formula as XiaWorld.Npc.DropSoulCrystal. Only the first successful roll will result in a drop:
*First roll: 1 with 100% chance at 0 Mood or below, and 0% chance at 100 Mood or above.
*Second roll: 1 with 100% chance at 100 Mood or above, and 0% chance at 0 Mood or below.
*Otherwise: 1 
Additionally, 1 if the Cultivator is a Sentient Spirit.
==References==
Category:Death