Skip to content

Commit

Permalink
Make all tile overlights destroyable (#64610)
Browse files Browse the repository at this point in the history
  • Loading branch information
teackot authored Mar 30, 2023
1 parent 39148cf commit f3e9c4e
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 38 deletions.
72 changes: 36 additions & 36 deletions data/json/furniture_and_terrain/terrain-floors-indoor.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@
"sound_fail_vol": 10,
"ter_set": "t_thconc_y",
"items": [ { "item": "glass_shard", "count": [ 8, 16 ] } ]
}
},
"shoot": { "chance_to_hit": 0, "reduce_damage": [ 0, 0 ], "reduce_damage_laser": [ 0, 0 ], "destroy_damage": [ 2, 8 ] }
},
{
"type": "terrain",
Expand Down Expand Up @@ -131,17 +132,16 @@
"looks_like": "t_floor",
"flags": [ "TRANSPARENT", "FLAMMABLE_HARD", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT", "ROAD" ],
"bash": {
"sound": "SMASH!",
"ter_set": "t_null",
"str_min": 50,
"str_max": 400,
"str_min_supported": 100,
"items": [
{ "item": "splinter", "count": [ 2, 8 ] },
{ "item": "nail", "charges": [ 5, 10 ] },
{ "item": "glass_shard", "count": [ 8, 16 ] }
]
}
"str_min": 4,
"str_max": 12,
"sound": "glass breaking!",
"sound_fail": "whack!",
"sound_vol": 16,
"sound_fail_vol": 10,
"ter_set": "t_floor",
"items": [ { "item": "glass_shard", "count": [ 8, 16 ] } ]
},
"shoot": { "chance_to_hit": 0, "reduce_damage": [ 0, 0 ], "reduce_damage_laser": [ 0, 0 ], "destroy_damage": [ 2, 8 ] }
},
{
"type": "terrain",
Expand All @@ -158,17 +158,16 @@
"looks_like": "t_dirtfloor",
"flags": [ "TRANSPARENT", "FLAMMABLE_HARD", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT", "DIGGABLE" ],
"bash": {
"sound": "SMASH!",
"str_min": 4,
"str_max": 12,
"sound": "glass breaking!",
"sound_fail": "whack!",
"sound_vol": 16,
"sound_fail_vol": 10,
"ter_set": "t_dirtfloor",
"str_min": 50,
"str_max": 400,
"str_min_supported": 100,
"items": [
{ "item": "splinter", "count": [ 2, 8 ] },
{ "item": "nail", "charges": [ 5, 10 ] },
{ "item": "glass_shard", "count": [ 8, 16 ] }
]
}
"items": [ { "item": "glass_shard", "count": [ 8, 16 ] } ]
},
"shoot": { "chance_to_hit": 0, "reduce_damage": [ 0, 0 ], "reduce_damage_laser": [ 0, 0 ], "destroy_damage": [ 2, 8 ] }
},
{
"type": "terrain",
Expand All @@ -184,18 +183,16 @@
"roof": "t_metal_roof",
"flags": [ "TRANSPARENT", "INDOORS", "FLAT", "ROAD" ],
"bash": {
"sound": "thump",
"str_min": 4,
"str_max": 12,
"sound": "glass breaking!",
"sound_fail": "whack!",
"sound_vol": 16,
"sound_fail_vol": 10,
"ter_set": "t_metal_floor",
"str_min": 200,
"str_max": 500,
"str_min_supported": 200,
"items": [
{ "item": "steel_lump", "count": [ 1, 4 ] },
{ "item": "steel_chunk", "count": [ 3, 12 ] },
{ "item": "scrap", "count": [ 9, 36 ] },
{ "item": "glass_shard", "count": [ 8, 16 ] }
]
}
"items": [ { "item": "glass_shard", "count": [ 8, 16 ] } ]
},
"shoot": { "chance_to_hit": 0, "reduce_damage": [ 0, 0 ], "reduce_damage_laser": [ 0, 0 ], "destroy_damage": [ 2, 8 ] }
},
{
"type": "terrain",
Expand All @@ -220,7 +217,8 @@
"sound_fail_vol": 10,
"ter_set": "t_strconc_floor",
"items": [ { "item": "glass_shard", "count": [ 8, 16 ] } ]
}
},
"shoot": { "chance_to_hit": 0, "reduce_damage": [ 0, 0 ], "reduce_damage_laser": [ 0, 0 ], "destroy_damage": [ 2, 8 ] }
},
{
"type": "terrain",
Expand All @@ -245,7 +243,8 @@
"sound_fail_vol": 10,
"ter_set": "t_linoleum_gray",
"items": [ { "item": "glass_shard", "count": [ 8, 16 ] } ]
}
},
"shoot": { "chance_to_hit": 0, "reduce_damage": [ 0, 0 ], "reduce_damage_laser": [ 0, 0 ], "destroy_damage": [ 2, 8 ] }
},
{
"type": "terrain",
Expand All @@ -270,7 +269,8 @@
"sound_fail_vol": 10,
"ter_set": "t_linoleum_white",
"items": [ { "item": "glass_shard", "count": [ 8, 16 ] } ]
}
},
"shoot": { "chance_to_hit": 0, "reduce_damage": [ 0, 0 ], "reduce_damage_laser": [ 0, 0 ], "destroy_damage": [ 2, 8 ] }
},
{
"type": "terrain",
Expand Down
15 changes: 13 additions & 2 deletions data/mods/No_Hope/terrain.json
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@
"sound_fail_vol": 10,
"ter_set": "t_carpet_red",
"items": [ { "item": "glass_shard", "count": [ 0, 2 ] } ]
}
},
"shoot": { "chance_to_hit": 0, "reduce_damage": [ 0, 0 ], "reduce_damage_laser": [ 0, 0 ], "destroy_damage": [ 2, 8 ] }
},
{
"type": "terrain",
Expand Down Expand Up @@ -334,6 +335,16 @@
"connects_to": "RAIL",
"roof": "t_flat_roof",
"flags": [ "TRANSPARENT", "INDOORS", "COLLAPSES", "SUPPORTS_ROOF", "FLAT", "ROAD" ],
"bash": { "ter_set": "t_null", "str_min": 75, "str_max": 400, "str_min_supported": 100, "bash_below": true }
"bash": {
"str_min": 4,
"str_max": 12,
"sound": "glass breaking!",
"sound_fail": "whack!",
"sound_vol": 16,
"sound_fail_vol": 10,
"ter_set": "t_rock_floor",
"items": [ { "item": "glass_shard", "count": [ 0, 2 ] } ]
},
"shoot": { "chance_to_hit": 0, "reduce_damage": [ 0, 0 ], "reduce_damage_laser": [ 0, 0 ], "destroy_damage": [ 2, 8 ] }
}
]

0 comments on commit f3e9c4e

Please sign in to comment.