Skip to content

Commit

Permalink
JSONize results of clearing rubble via bash results (#2452)
Browse files Browse the repository at this point in the history
* JSONize results of clearing rubble via bash results

* Also mods
  • Loading branch information
chaosvolt authored Mar 31, 2023
1 parent 2bff3a5 commit 662c8b4
Show file tree
Hide file tree
Showing 24 changed files with 106 additions and 152 deletions.
9 changes: 8 additions & 1 deletion data/json/furniture_and_terrain/furniture-rural.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@
"TINY",
"RUBBLE"
],
"examine_action": "rubble"
"examine_action": "rubble",
"bash": {
"str_min": 32,
"str_max": 80,
"sound": "smash!",
"sound_fail": "thump.",
"items": [ { "item": "splinter", "count": [ 25, 50 ] } ]
}
}
]
53 changes: 48 additions & 5 deletions data/json/furniture_and_terrain/furniture-terrains.json
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,18 @@
"TINY",
"RUBBLE"
],
"examine_action": "rubble"
"examine_action": "rubble",
"bash": {
"str_min": 32,
"str_max": 80,
"sound": "smash!",
"sound_fail": "thump.",
"items": [
{ "item": "nail", "charges": [ 5, 10 ] },
{ "item": "splinter", "count": [ 5, 10 ] },
{ "group": "building_rubble", "count": [ 1, 3 ] }
]
}
},
{
"type": "furniture",
Expand All @@ -539,7 +550,14 @@
"SHORT",
"RUBBLE"
],
"examine_action": "rubble"
"examine_action": "rubble",
"bash": {
"str_min": 32,
"str_max": 80,
"sound": "smash!",
"sound_fail": "thump.",
"items": [ { "item": "rock", "count": [ 5, 10 ] }, { "item": "sharp_rock", "count": [ 1, 5 ] } ]
}
},
{
"type": "furniture",
Expand All @@ -563,7 +581,14 @@
"SHORT",
"RUBBLE"
],
"examine_action": "rubble"
"examine_action": "rubble",
"bash": {
"str_min": 32,
"str_max": 80,
"sound": "smash!",
"sound_fail": "thump.",
"items": [ { "group": "trash", "count": [ 3, 6 ] } ]
}
},
{
"type": "furniture",
Expand All @@ -588,7 +613,18 @@
"SHORT",
"RUBBLE"
],
"examine_action": "rubble"
"examine_action": "rubble",
"bash": {
"str_min": 32,
"str_max": 80,
"sound": "smash!",
"sound_fail": "thump.",
"items": [
{ "item": "steel_chunk", "count": [ 1, 5 ] },
{ "item": "scrap", "count": [ 5, 10 ] },
{ "group": "wreckage", "count": [ 0, 2 ] }
]
}
},
{
"type": "furniture",
Expand All @@ -600,7 +636,14 @@
"move_cost_mod": 0,
"required_str": -1,
"flags": [ "TRANSPARENT", "NOCOLLIDE", "CONTAINER", "SEALED", "PLACE_ITEM", "RUBBLE" ],
"examine_action": "rubble"
"examine_action": "rubble",
"bash": {
"str_min": 32,
"str_max": 80,
"sound": "smash!",
"sound_fail": "thump.",
"items": [ { "item": "ash", "charges": [ 1, 100 ] } ]
}
},
{
"type": "furniture",
Expand Down
15 changes: 15 additions & 0 deletions data/json/itemgroups/trash_and_debris.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,5 +183,20 @@
[ "wheel_mount_medium", 10 ],
[ "alternator_car", 10 ]
]
},
{
"id": "building_rubble",
"type": "item_group",
"subtype": "distribution",
"entries": [
{ "item": "rock", "prob": 25 },
{ "item": "scrap", "prob": 10 },
{ "item": "splinter", "prob": 10 },
{ "item": "rebar", "prob": 25 },
{ "item": "nail", "prob": 5, "charges": [ 1, 10 ] },
{ "item": "glass_shard", "prob": 15, "count": [ 0, 1 ] },
{ "item": "wire", "prob": 5 },
{ "item": "splinter", "prob": 20 }
]
}
]
8 changes: 0 additions & 8 deletions data/json/mapgen/abandoned_barn.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,6 @@
],
"palettes": [ "desolatebarn_palette" ],
"place_items": [
{ "chance": 33, "item": "building_rubble", "x": 13, "y": 19 },
{ "chance": 33, "item": "building_rubble", "x": 14, "y": 19 },
{ "chance": 33, "item": "building_rubble", "x": 19, "y": 17 },
{ "chance": 33, "item": "building_rubble", "x": 19, "y": 18 },
{ "chance": 33, "item": "building_rubble", "x": 6, "y": 14 },
{ "chance": 33, "item": "building_rubble", "x": 7, "y": 14 },
{ "chance": 33, "item": "building_rubble", "x": 8, "y": 14 },
{ "chance": 33, "item": "building_rubble", "x": 13, "y": 11 },
{ "chance": 25, "item": "trash", "x": 19, "y": 19 },
{ "chance": 25, "item": "trash", "x": 15, "y": 15 },
{ "chance": 25, "item": "trash", "x": 20, "y": 12 },
Expand Down
24 changes: 12 additions & 12 deletions data/json/mapgen/cabin.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,18 @@
],
"palettes": [ "cabin_palette" ],
"place_rubble": [
{ "x": 20, "y": 17, "items": true },
{ "x": 19, "y": 18, "items": true },
{ "x": 20, "y": 18, "items": true },
{ "x": 18, "y": 19, "items": true },
{ "x": 19, "y": 19, "items": true },
{ "x": 20, "y": 19, "items": true },
{ "x": 19, "y": 3, "items": true },
{ "x": 20, "y": 3, "items": true },
{ "x": 21, "y": 3, "items": true },
{ "x": 20, "y": 4, "items": true },
{ "x": 21, "y": 4, "items": true },
{ "x": 21, "y": 5, "items": true }
{ "x": 20, "y": 17 },
{ "x": 19, "y": 18 },
{ "x": 20, "y": 18 },
{ "x": 18, "y": 19 },
{ "x": 19, "y": 19 },
{ "x": 20, "y": 19 },
{ "x": 19, "y": 3 },
{ "x": 20, "y": 3 },
{ "x": 21, "y": 3 },
{ "x": 20, "y": 4 },
{ "x": 21, "y": 4 },
{ "x": 21, "y": 5 }
],
"place_loot": [ { "group": "homeguns", "x": 7, "y": 9, "chance": 30, "ammo": 90, "magazine": 100 } ],
"place_monsters": [ { "monster": "GROUP_ZOMBIE", "x": 11, "y": 12 } ]
Expand Down
2 changes: 1 addition & 1 deletion data/json/mapgen/lab/lab_floorplans_1side.json
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@
"nested_mapgen_id": "lab_hulk_smash",
"object": {
"mapgensize": [ 24, 24 ],
"place_rubble": [ { "x": 11, "y": 4, "items": true }, { "x": 13, "y": 11, "items": true }, { "x": 12, "y": 13, "items": true } ],
"place_rubble": [ { "x": 11, "y": 4 }, { "x": 13, "y": 11 }, { "x": 12, "y": 13 } ],
"place_monster": [
{
"monster": [ "mon_zombie_hulk", "mon_skeleton_hulk", "mon_nakedmolerat_giant" ],
Expand Down
5 changes: 0 additions & 5 deletions data/json/mapgen/landfill.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"furniture": { "#": "f_rubble_landfill", ".": "f_null", "4": "f_null", "_": "f_null" },
"items": {
"#": [
{ "item": "trash", "chance": 25, "repeat": 2 },
{ "item": "road", "chance": 2 },
{ "item": "allclothes_damaged", "chance": 3 },
{ "item": "stoner", "chance": 1 },
Expand Down Expand Up @@ -65,7 +64,6 @@
"furniture": { "#": "f_rubble_landfill", ".": "f_null", "P": "f_sign", "_": "f_null" },
"items": {
"#": [
{ "item": "trash", "chance": 25, "repeat": 2 },
{ "item": "road", "chance": 2 },
{ "item": "allclothes_damaged", "chance": 3 },
{ "item": "stoner", "chance": 1 },
Expand Down Expand Up @@ -126,7 +124,6 @@
"furniture": { "#": "f_rubble_landfill", ".": "f_null", "7": "f_null", "_": "f_null", "s": "f_null" },
"items": {
"#": [
{ "item": "trash", "chance": 25, "repeat": 2 },
{ "item": "road", "chance": 2 },
{ "item": "allclothes_damaged", "chance": 3 },
{ "item": "stoner", "chance": 1 },
Expand Down Expand Up @@ -188,7 +185,6 @@
"furniture": { "#": "f_rubble_landfill", ".": "f_null", "_": "f_null", "s": "f_null", "|": "f_null" },
"items": {
"#": [
{ "item": "trash", "chance": 25, "repeat": 2 },
{ "item": "road", "chance": 2 },
{ "item": "allclothes_damaged", "chance": 3 },
{ "item": "stoner", "chance": 1 },
Expand Down Expand Up @@ -249,7 +245,6 @@
"furniture": { "#": "f_rubble_landfill", ".": "f_null", "7": "f_null", "_": "f_null", "|": "f_null" },
"items": {
"#": [
{ "item": "trash", "chance": 25, "repeat": 2 },
{ "item": "road", "chance": 2 },
{ "item": "allclothes_damaged", "chance": 3 },
{ "item": "stoner", "chance": 1 },
Expand Down
15 changes: 0 additions & 15 deletions data/json/mapgen/necropolis/necropolis.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,6 @@
{ "monster": "mon_irradiated_wanderer_3", "freq": 1, "cost_multiplier": 1 }
]
},
{
"id": "building_rubble",
"type": "item_group",
"subtype": "distribution",
"entries": [
{ "item": "rock", "prob": 25 },
{ "item": "scrap", "prob": 10 },
{ "item": "splinter", "prob": 10 },
{ "item": "rebar", "prob": 25 },
{ "item": "nail", "prob": 5 },
{ "item": "glass_shard", "prob": 15, "count": [ 0, 1 ] },
{ "item": "wire", "prob": 5 },
{ "item": "splinter", "prob": 20 }
]
},
{
"id": "vehicle_scrapped",
"type": "item_group",
Expand Down
6 changes: 0 additions & 6 deletions data/json/mapgen/ws_survivor_bunker.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,6 @@
"id": "oa_ig_sb_wood",
"items": [ [ "2x4", 20 ], [ "stick", 20 ], [ "pointy_stick", 10 ], [ "log", 20 ] ]
},
{
"type": "item_group",
"id": "oa_ig_sb_rubble",
"items": [ [ "rock", 20 ], [ "sharp_rock", 10 ] ]
},
{
"type": "item_group",
"id": "oa_ig_sb_water",
Expand Down Expand Up @@ -223,7 +218,6 @@
"C": { "item": "oa_ig_sb_rare", "chance": 40 },
"B": { "item": "bed", "chance": 80 },
"k": { "item": "oa_ig_sb_water", "chance": 60 },
"r": { "item": "oa_ig_sb_rubble", "chance": 80 },
"W": { "item": "oa_ig_sb_wood", "chance": 70 }
},
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@
],
"palettes": [ "national_guard_camp" ],
"items": {
"Y": { "item": "dirt_rubble", "chance": 60 },
"8": { "item": "dirt_rubble", "chance": 50 },
"z": { "item": "dirt_rubble", "chance": 25 },
"%": { "item": "fence_caught", "chance": 1 }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1287,8 +1287,7 @@
"r": { "item": "chem_lab", "chance": 40 },
"c": { "item": "chem_lab", "chance": 20 },
"g": { "item": "mut_lab", "chance": 25 },
"L": { "item": "sewage_plant", "chance": 40 },
"Z": { "item": "building_rubble", "chance": 60 }
"L": { "item": "sewage_plant", "chance": 40 }
},
"terrain": { "=": [ "t_door_metal_c", "t_door_metal_locked", "t_door_metal_locked", "t_door_metal_locked" ] },
"place_monsters": [
Expand Down
8 changes: 0 additions & 8 deletions data/mods/No_Hope/Mapgen/abandoned_barn.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,6 @@
],
"palettes": [ "desolatebarn_palette" ],
"place_items": [
{ "chance": 33, "item": "building_rubble", "x": 13, "y": 19 },
{ "chance": 33, "item": "building_rubble", "x": 14, "y": 19 },
{ "chance": 33, "item": "building_rubble", "x": 19, "y": 17 },
{ "chance": 33, "item": "building_rubble", "x": 19, "y": 18 },
{ "chance": 33, "item": "building_rubble", "x": 6, "y": 14 },
{ "chance": 33, "item": "building_rubble", "x": 7, "y": 14 },
{ "chance": 33, "item": "building_rubble", "x": 8, "y": 14 },
{ "chance": 33, "item": "building_rubble", "x": 13, "y": 11 },
{ "chance": 25, "item": "trash", "x": 19, "y": 19 },
{ "chance": 25, "item": "trash", "x": 15, "y": 15 },
{ "chance": 25, "item": "trash", "x": 20, "y": 12 },
Expand Down
2 changes: 1 addition & 1 deletion data/mods/No_Hope/Mapgen/lab_floorplans_1side.json
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@
"nested_mapgen_id": "lab_hulk_smash",
"object": {
"mapgensize": [ 24, 24 ],
"place_rubble": [ { "x": 11, "y": 4, "items": true }, { "x": 13, "y": 11, "items": true }, { "x": 12, "y": 13, "items": true } ],
"place_rubble": [ { "x": 11, "y": 4 }, { "x": 13, "y": 11 }, { "x": 12, "y": 13 } ],
"place_monster": [
{
"monster": [ "mon_zombie_hulk", "mon_skeleton_hulk", "mon_nakedmolerat_giant" ],
Expand Down
15 changes: 0 additions & 15 deletions data/mods/No_Hope/Mapgen/necropolis.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,6 @@
{ "monster": "mon_irradiated_wanderer_3", "freq": 1, "cost_multiplier": 1 }
]
},
{
"id": "building_rubble",
"type": "item_group",
"subtype": "distribution",
"entries": [
{ "item": "rock", "prob": 25 },
{ "item": "scrap", "prob": 10 },
{ "item": "splinter", "prob": 10 },
{ "item": "rebar", "prob": 25 },
{ "item": "nail", "prob": 5 },
{ "item": "glass_shard", "prob": 15, "count": [ 1, 8 ] },
{ "item": "wire", "prob": 5 },
{ "item": "splinter", "prob": 20 }
]
},
{
"id": "vehicle_scrapped",
"type": "item_group",
Expand Down
Loading

0 comments on commit 662c8b4

Please sign in to comment.