mr:raise_dead_spell
Table of Contents
Raise Dead Spell - Code References
Overview
Raise Dead is a necromancy spell that summons the spirit of the most recently killed hostile mob as a temporary pet.
Java Classes
This entity is implemented in Lua, no Java class exists for this spell.
JSON Configuration
This entity is implemented in Lua, no JSON configuration exists for this spell.
String Resources
<!-- English (values/strings_all.xml) --> <string name="RaiseDead_Name">Raise Dead</string> <string name="RaiseDead_Info">Attempt to raise the latest (Ritual requires quite a fresh material) slain creature. When using this dark art, remember: almost any creature can be raised, but not everyone's will is easy to bend.</string> <string name="RaiseDead_NoSpace">Raise Dead failed because there is no free space nearby.</string> <string name="RaiseDead_NoKill">You need to kill someone before attempting to raise it.</string> <!-- Russian (values-ru/strings_all.xml) --> <string name="RaiseDead_Name">Поднять мертвеца</string> <string name="RaiseDead_Info">Попытка поднять недавно (Ритуал требует только свежайший материал) убитое существо. При использовании этого темного искусства не забывайте: почти любое существо можно поднять из мертвых, но далеко не всех можно подчинить своей воле.</string> <string name="RaiseDead_NoKill">Вам нужно сначала убить кого-то, прежде чем пытаться оживить его труп.</string> <string name="RaiseDead_NoSpace">Поднятие мертвеца не удалось потому что здесь нет свобдного места.</string>
Lua Scripts
- RaiseDead.lua - Main spell implementation
Implementation Details
- Spell Level: 4
- Magic Affinity: Necromancy
- Cast Time: 3 turns
- Spell Cost: 15 mana
- Targeting Type: none (self-cast)
- Storage Key: __latest_dead_mob (stores the last killed mob that can be a pet)
Code Mechanics
- Uses storage system to track the latest killed mob that can become a pet
- Only mobs that
canBePet()and are not MirrorImage can be raised - Raised mobs become undead and are converted to pets
- Requires valid cell position near the caster
- Applies shadow particle curse effects on both caster and raised mob
- Plays cursed sound effect on successful cast
Related mr Entities
mr/raise_dead_spell.txt · Last modified: by 127.0.0.1

