====== Electricity ====== **Electricity** is a damage type and debuff effect caused by lightning traps, lightning spells, or other sources of lightning damage. ==== Effects ==== * **Damage**: Scales with the target's current HP * **Damage Calculation**: Damage value is randomly generated between 1/3 to 2/3 of the target's max HP * **Special Effect**: Charges (or discharges) the hero's equipment ==== Sources ==== * [[en:rpd:lightning_trap|Lightning Trap]] - Trap found in the dungeon * [[en:rpd:shaman_mob|Shaman]] - Monster that uses lightning attacks * Other lightning-based spells or abilities ==== Resistances ==== Some creatures have resistance to electricity damage, such as: * [[en:rpd:shaman_mob|Shaman]] - Has lightning resistance * [[en:rpd:yogs_brain_mob|Yogs Brain]] - Has lightning resistance ==== Additional Information ==== * In lightning traps, damage is calculated as max(1, random value(target HP/3, 2*target HP/3)) * For the hero, lightning damage also causes charging (or discharging) of all equipment ==== Code Reference ==== * Implementation: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/levels/traps/LightningTrap.java|LightningTrap.java]] * Entity Type: LightningTrap.Electricity class {{tag> rpd debuff damage lightning trap}}