Skip to content

Commit

Permalink
Jsonify beehive (#62608)
Browse files Browse the repository at this point in the history
  • Loading branch information
LovamKicsiGazsii authored Mar 2, 2023
1 parent bcc9493 commit f253bf3
Show file tree
Hide file tree
Showing 8 changed files with 229 additions and 194 deletions.
179 changes: 179 additions & 0 deletions data/json/mapgen/bugs/beehive.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
[
{
"type": "mapgen",
"method": "json",
"weight": 100,
"om_terrain": [
[ "hive_edge_00", "hive_edge_10", "hive_edge_20" ],
[ "hive_edge_01", "hive", "hive_edge_21" ],
[ "hive_edge_02", "hive_edge_12", "hive_edge_22" ]
],
"object": {
"fill_ter": "t_region_groundcover",
"rows": [
" ############ ",
" ##################### ",
" ##########|...|||########### ",
" #####.....|.....|.....######### ",
" #####.+.....|.....+.....|...###### ",
" ######..|.....|.....|.....|.....##### ",
" ######...|||...|||...|||...|+|...|||##### ",
" ######.||.||.+|.||.+|.||.||.||.||.||.||##### ",
" ######....|||...|||...|||...|||...|||...|||### ",
" ######.|.....|.....|.....|.....|.....|.....|..### ",
" ########...|.....+.....|.....|.....+.....|.....+...### ",
" ########.....|.....|.....+.....|.....|.....|.....|...#### ",
" ######..|||...|||...|||...|||...|||...|||...|+|...|||...### ",
" ######||.||.+|.||.||.||.|+.||.||.||.||.||.||.||.||.||.||.||### ",
" #####...|+|...|||...|||...|||...|||...+||...|||...|||...|||.### ",
" ####|.....|.....|.....|.....|.....|.....|.....|.....+.....|...## ",
" ####.|.....|.....|.....+.....|.....|.....|.....|.....|.....+...### ",
" ###..|.....|.....|.....|.....|.....|.....|.....|.....|.....|...### ",
" ###..|+|...|||...|+|...|||...|||...+||...|||...|||...|||...|||...## ",
" ####.||.||.||:||.||:||.||.||.||.||.||.||.||.||.||.|+.||.||.|+.||.|## ",
" ###|||...|||:::|||:::|||...|+|...|||...|||...|||...|||...|||...|||## ",
" ###.|.....|:::::|:::::|.....|.....+.....|.....|.....|.....|.....|.## ",
" ##..|.....|:::::|:::::+.....|.....|.....|.....+.....|.....|.....|.## ",
" ##..|.....|:::::+:::::|.....|.....|.....|.....|.....|.....|.....|.## ",
"###.|+|...|+|:::|||:::|||...|||...|||...|||...|||...|+|...|||...|+|### ",
"###||.||.||:||:+|:||:||.||.|+.||.||.||.+|.|+.||.||.||.||.||.||.||..### ",
"##||...|||:::|||:::|||...|||...|||...|||...|||...|||...|||...|||....### ",
"##|.....|:::::|:::::|.....|.....|.....+.....|.....|.....|.....+.....### ",
"##|.....+:::::|:::::+.....|.....|.....|.....|.....|.....+.....|.....|###",
"##|.....|:::::|:::::|.....+.....|.....|.....|.....|.....|.....|.....|###",
"##||...|||:::|+|:::|||...|||...|||...|||...|||...|+|...|||...|||...|||##",
"##.||.||.||:||.||:||.||.||.||.|+.||.||.||.||.|+.||.||.||.||.||.||.||.|##",
"##..|||...|||...|||...|||...|||...|||...|||...|||...|||...|||...|||...##",
"##...|.....|.....|.....+.....|.....|.....|.....|.....+.....|.....|....##",
"##...|.....+.....|.....|.....|.....|.....+.....|.....|.....|.....+....##",
"##...|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|....##",
"##..|+|...|||...||+...|||...|+|...|||...|||...|||...|||...|+|...|||...##",
"###||.||.||.||.||.||.||.||.||.||.||.|+.||.||.||.|+.||.||.||.||.||.||.|##",
"###|...|||...|||...|||...|||...|||...|||...|||...|||...|||...|||...|+|##",
" ###....|.....|.....+.....|.....|.....|.....|.....|.....|.....|.....|.##",
" ####...+.....|.....|.....|.....|.....|.....+.....|.....|.....|.....|###",
" ###...|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|###",
" ###.|||...|||...|||...|||...|||...|+|...|||...|||...+||...|||....### ",
" ###||.|+.||.||.||.||.||.||.||.||.||.||.||.||.||.|+.||.||.||.||.||### ",
" ####...|||...|||...|+|...||+...|||...|||...|||...|||...|||...|+|.## ",
" ###....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.### ",
" ###...|.....+.....|.....|.....+.....|.....|.....|.....|.....|.### ",
" ###...|.....|.....|.....|.....|.....|.....+.....|.....|.....|### ",
" ##..|||...|||...|||...|||...|||...|+|...|||...|||...+++...##### ",
" ##.||.||.||.||.||.||.||.|+.||.||.||.||.||.||.||.||.++.||##### ",
" ##+|...|+|...|||...|||...|||...|||...|||...|||...||+...##### ",
" ##|.....|.....|.....+.....|.....|.....|.....|.....+....### ",
" ###.....|.....|.....|.....+.....|.....|.....+.....+.... ",
" ###.....|.....|.....|.....|.....|.....+.....|.....+... ",
" ####...|||...|||...|||...|||...|||...|||...|||...|+.. ",
" ###..||.||.|+.||.|+.||.||.||.||.+|.||.||.|+.||.||#. ",
" ####|+...|||...|||...|||...|||...|||...|||...|||### ",
" ###|.....|.....|.....|.....|.....|.....|.....|.### ",
" ####.....|.....|.....|.....+.....|.....+.....|.## ",
" ###.....|.....+.....|.....|.....|.....|.....+### ",
" ###...|||...|||...|+|...|||...||+...|||...||### ",
" ####.||.||.||.||.||.||.||.+|.||.||.||.||.||.## ",
" ####+...|||...|||...|||...|||...|||...|+|..## ",
" ####....|.....+.....|.....|.....|.....|...## ",
" ####...+.....|.....|.....+.....|.....|..### ",
" ####..|.....|.....+.....|.....|.....|..### ",
" #####||...|||...|||...|||...|||...||##### ",
" ######|.||.+|.||.||.||.||.|+.||..###### ",
" ########...|||...|+|...|||...|####### ",
" ###########....|.....########## ",
" ############################ ",
" ############## "
],
"terrain": { "|": "t_wax", "#": "t_wax", ".": "t_floor_wax", ":": "t_floor_wax", "+": "t_floor_wax" },
"place_npcs": [ { "class": "apis", "x": 14, "y": 22 } ],
"item": { ".": { "item": "honeycomb", "chance": 1 }, ":": { "item": "royal_jelly", "chance": 10, "repeat": [ 1, 3 ] } },
"monster": { ".": { "group": "GROUP_BEEHIVE", "chance": 3 } }
}
},
{
"type": "mapgen",
"method": "json",
"om_terrain": [
[ "hive_edge_00_roof", "hive_edge_10_roof", "hive_edge_20_roof" ],
[ "hive_edge_01_roof", "hive_roof", "hive_edge_21_roof" ],
[ "hive_edge_02_roof", "hive_edge_12_roof", "hive_edge_22_roof" ]
],
"object": {
"rows": [
" ............ ",
" ..................... ",
" ............................ ",
" ............................... ",
" .................................. ",
" ..................................... ",
" ......................................... ",
" ............................................ ",
" .............................................. ",
" ................................................. ",
" ...................................................... ",
" ......................................................... ",
" ........................................................... ",
" .............................................................. ",
" ............................................................... ",
" ................................................................ ",
" .................................................................. ",
" .................................................................. ",
" ................................................................... ",
" .................................................................... ",
" .................................................................... ",
" .................................................................... ",
" .................................................................... ",
" .................................................................... ",
"...................................................................... ",
"...................................................................... ",
"....................................................................... ",
"....................................................................... ",
"........................................................................",
"........................................................................",
"........................................................................",
"........................................................................",
"........................................................................",
"........................................................................",
"........................................................................",
"........................................................................",
"........................................................................",
"........................................................................",
"........................................................................",
" .......................................................................",
" .......................................................................",
" ......................................................................",
" .................................................................... ",
" .................................................................... ",
" ................................................................... ",
" .................................................................. ",
" ................................................................. ",
" ................................................................ ",
" ............................................................... ",
" ............................................................. ",
" ............................................................ ",
" .......................................................... ",
" ....................................................... ",
" ...................................................... ",
" ..................................................... ",
" ................................................... ",
" ................................................... ",
" .................................................. ",
" ................................................. ",
" ................................................ ",
" ............................................... ",
" .............................................. ",
" ............................................. ",
" ............................................ ",
" ........................................... ",
" .......................................... ",
" ......................................... ",
" ....................................... ",
" ..................................... ",
" ............................... ",
" ............................ ",
" .............. "
],
"terrain": { " ": "t_open_air", ".": "t_floor_wax" }
}
}
]
3 changes: 2 additions & 1 deletion data/json/obsolete_terrains.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
"pond_swamp_west",
"temple_stairs",
"temple_finale",
"bunker_basement"
"bunker_basement",
"hive"
]
}
]
30 changes: 19 additions & 11 deletions data/json/overmap/overmap_special/specials.json
Original file line number Diff line number Diff line change
Expand Up @@ -397,22 +397,30 @@
"type": "overmap_special",
"id": "Bee Hive",
"overmaps": [
{ "point": [ 0, 0, 0 ], "overmap": "hive" },
{ "point": [ 0, 1, 0 ], "overmap": "hive" },
{ "point": [ 0, 2, 0 ], "overmap": "hive" },
{ "point": [ 1, 0, 0 ], "overmap": "hive" },
{ "point": [ 1, 1, 0 ], "overmap": "hive" },
{ "point": [ 1, 2, 0 ], "overmap": "hive" },
{ "point": [ 2, 0, 0 ], "overmap": "hive" },
{ "point": [ 2, 1, 0 ], "overmap": "hive" },
{ "point": [ 2, 2, 0 ], "overmap": "hive" }
{ "point": [ 0, 0, 0 ], "overmap": "hive_edge_00_north" },
{ "point": [ 0, 1, 0 ], "overmap": "hive_edge_01_north" },
{ "point": [ 0, 2, 0 ], "overmap": "hive_edge_02_north" },
{ "point": [ 1, 0, 0 ], "overmap": "hive_edge_10_north" },
{ "point": [ 1, 1, 0 ], "overmap": "hive_north" },
{ "point": [ 1, 2, 0 ], "overmap": "hive_edge_12_north" },
{ "point": [ 2, 0, 0 ], "overmap": "hive_edge_20_north" },
{ "point": [ 2, 1, 0 ], "overmap": "hive_edge_21_north" },
{ "point": [ 2, 2, 0 ], "overmap": "hive_edge_22_north" },
{ "point": [ 0, 0, 1 ], "overmap": "hive_edge_00_roof_north" },
{ "point": [ 0, 1, 1 ], "overmap": "hive_edge_01_roof_north" },
{ "point": [ 0, 2, 1 ], "overmap": "hive_edge_02_roof_north" },
{ "point": [ 1, 0, 1 ], "overmap": "hive_edge_10_roof_north" },
{ "point": [ 1, 1, 1 ], "overmap": "hive_roof_north" },
{ "point": [ 1, 2, 1 ], "overmap": "hive_edge_12_roof_north" },
{ "point": [ 2, 0, 1 ], "overmap": "hive_edge_20_roof_north" },
{ "point": [ 2, 1, 1 ], "overmap": "hive_edge_21_roof_north" },
{ "point": [ 2, 2, 1 ], "overmap": "hive_edge_22_roof_north" }
],
"locations": [ "wilderness" ],
"city_distance": [ 10, -1 ],
"occurrences": [ 80, 100 ],
"flags": [ "BEE", "UNIQUE", "WILDERNESS" ],
"rotate": false,
"spawns": { "group": "GROUP_BEE", "population": [ 20, 60 ], "radius": [ 2, 4 ] }
"spawns": { "group": "GROUP_BEE", "population": [ 100, 120 ], "radius": [ 10, 12 ] }
},
{
"type": "overmap_special",
Expand Down
28 changes: 28 additions & 0 deletions data/json/overmap/overmap_terrain/overmap_terrain.json
Original file line number Diff line number Diff line change
Expand Up @@ -968,5 +968,33 @@
"sym": "^",
"color": "brown",
"see_cost": 5
},
{
"type": "overmap_terrain",
"id": [
"hive_edge_00",
"hive_edge_10",
"hive_edge_20",
"hive_edge_01",
"hive",
"hive_edge_21",
"hive_edge_02",
"hive_edge_12",
"hive_edge_22",
"hive_edge_00_roof",
"hive_edge_10_roof",
"hive_edge_20_roof",
"hive_edge_01_roof",
"hive_roof",
"hive_edge_21_roof",
"hive_edge_02_roof",
"hive_edge_12_roof",
"hive_edge_22_roof"
],
"name": "bee hive",
"sym": "8",
"color": "yellow",
"see_cost": 3,
"flags": [ "RISK_HIGH" ]
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,6 @@
"see_cost": 2,
"flags": [ "KNOWN_DOWN", "NO_ROTATE", "SOURCE_SAFETY" ]
},
{
"type": "overmap_terrain",
"id": "hive",
"name": "bee hive",
"sym": "8",
"color": "yellow",
"see_cost": 3,
"flags": [ "NO_ROTATE", "RISK_HIGH" ]
},
{
"type": "overmap_terrain",
"id": "slimepit",
Expand Down
Loading

0 comments on commit f253bf3

Please sign in to comment.