From f62afe359adc57dd29d075eb56aac1bdf4252cd7 Mon Sep 17 00:00:00 2001 From: MNG-cataclysm Date: Thu, 16 May 2024 16:37:34 -0400 Subject: [PATCH] Have sparkling chasms teleport you out of the labyrinth. --- .../LS_furniture_and_terrain.json | 3 ++- .../mods/CBM_Dungeon_Test/labryinth_traps.json | 18 ++++++++++++++++++ data/mods/CBM_Dungeon_Test/labyrinth_EOC.json | 11 +++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 data/mods/CBM_Dungeon_Test/labryinth_traps.json diff --git a/data/mods/CBM_Dungeon_Test/LS_furniture_and_terrain.json b/data/mods/CBM_Dungeon_Test/LS_furniture_and_terrain.json index 7e352554d78b3..b7dba3356e102 100644 --- a/data/mods/CBM_Dungeon_Test/LS_furniture_and_terrain.json +++ b/data/mods/CBM_Dungeon_Test/LS_furniture_and_terrain.json @@ -18,7 +18,8 @@ "symbol": "*", "color": "dark_gray", "move_cost": -1, - "//": "Future: stepping on this should teleport you out of the labyrinth", + "coverage": 100, + "trap": "tr_nl_chasm", "flags": [ "TRANSPARENT", "SUPPORTS_ROOF", "INDOORS", "FLAT", "NOITEM" ] }, { diff --git a/data/mods/CBM_Dungeon_Test/labryinth_traps.json b/data/mods/CBM_Dungeon_Test/labryinth_traps.json new file mode 100644 index 0000000000000..908f3f763ce4a --- /dev/null +++ b/data/mods/CBM_Dungeon_Test/labryinth_traps.json @@ -0,0 +1,18 @@ +[ + { + "type": "trap", + "id": "tr_nl_chasm", + "name": "sparkling chasm", + "color": "dark_gray", + "action": "spell", + "copy-from": "tr_swirling_vortex", + "spell_data": { "id": "sparkling_chasm_exit" } + }, + { + "type": "SPELL", + "id": "sparkling_chasm_exit", + "name": "sparkling chasm exit", + "copy-from": "trap_base", + "effect_str": "EOC_LS_Exit_labyrinth_force" + } +] diff --git a/data/mods/CBM_Dungeon_Test/labyrinth_EOC.json b/data/mods/CBM_Dungeon_Test/labyrinth_EOC.json index 6802332751811..84d22116f966d 100644 --- a/data/mods/CBM_Dungeon_Test/labyrinth_EOC.json +++ b/data/mods/CBM_Dungeon_Test/labyrinth_EOC.json @@ -29,6 +29,17 @@ { "u_message": "Zworunk", "popup": true } ] }, + { + "type": "effect_on_condition", + "id": "EOC_LS_Exit_labyrinth_sparkling_chasm", + "effect": [ + { "u_teleport": { "u_val": "player_location_before_labyrinth" }, "force": true }, + { + "u_message": "As you fall into the chasm, you see a multitude of stars, spots, and other shapes. It's like your sinking ever further into a liquid solution, and falling through the air at the same time. Your head throbs with pain as the pressure increases, and you black out.", + "popup": true + } + ] + }, { "id": "EOC_LS_Computer", "type": "effect_on_condition",