Skip to content

Commit

Permalink
Have sparkling chasms teleport you out of the labyrinth. (CleverRaven#33
Browse files Browse the repository at this point in the history
)
  • Loading branch information
MNG-cataclysm authored May 16, 2024
1 parent 8af99fd commit 8a6123e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data/mods/CBM_Dungeon_Test/LS_furniture_and_terrain.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
},
{
Expand Down
18 changes: 18 additions & 0 deletions data/mods/CBM_Dungeon_Test/labryinth_traps.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
11 changes: 11 additions & 0 deletions data/mods/CBM_Dungeon_Test/labyrinth_EOC.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8a6123e

Please sign in to comment.