From ddf3618ce8b2eae35430c65674f27c07d922f433 Mon Sep 17 00:00:00 2001 From: arijust <54635208+arijust@users.noreply.github.com> Date: Sun, 8 Mar 2020 18:09:51 +0100 Subject: [PATCH] Magiclysm: Forest Tomb (#37699) * Create forest_tomb.json * Add forest tomb to overmap_specials * Add forest tomb to overmap_terrain * Add magic_animist item group * Add stone altar. * Lint * Lint. * use animist_items itemgroup instead * lint Co-authored-by: KorGgenT --- data/mods/Magiclysm/furniture.json | 19 +++ data/mods/Magiclysm/worldgen/forest_tomb.json | 134 ++++++++++++++++++ .../Magiclysm/worldgen/overmap_specials.json | 13 ++ .../Magiclysm/worldgen/overmap_terrain.json | 8 ++ 4 files changed, 174 insertions(+) create mode 100644 data/mods/Magiclysm/worldgen/forest_tomb.json diff --git a/data/mods/Magiclysm/furniture.json b/data/mods/Magiclysm/furniture.json index ec16f5732a843..e33595f37be77 100644 --- a/data/mods/Magiclysm/furniture.json +++ b/data/mods/Magiclysm/furniture.json @@ -186,5 +186,24 @@ { "item": "glass_shard", "count": [ 8, 12 ] } ] } + }, + { + "type": "furniture", + "id": "f_altar", + "name": "stone altar", + "move_cost_mod": 10, + "symbol": "H", + "color": "light_gray", + "coverage": 40, + "required_str": 30, + "flags": [ "BASHABLE" ], + "description": "This is big stone altar. Most commonly used in morally questionable rituals.", + "bash": { + "str_min": 30, + "str_max": 160, + "sound": "smash!", + "sound_fail": "thump.", + "items": [ { "item": "rock", "count": [ 5, 15 ] }, { "item": "sharp_rock", "count": [ 3, 5 ] } ] + } } ] diff --git a/data/mods/Magiclysm/worldgen/forest_tomb.json b/data/mods/Magiclysm/worldgen/forest_tomb.json new file mode 100644 index 0000000000000..f3775e43e80a3 --- /dev/null +++ b/data/mods/Magiclysm/worldgen/forest_tomb.json @@ -0,0 +1,134 @@ +[ + { + "type": "palette", + "id": "tomb", + "terrain": { + ".": "t_rock_floor", + " ": [ [ "t_grass_dead", 15 ], [ "t_dirt", 4 ], [ "t_dirtmound", 3 ], [ "t_rock_floor_no_roof", 4 ] ], + "T": "t_tree_dead", + "R": "t_rubble", + "S": "t_shrub", + "<": "t_slope_up", + ">": "t_slope_down", + "#": "t_rock" + }, + "furniture": { "H": "f_altar", "C": "f_coffin_c" }, + "items": { "R": { "group": "animist_items", "chance": 25 }, "H": { "item": "summon_undead_spellbook", "chance": 100 } }, + "monster": { "x": { "monster": "mon_skeleton", "chance": 50 }, "Z": { "monster": "mon_zombie_necro", "chance": 100 } } + }, + { + "type": "palette", + "id": "tomb_roof", + "terrain": { ".": [ "t_rock_roof" ], " ": [ "t_open_air" ] } + }, + { + "type": "mapgen", + "method": "json", + "om_terrain": [ "forest_tomb" ], + "//": "Ground level - Z-0.", + "weight": 100, + "object": { + "fill_ter": "t_rock_floor", + "rows": [ + " S ", + " S ", + " S ", + " S ", + " S ", + " S S ", + " ##<############### ", + " ################## ", + " S ####C.##>>##..C### ", + " ###x..........###............... ", + " .................. ", + " .................. ", + " .................> ", + " .................. ", + " .................. ", + " .................. ", + " .................. ", + " .................. ", + " .............>.... ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " " + ], + "palettes": [ "tomb_roof" ] + } + } +] diff --git a/data/mods/Magiclysm/worldgen/overmap_specials.json b/data/mods/Magiclysm/worldgen/overmap_specials.json index 793fa84e1f4bb..5bc70d91f610a 100644 --- a/data/mods/Magiclysm/worldgen/overmap_specials.json +++ b/data/mods/Magiclysm/worldgen/overmap_specials.json @@ -114,5 +114,18 @@ "city_sizes": [ 4, 12 ], "occurrences": [ 0, 1 ], "flags": [ "CLASSIC", "LAKE" ] + }, + { + "type": "overmap_special", + "id": "forest_tomb", + "overmaps": [ + { "point": [ 0, 0, 0 ], "overmap": "forest_tomb" }, + { "point": [ 0, 0, 1 ], "overmap": "forest_tomb_roof" }, + { "point": [ 0, 0, -1 ], "overmap": "forest_tomb_bottom" } + ], + "locations": [ "wilderness" ], + "city_distance": [ 20, -1 ], + "city_sizes": [ 0, 20 ], + "occurrences": [ 0, 1 ] } ] diff --git a/data/mods/Magiclysm/worldgen/overmap_terrain.json b/data/mods/Magiclysm/worldgen/overmap_terrain.json index 8405a6b82bd1d..2f31165bea373 100644 --- a/data/mods/Magiclysm/worldgen/overmap_terrain.json +++ b/data/mods/Magiclysm/worldgen/overmap_terrain.json @@ -353,6 +353,14 @@ "id": "wizardtower2_roof", "copy-from": "wizardtower1_ground" }, + { + "type": "overmap_terrain", + "id": "forest_tomb", + "name": "forest", + "sym": "F", + "color": "brown", + "see_cost": 5 + }, { "type": "overmap_terrain", "id": "magic_academy_ground",