Skip to content

Commit

Permalink
Rework basement spawns (#63713)
Browse files Browse the repository at this point in the history
* Roachless
* Non-house
  • Loading branch information
Venera3 authored Feb 25, 2023
1 parent 86a9ee0 commit d1a9132
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 39 deletions.
24 changes: 12 additions & 12 deletions data/json/mapgen/basement/basements.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
"^#|tCS|.............U|#^",
"^#||||||...CCCCCCUUUU|#^",
"^#| ||+|####|||||||#^",
"^#| | << !! |#^",
"^#| ! + |#^",
"^#| | ! |#^",
"^#| | << |#^",
"^#| + |#^",
"^#| | |#^",
"^#|||||| |#^",
"^#| | |#^",
"^#| + |#^",
"^#| ! | ! |#^",
"^#| | |#^",
"^#| | |#^",
"^#|||||| |#^",
"^#| | !! |#^",
"^#| ! + !! |#^",
"^#| | |#^",
"^#| | !! |#^",
"^#| + |#^",
"^#| | |#^",
"^#| | |#^",
"^#||||||||||||||||||||#^",
"^######################^",
"^^^^^^^^^^^^^^^^^^^^^^^^"
Expand Down Expand Up @@ -90,11 +90,11 @@
"^#| | |#^",
"^#| + |#^",
"^#| |< |#^",
"^#|||||| !!!!! |#^",
"^#| | !!!!! |#^",
"^#| + !!!!! |#^",
"^#| ! | !!!!! |#^",
"^#| | !!!!! |#^",
"^#|||||| |#^",
"^#| | |#^",
"^#| + |#^",
"^#| | |#^",
"^#| | |#^",
"^#|||||| |#^",
"^#| | |#^",
"^#| + |#^",
Expand Down
8 changes: 4 additions & 4 deletions data/json/mapgen/house/house05_ab.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,16 @@
"^#| | |#^",
"^#| + |#^",
"^#| | |#^",
"^#|||||| ! |#^",
"^#|||||| |#^",
"^#| | |#^",
"^#| + |#^",
"^#| | ! |#^",
"^#| | |#^",
"^#|||||| ! |#^",
"^#| | |#^",
"^#|||||| |#^",
"^#| | < |#^",
"^#| + |#^",
"^#| | |#^",
"^#| | !!!!!! |#^",
"^#| | |#^",
"^#||||||||||||||||||||#^",
"^######################^",
"^^^^^^^^^^^^^^^^^^^^^^^^"
Expand Down
3 changes: 1 addition & 2 deletions data/json/mapgen/house/house23.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,7 @@
{ "item": "feces_roach", "x": [ 3, 21 ], "y": [ 5, 19 ], "chance": 20, "repeat": [ 4, 8 ] }
],
"place_monster": [
{ "monster": "mon_large_cockroach", "x": [ 3, 21 ], "y": [ 5, 19 ], "chance": 100, "repeat": 8 },
{ "monster": "mon_giant_cockroach", "x": [ 3, 21 ], "y": [ 5, 19 ], "chance": 50, "repeat": 2 },
{ "monster": "mon_large_cockroach", "x": [ 3, 21 ], "y": [ 5, 19 ], "chance": 100, "repeat": [ 2, 6 ] },
{ "monster": "mon_plague_vector", "x": [ 3, 21 ], "y": [ 5, 19 ], "chance": 20 }
]
}
Expand Down
3 changes: 1 addition & 2 deletions data/json/mapgen/house/house38.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@
{ "item": "stereo", "x": 15, "y": 18, "chance": 35 }
],
"place_monster": [
{ "monster": "mon_large_cockroach", "x": [ 3, 21 ], "y": [ 6, 15 ], "chance": 100, "repeat": 8 },
{ "monster": "mon_giant_cockroach", "x": [ 3, 21 ], "y": [ 6, 15 ], "chance": 50, "repeat": 2 },
{ "monster": "mon_large_cockroach", "x": [ 3, 21 ], "y": [ 6, 15 ], "chance": 100, "repeat": [ 2, 6 ] },
{ "monster": "mon_plague_vector", "x": [ 3, 21 ], "y": [ 6, 15 ], "chance": 20 }
]
}
Expand Down
3 changes: 1 addition & 2 deletions data/json/mapgen/house/house42.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@
{ "item": "stereo", "x": 16, "y": 6, "chance": 35 }
],
"place_monster": [
{ "monster": "mon_large_cockroach", "x": [ 3, 21 ], "y": [ 6, 15 ], "chance": 100, "repeat": 8 },
{ "monster": "mon_giant_cockroach", "x": [ 3, 21 ], "y": [ 6, 15 ], "chance": 50, "repeat": 2 },
{ "monster": "mon_large_cockroach", "x": [ 3, 21 ], "y": [ 6, 15 ], "chance": 100, "repeat": [ 2, 6 ] },
{ "monster": "mon_plague_vector", "x": [ 3, 21 ], "y": [ 6, 15 ], "chance": 20 }
]
}
Expand Down
2 changes: 1 addition & 1 deletion data/json/mapgen/retirement_community.json
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
{ "group": "GROUP_RETIREMENT_COMMUNITY", "x": [ 34, 44 ], "y": [ 9, 13 ], "repeat": [ 2, 3 ] },
{ "group": "GROUP_RETIREMENT_COMMUNITY", "x": [ 48, 56 ], "y": [ 9, 13 ], "repeat": [ 2, 3 ] },
{ "group": "GROUP_RETIREMENT_COMMUNITY", "x": [ 73, 81 ], "y": [ 9, 13 ], "repeat": [ 2, 3 ] },
{ "monster": "mon_large_cockroach", "x": [ 85, 91 ], "y": [ 10 ], "chance": 100, "repeat": [ 6, 7 ] },
{ "monster": "mon_large_cockroach", "x": [ 85, 91 ], "y": [ 10 ], "chance": 50, "repeat": [ 2, 5 ] },
{ "monster": "mon_spider_cellar_giant", "x": [ 26, 30 ], "y": [ 9, 17 ], "chance": 100, "repeat": [ 3, 4 ] },
{ "monster": "mon_zombie_child", "x": [ 125 ], "y": [ 17 ], "chance": 100, "repeat": [ 1, 2 ] },
{ "monster": "mon_zombie_child", "x": [ 125 ], "y": [ 11 ], "chance": 100, "repeat": [ 1, 2 ] },
Expand Down
14 changes: 1 addition & 13 deletions data/json/mapgen_palettes/house_general_palette.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,19 +272,7 @@
"u": "t_thconc_floor",
"X": "t_thconc_floor"
},
"furniture": { "c": "f_exercise", "u": [ "f_ergometer", "f_ergometer_mechanical" ], "X": "f_punching_bag" },
"monsters": {
"!": [
{ "monster": "GROUP_ROACH", "chance": 70 },
{ "monster": "GROUP_PLAGUE_ROACH", "chance": 50 },
{ "monster": "GROUP_ZOMBIE", "chance": 100 }
],
".": [
{ "monster": "GROUP_ROACH", "chance": 80 },
{ "monster": "GROUP_PLAGUE_ROACH", "chance": 50 },
{ "monster": "GROUP_ZOMBIE", "chance": 60 }
]
}
"furniture": { "c": "f_exercise", "u": [ "f_ergometer", "f_ergometer_mechanical" ], "X": "f_punching_bag" }
},
{
"type": "palette",
Expand Down
14 changes: 12 additions & 2 deletions data/json/monstergroups/misc.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
{ "monster": "mon_zombie_pig", "weight": 10, "cost_multiplier": 25, "starts": "7 days", "pack_size": [ 1, 5 ] },
{ "monster": "mon_zombie_pig", "weight": 10, "cost_multiplier": 25, "starts": "28 days", "pack_size": [ 1, 5 ] },
{ "monster": "mon_zombie_pig", "weight": 10, "cost_multiplier": 25, "starts": "90 days", "pack_size": [ 1, 5 ] },
{ "monster": "mon_giant_cockroach", "weight": 10, "pack_size": [ 1, 5 ] },
{ "monster": "mon_giant_cockroach", "weight": 10, "pack_size": [ 1, 2 ] },
{ "monster": "mon_pregnant_giant_cockroach", "weight": 1, "cost_multiplier": 3 },
{ "monster": "mon_giant_cockroach_nymph", "weight": 5 },
{ "monster": "mon_tiger", "weight": 1, "cost_multiplier": 30 },
Expand Down Expand Up @@ -295,6 +295,16 @@
{ "monster": "mon_cicada_nymph", "weight": 10 }
]
},
{
"type": "monstergroup",
"name": "GROUP_BASEMENT_HOUSE",
"//": "60-30-10% chance of zombies/roaches/cellar spiders, no mixing enemies in the same spawn",
"monsters": [
{ "group": "GROUP_HOUSE", "weight": 6, "pack_size": [ 2, 6 ] },
{ "group": "GROUP_ROACH", "weight": 3, "pack_size": [ 3, 10 ] },
{ "group": "GROUP_SPIDER_BASEMENT", "weight": 1, "pack_size": [ 1, 5 ] }
]
},
{
"type": "monstergroup",
"name": "DUMP_ANIMALS",
Expand Down Expand Up @@ -335,7 +345,7 @@
"conditions": [ "DAWN", "DUSK", "NIGHT", "SPRING", "SUMMER", "AUTUMN" ]
},
{ "monster": "mon_spider_widow_giant", "weight": 30, "pack_size": [ 2, 4 ] },
{ "monster": "mon_giant_cockroach", "weight": 50, "pack_size": [ 3, 6 ] },
{ "monster": "mon_giant_cockroach", "weight": 50, "pack_size": [ 1, 3 ] },
{ "monster": "mon_black_rat", "weight": 30, "pack_size": [ 4, 8 ] },
{ "monster": "mon_wasp_small", "weight": 50, "pack_size": [ 2, 4 ] },
{ "monster": "mon_zombie_child", "weight": 20, "pack_size": [ 2, 6 ] },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
{
"type": "overmap_terrain",
"id": [ "pottery_cottage_basement", "farm_stills_3_basement", "ranch_camp_68_basement" ],
"spawns": { "group": "GROUP_BASEMENT_HOUSE", "population": [ 1, 1 ], "chance": 80 },
"copy-from": "generic_city_house_basement"
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1714,6 +1714,7 @@
{
"type": "overmap_terrain",
"id": [ "urban_14_1", "urban_14_2", "urban_25_1", "urban_25_2" ],
"spawns": { "group": "GROUP_BASEMENT_HOUSE", "population": [ 1, 1 ], "chance": 80 },
"copy-from": "generic_city_house_basement"
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,8 @@
"urban_18_1",
"urban_18_2"
],
"copy-from": "generic_city_house_basement"
"copy-from": "generic_city_house_basement",
"spawns": { "group": "GROUP_BASEMENT_HOUSE", "population": [ 1, 1 ], "chance": 80 }
},
{
"type": "overmap_terrain",
Expand Down

0 comments on commit d1a9132

Please sign in to comment.