====== Glyph of affection ====== The Glyph of Affection is an [[en:rpd:armor_glyphs|armor glyph]] that can appear on certain types of armor in Remixed Dungeon. This glyph provides charm-based defensive abilities to the wearer. ==== Description ==== When an enemy hits the wearer of armor with this glyph, there is a chance that the attacker will become charmed, turning to fight alongside the hero for a limited time. ==== Mechanics ==== Grounded in [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/armor/glyphs/Affection.java|Affection.java]]: * **Activation:** Triggers when the wearer is hit by an enemy that is adjacent to the wearer * **Probability:** Chance is (armor level gated to 0-6)/2 + 4 out of (level/2 + 5), i.e. 80% at level 0, rising to 90% at level 6 * **Effect:** The attacker is charmed for a random duration of 2-5 turns (modified by charm resistance) * **Backlash:** The wearer also becomes charmed for half of the attacker's duration, but never longer than the attacker * **Limitations:** Mindless enemies may be immune to the charm effect ==== Armor Compatibility ==== * Can appear on any armor as a random glyph inscription ==== Strategy ==== * Effective in groups of enemies, as charmed enemies will fight other enemies * Particularly useful against difficult single enemies * Be careful in situations where you don't want to lose control of the battlefield * Works well with crowd control strategies ==== Identification ==== * Armor with this glyph appears as normal until activated * Can be identified through various means like [[en:rpd:scroll_of_identify_item|Scroll of Identify]] ==== Acquisition ==== * [[en:rpd:armor_item|Armor]] randomly generated with this glyph * [[en:rpd:scroll_of_enchantment_item|Scroll of Enchantment]] * [[en:rpd:artificer_npc|Artificer NPC]] services ==== Code Reference ==== * Java Implementation: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/buffs/Charm.java|Charm.java]] - The charm effect * Java Implementation: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/armor/glyphs/Affection.java|Affection.java]] - The glyph implementation ==== Related ==== * [[en:rpd:armor_glyphs|Armor Glyphs]] - Other armor glyphs * [[en:rpd:armor_item|Armor]] - General armor information * [[en:rpd:charm_buff|Charm]] - The status effect * [[en:rpd:scroll_of_enchantment_item|Scroll of Enchantment]] - How to enchant armor {{tag> rpd items armor glyphs enchantment charm}}