-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First iteration of the Abyssal Hunger dungeon
- Loading branch information
1 parent
7fda42c
commit 6dd6fed
Showing
4 changed files
with
481 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
[ | ||
|
||
{ | ||
"type": "effect_on_condition", | ||
"id": "EOC_ENTER_ABYSSAL_HUNGER_ZONE", | ||
"effect": [ | ||
{ "u_location_variable": { "global_val": "original_loc" } }, | ||
{ "u_location_variable": { "global_val": "dungeon_loc" }, "z_adjust": 6, "z_override": true }, | ||
{ "u_location_variable": { "global_val": "dungeon_roof_loc" }, "z_adjust": 7, "z_override": true }, | ||
{ "revert_location": { "global_val": "dungeon_loc" }, "key": "abyssal_hunger_zone", "time_in_future": "infinite" }, | ||
{ "revert_location": { "global_val": "dungeon_roof_loc" }, "time_in_future": "infinite", "key": "abyssal_hunger_zone" }, | ||
{ "mapgen_update": "abyssal_hunger_roof", "target_var": { "global_val": "dungeon_roof_loc" } }, | ||
{ "mapgen_update": "abyssal_hunger_roof", "target_var": { "global_val": "dungeon_loc" } }, | ||
{ "u_teleport": { "global_val": "dungeon_start" }, "fail_message": "Something is very wrong!", "force": true }, | ||
{ "math": [ "abyssal_hunger_level", "=", "1" ] }, | ||
{ "u_message": "You were devoured by the Abyssal Hunger!" } | ||
] | ||
}, | ||
{ | ||
"type": "effect_on_condition", | ||
"id": "EOC_ENTER_ABYSSAL_HUNGER_NEXT_LEVEL", | ||
"condition": { "math": [ "abyssal_hunger_level", "<", "5" ] }, | ||
"effect": [ | ||
{ "math": [ "abyssal_hunger_level", "++" ] }, | ||
{ "mapgen_update": "portal_dungeon_cleanup", "target_var": { "global_val": "dungeon_loc" } }, | ||
{ "u_teleport": { "global_val": "dungeon_start" }, "fail_message": "Something is very wrong!", "force": true }, | ||
{ "mapgen_update": "abyssal_hunger_zone_regular", "target_var": { "global_val": "dungeon_loc" } }, | ||
{ "u_message": "You progress through the insides of the being that swallowed you." } | ||
], | ||
"false_effect": [ | ||
{ "math": [ "abyssal_hunger_level", "++" ] }, | ||
{ "mapgen_update": "portal_dungeon_cleanup", "target_var": { "global_val": "dungeon_loc" } }, | ||
{ "u_teleport": { "global_val": "dungeon_start" }, "fail_message": "Something is very wrong!", "force": true }, | ||
{ "mapgen_update": "abyssal_hunger_zone_brain", "target_var": { "global_val": "dungeon_loc" } }, | ||
{ "u_message": "You progress through the insides of the being that swallowed you." } | ||
] | ||
}, | ||
{ | ||
"type": "effect_on_condition", | ||
"id": "EOC_ABYSSAL_HUNGER_EXIT", | ||
"condition": { "math": [ "abyssal_hunger_level", "!=", "0" ] }, | ||
"effect": [ | ||
{ "run_eocs": "EOC_ABYSSAL_HUNGER_EXIT" }, | ||
{ "u_spawn_item": "abyssal_hunger_shard" } | ||
] | ||
}, | ||
{ | ||
"type": "effect_on_condition", | ||
"id": "EOC_ABYSSAL_HUNGER_EXIT", | ||
"condition": { "math": [ "abyssal_hunger_level", "!=", "0" ] }, | ||
"effect": [ | ||
{ "mapgen_update": "portal_dungeon_cleanup", "target_var": { "global_val": "dungeon_loc" } }, | ||
{ | ||
"u_teleport": { "global_val": "original_loc" }, | ||
"success_message": "You return to where you performed the ritual.", | ||
"fail_message": "Something is very wrong!", | ||
"force": true | ||
}, | ||
{ "math": [ "abyssal_hunger_level", "=", "0" ] } | ||
] | ||
}, | ||
{ | ||
"id": "EOC_DEATH_ABYSSAL_HUNGER", | ||
"type": "effect_on_condition", | ||
"eoc_type": "AVATAR_DEATH", | ||
"condition": { "math": [ "abyssal_hunger_level", "!=", "0" ] }, | ||
"effect": [ | ||
{ | ||
"u_message": "It is unclear if you were slain by an immune system or digested but suffice to say, you are no more.", | ||
"popup": true | ||
}, | ||
{ "run_eocs": "EOC_ABYSSAL_HUNGER_EXIT" } | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
184 changes: 184 additions & 0 deletions
184
data/mods/Xedra_Evolved/mapgen/abyssal_hunger_zone.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,184 @@ | ||
[ | ||
{ | ||
"type": "palette", | ||
"id": "abyssal_hunger_palette", | ||
"terrain": { "0": "t_abyssal_flesh_floor", "1": "t_abyssal_flesh_wall", "B": "t_abyssal_brain", "T": "f_shard_location" } | ||
}, | ||
{ | ||
"type": "mapgen", | ||
"method": "json", | ||
"update_mapgen_id": "portal_dungeon_roof", | ||
"object": { | ||
"set": [ { "square": "terrain", "id": "t_abyssal_flesh_roof", "x": 0, "y": 0, "x2": 23, "y2": 23 } ], | ||
"flags": [ "ERASE_ALL_BEFORE_PLACING_TERRAIN", "NO_UNDERLYING_ROTATE" ] | ||
} | ||
}, | ||
{ | ||
"type": "mapgen", | ||
"method": "json", | ||
"update_mapgen_id": "abyssal_hunger_zone_regular", | ||
"object": { | ||
"rows": [ | ||
"aaaaaaaaaaaaaaaaaaaaaaaa", | ||
"aaaaaaaaaaaaaaaaaaaaaaaa", | ||
"aaaa1111111111111111aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa1111111111111111aaaa", | ||
"aaaaaaaaaaaaaaaaaaaaaaaa", | ||
"aaaaaaaaaaaaaaaaaaaaaaaa" | ||
], | ||
"palettes": [ "abyssal_hunger_palette" ], | ||
"flags": [ "ERASE_ALL_BEFORE_PLACING_TERRAIN", "NO_UNDERLYING_ROTATE" ], | ||
"set": [ { "square": "furniture", "id": "f_null", "x": 0, "x2": 23, "y": 0, "y2": 23 }, | ||
{ "point": "variable", "id": "dungeon_start", "x": 1, "y": 2 }, | ||
{ "point": "trap", "id": "tr_abyssal_hunger_next_level", "x": [ 1, 22 ], "y": 22 } ], | ||
"place_monster": [ { "group": "GROUP_ABYSSAL_HUNGER_CELLS", "x": [ 5, 18 ], "y": [ 5, 18 ], "repeat": [ 12, 16 ] } ] | ||
} | ||
}, | ||
{ | ||
"type": "mapgen", | ||
"method": "json", | ||
"update_mapgen_id": "abyssal_hunger_zone_brain", | ||
"object": { | ||
"rows": [ | ||
"aaaaaaaaaaaaaaaaaaaaaaaa", | ||
"aaaaaaaaaaaaaaaaaaaaaaaa", | ||
"aaaa1111111111111111aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa10000BB00BB00001aaaa", | ||
"aaaa10000BB00BB00001aaaa", | ||
"aaaa1000BBBTTBBB0001aaaa", | ||
"aaaa1000BBBBBBBB0001aaaa", | ||
"aaaa1000BBBBBBBB0001aaaa", | ||
"aaaa1000BBBBBBBB0001aaaa", | ||
"aaaa10000BBBBBB00001aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa1000000000000001aaaa", | ||
"aaaa1111111111111111aaaa", | ||
"aaaaaaaaaaaaaaaaaaaaaaaa", | ||
"aaaaaaaaaaaaaaaaaaaaaaaa" | ||
], | ||
"palettes": [ "abyssal_hunger_palette" ], | ||
"flags": [ "ERASE_ALL_BEFORE_PLACING_TERRAIN", "NO_UNDERLYING_ROTATE" ], | ||
"set": [ { "square": "furniture", "id": "f_null", "x": 0, "x2": 23, "y": 0, "y2": 23 }, | ||
{ "point": "variable", "id": "dungeon_start", "x": 1, "y": 2 }, | ||
{ "point": "trap", "id": "tr_portal_dungeon_next_level", "x": [ 1, 22 ], "y": 22 } ], | ||
"place_monster": [ { "group": "GROUP_ABYSSAL_HUNGER_CELLS", "x": [ 5, 18 ], "y": [ 5, 18 ], "repeat": [ 22, 26 ] } ] | ||
} | ||
}, | ||
{ | ||
"type": "trap", | ||
"id": "tr_abyssal_hunger_next_level", | ||
"name": "Swirling vortex", | ||
"color": "blue", | ||
"copy-from": "tr_swirling_vortex", | ||
"action": "spell", | ||
"spell_data": { "id": "abyssal_hunger_next_level" } | ||
}, | ||
{ | ||
"type": "SPELL", | ||
"id": "abyssal_hunger_next_level", | ||
"name": "abyssal hunger next level", | ||
"copy-from": "trap_base", | ||
"effect_str": "EOC_PORTAL_STORM_DUNGEON_NEXT_LEVEL" | ||
}, | ||
{ | ||
"type": "furniture", | ||
"id": "f_shard_location", | ||
"name": "shard-filled brain chunk", | ||
"description": "A chunk of brain matter holding some shards akin to the one you are looking for. Examine to pick one.", | ||
"//": "On examine, activates the EOC cthat grants the player the shard before sending them back to the ritual point.", | ||
"symbol": "S", | ||
"color": "dark_gray", | ||
"move_cost_mod": -1, | ||
"coverage": 0, | ||
"required_str": -1, | ||
"flags": [ "NOCOLLIDE", "NO_PICKUP_ON_EXAMINE", "TRANSPARENT" ], | ||
"examine_action": { "type": "effect_on_condition", "effect_on_conditions": [ "EOC_ABYSSAL_HUNGER_GRANT_SHARD" ] } | ||
}, | ||
{ | ||
"type": "terrain", | ||
"id": "t_abyssal_flesh_wall", | ||
"name": "warped flesh wall", | ||
"description": "Cold to the touch, the deformed flesh of this monstrous being churns as it perceives your presence.", | ||
"symbol": "LINE_OXOX", | ||
"color": "magenta_red", | ||
"move_cost": 0, | ||
"coverage": 100, | ||
"roof": "t_nm_floor_flesh", | ||
"connect_groups": "WALL", | ||
"connects_to": "WALL", | ||
"flags": [ | ||
"NOITEM", | ||
"SUPPORTS_ROOF", | ||
"WALL", | ||
"NO_SCENT", | ||
"AUTO_WALL_SYMBOL", | ||
"BLOCK_WIND" | ||
], | ||
"looks_like": "t_nm_wall_flesh", | ||
"bash": { | ||
"str_min": 99999, | ||
"str_max": 99999, | ||
"sound": "please report the bug allowing you to destroy these walls on github.", | ||
"sound_fail": "whump!", | ||
"ter_set": "t_abyssal_flesh_floor", | ||
"items": [ { "item": "meat_tainted", "count": [ 1, 1 ] } ] | ||
} | ||
}, | ||
|
||
|
||
|
||
{ | ||
"type": "terrain", | ||
"id": "t_abyssal_flesh_floor", | ||
"name": "warped flesh floor", | ||
"description": "Walking over the innards of this monstrous beast, you can feel it move underneath your feet.", | ||
"symbol": ".", | ||
"color": "magenta_white", | ||
"move_cost": 1, | ||
"connect_groups": "INDOORFLOOR", | ||
"flags": [ | ||
"TRANSPARENT", | ||
"SUPPORTS_ROOF", | ||
"INDOORS", | ||
"FLAT" | ||
], | ||
"looks_like": "t_nm_floor_flesh" | ||
}, | ||
{ | ||
"type": "terrain", | ||
"id": "t_abyssal_flesh_roof", | ||
"name": "warped flesh roof", | ||
"description": "A section of flat, flesh-like rooftop.", | ||
"symbol": ".", | ||
"color": "magenta", | ||
"move_cost": 2, | ||
"flags": [ "FLAT" ] | ||
} | ||
] |
Oops, something went wrong.