====== Necromancy (Magic Affinity) ====== {{ rpd:images:necromancy_spell_icon.png|Necromancy Magic Affinity }} **Necromancy** is a magic affinity in Remixed Pixel Dungeon that encompasses a collection of necromantic spells primarily used by the [[en:rpd:necromancer_class|Necromancer]] class. These spells typically consume souls as a resource and allow for undead summoning and manipulation. ==== Description ==== **Necromancy** is a magic affinity that provides access to various necromantic abilities that utilize souls collected through combat. It is a core mechanic of the [[en:rpd:necromancer_class|Necromancer]] class, allowing the casting of spells that consume souls as a resource. ==== Abilities ==== The necromancy magic affinity includes the following key spells and abilities: * [[en:rpd:summon_deathling_spell|Summon Deathling]]: Uses souls to summon an undead minion called a [[en:rpd:deathling_mob|Deathling]] that fights alongside the player * [[en:rpd:raise_dead_spell|Raise Dead]]: Attempt to raise the latest slain creature as a temporary ally * [[en:rpd:exhumation_spell|Exhumation]]: Create a corpse from a defeated enemy that can be used later * [[en:rpd:dark_sacrifice_spell|Dark Sacrifice]]: Sacrifice an ally to gain souls * [[en:rpd:possess_spell|Possess]]: Temporarily take control of an enemy (advanced ability) * **Reincarnation**: A powerful ability that can sometimes save the Necromancer from death at the cost of all collected souls and possessions ==== Mechanics ==== * The necromancy affinity operates on a **souls** resource system specific to the [[en:rpd:necromancer_class|Necromancer]] class * Different abilities require different amounts of souls to use * [[en:rpd:soul_shard_item|Soul Shards]] and other items may supplement the soul resource * The [[en:rpd:lich_subclass|Lich]] subclass typically increases soul capacity and necromantic power * Most spells have a magic affinity designation of "Necromancy" which can be seen in their implementation ==== Classes ==== * [[en:rpd:necromancer_class|Necromancer]] - Primary class that uses necromancy spells * [[en:rpd:lich_subclass|Lich]] - Subclass that enhances necromantic abilities ==== Usage ==== * Essential for [[en:rpd:necromancer_class|Necromancer]] class effectiveness * Requires careful management of soul resources * Often used to summon [[en:rpd:deathling_mob|Deathlings]] and other undead for combat support * Strategic use of souls is key to necromantic gameplay ==== Strategy ==== Effective use of **Necromancy** abilities requires: * Maintaining sufficient soul reserves for key abilities * Prioritizing soul collection through combat * Balancing offensive and defensive necromantic abilities * Managing summoned undead minions effectively * Understanding which spells are most beneficial in different combat scenarios ==== Code References ==== * Magic Affinity Implementation: Found in various spell classes like [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mechanics/spells/SummonDeathling.java#L19|SummonDeathling.java:19]] (magicAffinity = "Necromancy") * Related Class: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/items/common/armor/NecromancerArmor.java|NecromancerArmor.java]] * String Resources: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values/strings_all.xml#L752-L755|Necromancy_ReincarnationName, Necromancy_ReincarnationTriggered, Necromancy_SummonDeathlingName, Necromancy_BecameALich]] * String Resources (Title): [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values/strings_all.xml#L757|Necromancy_Title]] * Spell List: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/spells/CustomSpellsList.lua#L8|CustomSpellsList.lua:8]] defines spells associated with necromancy: {"RaiseDead","Exhumation", "DarkSacrifice","Possess"} * Soul Management: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values/strings_all.xml#L749-L750|Necromancy_NotEnoughSouls, Necromancy_SoulsCountLabel]] ==== Content Verification ==== * Information source: Multiple spell implementations in [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/spells/|scripts/spells/]] directory and [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mechanics/spells/|java/com/nyrds/pixeldungeon/mechanics/spells/]] directory * Effect descriptions: Based on code analysis and string resources from [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values/strings_all.xml|strings_all.xml]] * Magic Affinity verification: Found in Lua files like [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/spells/RaiseDead.lua#L35|RaiseDead.lua:35]] where magicAffinity = "Necromancy" ==== See Also ==== * [[en:rpd:necromancy_affinity_mechanic|Necromancy Affinity]] * [[en:rpd:necromancer_class|Necromancer Class]] * [[en:rpd:lich_subclass|Lich Subclass]] * [[en:rpd:souls|Souls Resource]] * [[en:rpd:deathling_mob|Deathling]] * [[en:rpd:soul_shard_item|Soul Shard]] * [[en:rpd:spells|Spells]] * [[en:rpd:summon_deathling_spell|Summon Deathling]] * [[en:rpd:raise_dead_spell|Raise Dead]] * [[en:rpd:exhumation_spell|Exhumation]] {{tag> rpd spells necromancer souls affinity }}