DFHack / dfhack

Memory hacking library for Dwarf Fortress and a set of tools that use it
Other
1.84k stars 462 forks source link

Command to vaporize trees #1813

Open Bumber64 opened 3 years ago

Bumber64 commented 3 years ago

Implement a command to remove trees. Options for destroying all trees, certain species, tree at cursor, and those designated to be chopped. Option to drop logs or not.

Research needs to be done into how DF treats chopped trees versus ballista'd trees. Trees removed by ballista bolt have issues such as items not falling afterward, and potentially issues with cave ins if the tree is not truly removed and attempts to grow.

lethosor commented 3 years ago

This one might end up requiring some reverse-engineering, e.g. to figure out how tree-chopping jobs work. create-tree.lua uses arena mode's tree-creating logic, but I don't think arena mode has tree-destroying support at the moment.