====== Scroll of Teleportation - Code References ====== ===== Java Classes ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/scrolls/ScrollOfTeleportation.java|ScrollOfTeleportation.java]] - Main scroll implementation * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/scrolls/Scroll.java|Scroll.java]] - Parent class for all scrolls * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/CharUtils.java|CharUtils.java]] - Contains teleportRandom() method (lines 165-177) ===== JSON Configuration ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/levelsDesc/Treasury.json#L124|Treasury.json]] - Scroll spawn rate in treasury levels * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/levelsDesc/SpidersTreasury.json#L121|SpidersTreasury.json]] - Scroll spawn rate in spider treasury * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/itemsDesc/Scrolls.json|Scrolls.json]] - Item configuration ===== String Resources ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values/strings_all.xml#L1780-L1783|ScrollOfTeleportation strings (English)]] - Name, Info, Teleport, NoTeleport * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values/strings_all.xml#L2650-L2652|ScrollOfTeleportation_Teleport2, NoTeleport2 (English)]] - Objective-based messages * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-ru/strings_all.xml|ScrollOfTeleportation strings (Russian)]] * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-pt-rBR/strings_all.xml|String resource (Portuguese Brazilian)]] * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-fr/strings_all.xml|String resource (French)]] * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-ko/strings_all.xml|String resource (Korean)]] * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-es/strings_all.xml|String resource (Spanish)]] * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-uk/strings_all.xml|String resource (Ukrainian)]] * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-tr/strings_all.xml|String resource (Turkish)]] * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-zh-rTW/strings_all.xml|String resource (Chinese Traditional)]] * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-zh-rCN/strings_all.xml|String resource (Chinese Simplified)]] * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-ja/strings_all.xml|String resource (Japanese)]] * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-ms/strings_all.xml|String resource (Malay)]] * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-de/strings_all.xml|String resource (German)]] * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-el/strings_all.xml|String resource (Greek)]] * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-it/strings_all.xml|String resource (Italian)]] * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-pl/strings_all.xml|String resource (Polish)]] * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-hu/strings_all.xml|String resource (Hungarian)]] * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-in/strings_all.xml|String resource (Indonesian)]] ===== Entity Properties ===== * **Type**: Scroll (consumable item) * **Price**: 40 gold when identified * **Effect**: Teleports user to random location on current level * **Usage**: Single use (consumed upon reading) * **Time to Read**: TIME_TO_READ (inherited from Scroll base class) * **Dispels**: Invisibility buff on reader * **Sound**: Plays Assets.SND_READ when used * **Registration**: Registered in ItemFactory and Scroll class arrays ===== Related mr Entities ===== * [[mr:scroll_of_upgrade_item|Scroll of Upgrade (Item)]] * [[mr:scroll_of_identify_item|Scroll of Identify (Item)]] * [[mr:scroll_of_magic_mapping_item|Scroll of Magic Mapping (Item)]] * [[mr:scroll_of_terror_item|Scroll of Terror (Item)]] * [[mr:scroll_of_recharging_item|Scroll of Recharging (Item)]] * [[mr:scroll_of_remove_curse_item|Scroll of Remove Curse (Item)]]