Greetings.
I’ve been looking around the .jsons trying to find why trees in this game are tougher than reinforced steel walls, as far as vehicle impacts are concerned.
Turns out they are specifically set not to be breakable! I wonder why that is. Surely a sufficiently strong impact should bring the tree down?
I’ve made a little change for myself in the meantime, but exact numbers are hard to judge seeing as I don’t know how exactly they are applied. Still, here is what I added:
"type" : "terrain",
"id" : "t_tree",
"name": "tree",
"symbol": "7",
"color": "green",
"move_cost": 0,
"flags": ["FLAMMABLE_ASH", "BASHABLE", "NOITEM", "SUPPORTS_ROOF", "TREE", "REDUCE_SCENT"],
"bash": {
"str_min": 8, "str_max": 50,
"sound": "crAAAck!",
"sound_fail": "whump!",
"ter_set": "t_stump",
"items": [
{ "item": "stick", "amount": 5, "minamount": 1 },
{ "item": "splinter", "amount": 6, "minamount": 2 },
{ "item": "log", "amount": 1, "minamount": 0 }
]
}
},{
"type" : "terrain",
"id" : "t_stump",
"name": "stump",
"symbol": "i",
"color": "brown",
"move_cost": 4,
"flags": ["FLAMMABLE_ASH", "BASHABLE", "NOITEM", "TRANSPARENT", "REDUCE_SCENT"],
"bash": {
"str_min": 6, "str_max": 50,
"sound": "crack!",
"sound_fail": "whump!",
"ter_set": "t_dirt",
"items": [
{ "item": "splinter", "amount": 4, "minamount": 1 }
]
}
},{
"type" : "terrain",
"id" : "t_tree_young",
"name": "young tree",
"symbol": "1",
"color": "green",
"move_cost": 4,
"flags": ["TRANSPARENT", "BASHABLE", "FLAMMABLE_ASH", "NOITEM", "YOUNG", "REDUCE_SCENT"],
"bash": {
"str_min": 4, "str_max": 50,
"sound": "crunch!",
"sound_fail": "whack!",
"ter_set": "t_underbrush",
"items": [
{ "item": "stick", "amount": 3, "minamount": 0 }
]
}
},{
"type" : "terrain",
"id" : "t_tree_apple",
"name": "apple tree",
"symbol": "7",
"color": "ltgreen",
"move_cost": 0,
"flags": ["FLAMMABLE_ASH", "NOITEM", "BASHABLE", "SUPPORTS_ROOF", "TREE", "REDUCE_SCENT"],
"examine_action": "tree_apple",
"bash": {
"str_min": 8, "str_max": 50,
"sound": "crAAAck!",
"sound_fail": "whump!",
"ter_set": "t_stump",
"items": [
{ "item": "stick", "amount": 5, "minamount": 1 },
{ "item": "apple", "amount": 6, "minamount": 0 },
{ "item": "splinter", "amount": 6, "minamount": 2 },
{ "item": "log", "amount": 1, "minamount": 0 }
]
}
},{
The young tree was already there, I just posted the whole section between the tree and the apple tree. I added a “stump” object, and the “BASHABLE” tags to both trees, plus the requisite “bash” sections.