Skip to content

Commit

Permalink
Magiclysm: Forest Tomb (#37699)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
arijust and KorGgenT authored Mar 8, 2020
1 parent 414f387 commit 6e83cb4
Show file tree
Hide file tree
Showing 4 changed files with 174 additions and 0 deletions.
19 changes: 19 additions & 0 deletions data/mods/Magiclysm/furniture.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 ] } ]
}
}
]
134 changes: 134 additions & 0 deletions data/mods/Magiclysm/worldgen/forest_tomb.json
Original file line number Diff line number Diff line change
@@ -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..........###<S ",
" ###...##..##..C### ",
" ###.####..######## ",
" ###..###..x..##### ",
" ###..C##..#...R### S ",
" S####R###..######## ",
" ########..###<#### ",
" T T S ",
" S ",
" T T S ",
" S ",
" T T ",
" S ",
" S ",
" S "
],
"palettes": [ "tomb" ]
}
},
{
"type": "mapgen",
"method": "json",
"om_terrain": [ "forest_tomb_bottom" ],
"//": "Underground level - Z -1.",
"weight": 100,
"object": {
"fill_ter": "t_rock_floor",
"rows": [
"########################",
"########################",
"########################",
"########################",
"########################",
"######.R################",
"######.####.......######",
"######.####..###.x######",
"#####C..C##<<##R.C######",
"#######.###..###########",
"#######.....############",
"###########..###########",
"###########..###########",
"############.###########",
"###########..###########",
"###########..###########",
"###########.############",
"########C......C########",
"########........########",
"########...HZ...########",
"########R......R########",
"########################",
"########################",
"########################"
],
"palettes": [ "tomb" ]
}
},
{
"type": "mapgen",
"method": "json",
"om_terrain": [ "forest_tomb_roof" ],
"//": "Roof level - Z +1.",
"weight": 100,
"object": {
"rows": [
" ",
" ",
" ",
" ",
" ",
" ",
" ..>............... ",
" .................. ",
" .................. ",
" .................> ",
" .................. ",
" .................. ",
" .................. ",
" .................. ",
" .................. ",
" .............>.... ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" "
],
"palettes": [ "tomb_roof" ]
}
}
]
13 changes: 13 additions & 0 deletions data/mods/Magiclysm/worldgen/overmap_specials.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
}
]
8 changes: 8 additions & 0 deletions data/mods/Magiclysm/worldgen/overmap_terrain.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 6e83cb4

Please sign in to comment.