Skip to content

Commit

Permalink
Moved overmap terrain definitions from mapgen json to overmap_terrain…
Browse files Browse the repository at this point in the history
….json
  • Loading branch information
ZhilkinSerg committed Jan 6, 2019
1 parent 76f3e9d commit 9dc3170
Show file tree
Hide file tree
Showing 12 changed files with 1,098 additions and 1,167 deletions.
292 changes: 141 additions & 151 deletions data/json/mapgen/animalpound.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,157 +20,147 @@
]
},
{
"id": "animalpound",
"type": "overmap_terrain",
"name": "animal pound",
"sym": 94,
"color": "i_brown",
"see_cost": 5,
"extras": "build",
"mapgen": [
{
"method": "json",
"weight": 400,
"object": {
"fill_ter": "t_floor",
"rows": [
"''''''''''~~~~'''''*''''",
"''''*'''''~~~~'*''''''''",
"''---------++---------''",
"''-].y-]%C....D-lt-tl-''",
"''-%c.-]cC.....-ll-ll-''",
"''-d..-r.C....y-ls-sl-''",
"''---i-R.C.....-+---+-'*",
"''-..................-''",
"*'---------++---------''",
"''-lllllll-ll-l|l|l|l-*'",
"''-======l-ll-^=^=^=^-''",
"''-l|l|l|l+ll+lllllll-''",
"''-a-a-a-l-ll---------''",
"''-Fllllil-ll-FFss#kk-''",
"''-a-a-a-l-ll-lllllll-''",
"''-l|l|l|l+ll-QlTllTl-f'",
"*'-======l-llill#ll#l-f'",
"''-lllllll-ll-------M-''",
"''----------M- '",
"''-R.......i , '",
"''--a-a--a-- , '",
"''| | | | , '",
"'*|========| '",
"'' ''"
],
"terrain": {
" ": "t_pavement",
",": "t_pavement_y",
"%": "t_console_broken",
"*": "t_shrub",
"+": "t_door_c",
"M": "t_door_metal_pickable",
"i": "t_door_locked_interior",
"-": "t_wall",
".": "t_floor",
"=": "t_chainfence_h",
"|": "t_chainfence_v",
"^": "t_chaingate_c",
"a": "t_chaingate_l",
"l": "t_linoleum_white",
"#": "t_linoleum_white",
"T": "t_linoleum_white",
"s": "t_linoleum_white",
"t": "t_linoleum_white",
"k": "t_linoleum_white",
"F": "t_linoleum_white",
"Q": "t_linoleum_white",
"'": "t_dirt",
"f": "t_dirt",
"~": "t_sidewalk"
},
"furniture": {
"#": "f_counter",
"C": "f_counter",
"D": "f_trashcan",
"Q": "f_trashcan",
"f": "f_dumpster",
"R": "f_locker",
"F": "f_locker",
"T": "f_table",
"]": "f_bookcase",
"c": "f_chair",
"d": "f_desk",
"r": "f_rack",
"k": "f_rack",
"s": "f_sink",
"y": "f_indoor_plant"
},
"toilets": { "t": { } },
"place_items": [
{ "item": "trash", "x": 14, "y": 3, "chance": 35, "repeat": [ 1, 3 ] },
{ "item": "trash", "x": 14, "y": 15, "chance": 35, "repeat": [ 1, 3 ] },
{ "item": "trash", "x": 22, "y": [ 15, 16 ], "chance": 35, "repeat": [ 2, 6 ] },
{ "item": "cleaning", "x": 3, "y": 13, "chance": 45, "repeat": [ 1, 3 ] },
{ "item": "cleaning", "x": 3, "y": 19, "chance": 45, "repeat": [ 1, 3 ] },
{ "item": "cleaning", "x": 7, "y": 6, "chance": 45, "repeat": [ 1, 3 ] },
{ "item": "cleaning", "x": 14, "y": 13, "chance": 45, "repeat": [ 1, 3 ] },
{ "item": "animalshelter_softdrug", "x": 3, "y": 5, "chance": 45, "repeat": [ 1, 2 ] },
{ "item": "animalshelter_softdrug", "x": 3, "y": 13, "chance": 45, "repeat": [ 1, 2 ] },
{ "item": "animalshelter_softdrug", "x": 3, "y": 19, "chance": 45, "repeat": [ 1, 2 ] },
{ "item": "animalshelter_softdrug", "x": 7, "y": 5, "chance": 45, "repeat": [ 1, 2 ] },
{ "item": "animalshelter_softdrug", "x": [ 18, 20 ], "y": 13, "chance": 45, "repeat": [ 1, 2 ] },
{ "item": "animalshelter_softdrug", "x": 16, "y": 16, "chance": 45, "repeat": [ 1, 2 ] },
{ "item": "animalshelter_softdrug", "x": 19, "y": 16, "chance": 45, "repeat": [ 1, 2 ] },
{ "item": "animalshelter_hardrug", "x": 15, "y": 13, "chance": 75, "repeat": [ 1, 3 ] },
{ "item": "waitingroom", "x": 3, "y": 5, "chance": 30, "repeat": [ 1, 2 ] },
{ "item": "waitingroom", "x": 9, "y": [ 5, 6 ], "chance": 30, "repeat": [ 1, 2 ] },
{ "item": "animalshelter_utility", "x": 3, "y": 13, "chance": 45, "repeat": [ 2, 3 ] },
{ "item": "animalshelter_utility", "x": 3, "y": 19, "chance": 35, "repeat": [ 1, 3 ] },
{ "item": "animalshelter_utility", "x": 14, "y": 13, "chance": 35, "repeat": [ 2, 5 ] },
{ "item": "animalshelter_utility", "x": 15, "y": 13, "chance": 35, "repeat": [ 2, 5 ] },
{ "item": "cubical_office", "x": 3, "y": 3, "chance": 25, "repeat": [ 1, 2 ] },
{ "item": "cubical_office", "x": 3, "y": 5, "chance": 25, "repeat": [ 1, 2 ] },
{ "item": "office", "x": 7, "y": [ 3, 4 ], "chance": 25, "repeat": [ 1, 2 ] },
{ "item": "doctors_books", "x": 3, "y": 3, "chance": 15, "repeat": [ 1, 2 ] },
{ "item": "doctors_books", "x": 15, "y": 13, "chance": 15, "repeat": [ 1, 2 ] }
],
"place_monsters": [
{ "monster": "GROUP_ANIMALPOUND_CATS", "x": 14, "y": 9, "chance": 10, "density": 0.05 },
{ "monster": "GROUP_ANIMALPOUND_CATS", "x": 16, "y": 9, "chance": 2, "density": 0.05 },
{ "monster": "GROUP_ANIMALPOUND_CATS", "x": 18, "y": 9, "chance": 10, "density": 0.05 },
{ "monster": "GROUP_ANIMALPOUND_CATS", "x": 20, "y": 9, "chance": 10, "density": 0.05 },
{ "monster": "GROUP_ANIMALPOUND_DOGS", "x": 3, "y": 11, "chance": 2, "density": 0.05 },
{ "monster": "GROUP_ANIMALPOUND_DOGS", "x": 5, "y": 11, "chance": 10, "density": 0.05 },
{ "monster": "GROUP_ANIMALPOUND_DOGS", "x": 7, "y": 11, "chance": 10, "density": 0.05 },
{ "monster": "GROUP_ANIMALPOUND_DOGS", "x": 3, "y": 15, "chance": 10, "density": 0.05 },
{ "monster": "GROUP_ANIMALPOUND_DOGS", "x": 5, "y": 15, "chance": 2, "density": 0.05 },
{ "monster": "GROUP_ANIMALPOUND_DOGS", "x": 7, "y": 15, "chance": 10, "density": 0.05 },
{
"monster": "GROUP_ANIMALPOUND_DOGS",
"x": [ 3, 4 ],
"y": 21,
"chance": 20,
"repeat": [ 1 ],
"density": 0.05
},
{
"monster": "GROUP_ANIMALPOUND_DOGS",
"x": [ 6, 7 ],
"y": 21,
"chance": 20,
"repeat": [ 1 ],
"density": 0.05
},
{
"monster": "GROUP_ANIMALPOUND_DOGS",
"x": [ 9, 10 ],
"y": 21,
"chance": 20,
"repeat": [ 1 ],
"density": 0.05
}
],
"place_vehicles": [ { "vehicle": "animalshelter", "x": 17, "y": 22, "chance": 25, "rotation": 180 } ]
"type": "mapgen",
"method": "json",
"om_terrain": [ "animalpound" ],
"weight": 400,
"object": {
"fill_ter": "t_floor",
"rows": [
"''''''''''~~~~'''''*''''",
"''''*'''''~~~~'*''''''''",
"''---------++---------''",
"''-].y-]%C....D-lt-tl-''",
"''-%c.-]cC.....-ll-ll-''",
"''-d..-r.C....y-ls-sl-''",
"''---i-R.C.....-+---+-'*",
"''-..................-''",
"*'---------++---------''",
"''-lllllll-ll-l|l|l|l-*'",
"''-======l-ll-^=^=^=^-''",
"''-l|l|l|l+ll+lllllll-''",
"''-a-a-a-l-ll---------''",
"''-Fllllil-ll-FFss#kk-''",
"''-a-a-a-l-ll-lllllll-''",
"''-l|l|l|l+ll-QlTllTl-f'",
"*'-======l-llill#ll#l-f'",
"''-lllllll-ll-------M-''",
"''----------M- '",
"''-R.......i , '",
"''--a-a--a-- , '",
"''| | | | , '",
"'*|========| '",
"'' ''"
],
"terrain": {
" ": "t_pavement",
",": "t_pavement_y",
"%": "t_console_broken",
"*": "t_shrub",
"+": "t_door_c",
"M": "t_door_metal_pickable",
"i": "t_door_locked_interior",
"-": "t_wall",
".": "t_floor",
"=": "t_chainfence_h",
"|": "t_chainfence_v",
"^": "t_chaingate_c",
"a": "t_chaingate_l",
"l": "t_linoleum_white",
"#": "t_linoleum_white",
"T": "t_linoleum_white",
"s": "t_linoleum_white",
"t": "t_linoleum_white",
"k": "t_linoleum_white",
"F": "t_linoleum_white",
"Q": "t_linoleum_white",
"'": "t_dirt",
"f": "t_dirt",
"~": "t_sidewalk"
},
"furniture": {
"#": "f_counter",
"C": "f_counter",
"D": "f_trashcan",
"Q": "f_trashcan",
"f": "f_dumpster",
"R": "f_locker",
"F": "f_locker",
"T": "f_table",
"]": "f_bookcase",
"c": "f_chair",
"d": "f_desk",
"r": "f_rack",
"k": "f_rack",
"s": "f_sink",
"y": "f_indoor_plant"
},
"toilets": { "t": { } },
"place_items": [
{ "item": "trash", "x": 14, "y": 3, "chance": 35, "repeat": [ 1, 3 ] },
{ "item": "trash", "x": 14, "y": 15, "chance": 35, "repeat": [ 1, 3 ] },
{ "item": "trash", "x": 22, "y": [ 15, 16 ], "chance": 35, "repeat": [ 2, 6 ] },
{ "item": "cleaning", "x": 3, "y": 13, "chance": 45, "repeat": [ 1, 3 ] },
{ "item": "cleaning", "x": 3, "y": 19, "chance": 45, "repeat": [ 1, 3 ] },
{ "item": "cleaning", "x": 7, "y": 6, "chance": 45, "repeat": [ 1, 3 ] },
{ "item": "cleaning", "x": 14, "y": 13, "chance": 45, "repeat": [ 1, 3 ] },
{ "item": "animalshelter_softdrug", "x": 3, "y": 5, "chance": 45, "repeat": [ 1, 2 ] },
{ "item": "animalshelter_softdrug", "x": 3, "y": 13, "chance": 45, "repeat": [ 1, 2 ] },
{ "item": "animalshelter_softdrug", "x": 3, "y": 19, "chance": 45, "repeat": [ 1, 2 ] },
{ "item": "animalshelter_softdrug", "x": 7, "y": 5, "chance": 45, "repeat": [ 1, 2 ] },
{ "item": "animalshelter_softdrug", "x": [ 18, 20 ], "y": 13, "chance": 45, "repeat": [ 1, 2 ] },
{ "item": "animalshelter_softdrug", "x": 16, "y": 16, "chance": 45, "repeat": [ 1, 2 ] },
{ "item": "animalshelter_softdrug", "x": 19, "y": 16, "chance": 45, "repeat": [ 1, 2 ] },
{ "item": "animalshelter_hardrug", "x": 15, "y": 13, "chance": 75, "repeat": [ 1, 3 ] },
{ "item": "waitingroom", "x": 3, "y": 5, "chance": 30, "repeat": [ 1, 2 ] },
{ "item": "waitingroom", "x": 9, "y": [ 5, 6 ], "chance": 30, "repeat": [ 1, 2 ] },
{ "item": "animalshelter_utility", "x": 3, "y": 13, "chance": 45, "repeat": [ 2, 3 ] },
{ "item": "animalshelter_utility", "x": 3, "y": 19, "chance": 35, "repeat": [ 1, 3 ] },
{ "item": "animalshelter_utility", "x": 14, "y": 13, "chance": 35, "repeat": [ 2, 5 ] },
{ "item": "animalshelter_utility", "x": 15, "y": 13, "chance": 35, "repeat": [ 2, 5 ] },
{ "item": "cubical_office", "x": 3, "y": 3, "chance": 25, "repeat": [ 1, 2 ] },
{ "item": "cubical_office", "x": 3, "y": 5, "chance": 25, "repeat": [ 1, 2 ] },
{ "item": "office", "x": 7, "y": [ 3, 4 ], "chance": 25, "repeat": [ 1, 2 ] },
{ "item": "doctors_books", "x": 3, "y": 3, "chance": 15, "repeat": [ 1, 2 ] },
{ "item": "doctors_books", "x": 15, "y": 13, "chance": 15, "repeat": [ 1, 2 ] }
],
"place_monsters": [
{ "monster": "GROUP_ANIMALPOUND_CATS", "x": 14, "y": 9, "chance": 10, "density": 0.05 },
{ "monster": "GROUP_ANIMALPOUND_CATS", "x": 16, "y": 9, "chance": 2, "density": 0.05 },
{ "monster": "GROUP_ANIMALPOUND_CATS", "x": 18, "y": 9, "chance": 10, "density": 0.05 },
{ "monster": "GROUP_ANIMALPOUND_CATS", "x": 20, "y": 9, "chance": 10, "density": 0.05 },
{ "monster": "GROUP_ANIMALPOUND_DOGS", "x": 3, "y": 11, "chance": 2, "density": 0.05 },
{ "monster": "GROUP_ANIMALPOUND_DOGS", "x": 5, "y": 11, "chance": 10, "density": 0.05 },
{ "monster": "GROUP_ANIMALPOUND_DOGS", "x": 7, "y": 11, "chance": 10, "density": 0.05 },
{ "monster": "GROUP_ANIMALPOUND_DOGS", "x": 3, "y": 15, "chance": 10, "density": 0.05 },
{ "monster": "GROUP_ANIMALPOUND_DOGS", "x": 5, "y": 15, "chance": 2, "density": 0.05 },
{ "monster": "GROUP_ANIMALPOUND_DOGS", "x": 7, "y": 15, "chance": 10, "density": 0.05 },
{
"monster": "GROUP_ANIMALPOUND_DOGS",
"x": [ 3, 4 ],
"y": 21,
"chance": 20,
"repeat": [ 1 ],
"density": 0.05
},
{
"monster": "GROUP_ANIMALPOUND_DOGS",
"x": [ 6, 7 ],
"y": 21,
"chance": 20,
"repeat": [ 1 ],
"density": 0.05
},
{
"monster": "GROUP_ANIMALPOUND_DOGS",
"x": [ 9, 10 ],
"y": 21,
"chance": 20,
"repeat": [ 1 ],
"density": 0.05
}
}
],
"flags": [ "SIDEWALK" ]
],
"place_vehicles": [ { "vehicle": "animalshelter", "x": 17, "y": 22, "chance": 25, "rotation": 180 } ]
}
}
]
Loading

0 comments on commit 9dc3170

Please sign in to comment.