====== Scroll of Psionic Blast ====== {{ rpd:images:scroll_of_psionic_blast_item.png|Scroll of Psionic Blast }} ==== Description ==== The Scroll of Psionic Blast is a type of scroll in Remixed Dungeon that creates a powerful mental blast affecting all visible creatures. ==== Effect ==== When this scroll is read, it creates a psionic blast that affects all creatures visible to the reader: * **Damage:** Deals damage between 1 and 2/3 of the target's max HP (RPD.Random:IntRange(1, math.floor(mob:ht() * 2 / 3))) * **Blindness:** Causes blindness for 3-6 turns (RPD.Random:Int(3, 6)) to all affected creatures including the player * **Area of Effect:** Affects all creatures in the field of view (fieldOfView array check) * **Self-Damage:** Also damages the player who reads the scroll * **Visual Effect:** Screen flashes white (0xFFFFFF color) via RPD.GameScene:flash() * **Sound:** Plays snd_blast sound effect via RPD.playSound() ==== Properties ==== * **Weight:** 5 * **Price:** 80 gold coins when identified, base price when unidentified (from `scripts/lib/scroll.lua`) * **Identification:** One use to identify (read to learn effect, sets known status) ==== Function ==== * **Reading:** When read aloud, the screen flashes white and a blast sound is played * **Invisibility Dispel:** Dispels invisibility from the reader via RPD.CharUtils:dispelInvisibility() * **Blindness Effect:** Causes temporary blindness to all creatures in field of view (including reader) * **High Risk/High Reward:** Can eliminate multiple enemies but at considerable risk to player * **Mob Iteration:** Iterates through all mobs on the level using level:getMobs() ==== Obtaining ==== * Found as random drops in dungeon levels * Available in shops * Sometimes found in chests * More commonly found on deeper dungeon levels ==== Strategy ==== * Most effective when there are multiple enemies in line of sight * Can be used to deal with dangerous creatures you need to blind anyway * Consider closing doors to limit the blast to specific areas * Timing is critical as you'll also be blinded after using it for 3-6 turns * Particularly effective against groups of powerful enemies * Damage dealt is between 1 and 2/3 of the target's max HP (not based on current HP) ==== Implementation ==== * **Lua Script**: `scripts/items/ScrollOfPsionicBlast.lua` (migrated from Java `com.watabou.pixeldungeon.items.scrolls.ScrollOfPsionicBlast`) ==== Code References ==== * **Lua Implementation:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/items/ScrollOfPsionicBlast.lua|ScrollOfPsionicBlast.lua]] * **Scroll Registration:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/scrolls/Scroll.java|Scroll.java]] - Scroll kind constant `PSIONIC_BLAST = "ScrollOfPsionicBlast"` * **AI Usage:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/ai/MobItemAi.java|MobItemAi.java]] - AI handling for offensive area throw * **String Resources:** * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values/strings_all.xml|ScrollOfPsionicBlast_Name]] * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values/strings_all.xml|ScrollOfPsionicBlast_Info]] ==== Related Items ==== * [[en:rpd:scroll_item|Scrolls]] - Other scrolls in the game * [[en:rpd:corpse_dust_item|Corpse Dust]] - Other item with area effect * [[en:rpd:scroll_of_teleportation_item|Scroll of Teleportation]] - Another scroll with potentially wide area effect {{tag> rpd items scrolls utility }}