====== Chasm Trap - Code References ====== ===== Java Classes ===== * Chasm feature: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/levels/features/Chasm.java|Chasm.java]] * Trap base class: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/levels/objects/Trap.java|Trap.java]] * Level object factory: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/levels/objects/LevelObjectsFactory.java|LevelObjectsFactory.java]] ===== JSON Configuration ===== This trap is implemented via Lua script, no JSON configuration exists ===== String Resources ===== This trap uses general chasm string resources: Chasm You fell to your death... Do you really want to jump into the chasm? You can probably die. No, I changed my mind Yes, I know what I'm doing ===== Lua Scripts ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/scripts/traps/Chasm.lua|scripts/traps/Chasm.lua]] - Creates chasm terrain at trap location ===== Related mr Entities ===== * [[mr:chasm_level|Chasm (Mechanic)]] ===== Related Code ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/levels/features/Chasm.java|Chasm.java - Core chasm mechanics]] * [[https://github.com/NYRDS/remixed-dungeon/blob/master/scripts/traps/Chasm.lua|Chasm.lua - Trap script that places chasm]] * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/levels/Level.java|Level.java - Chasm integration]] * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values/strings_all.xml#L527-L531|Chasm String Resources]] {{tag> mr traps chasm level_object code-reference}}