Skip to content

Commit

Permalink
feat(content, port): port treetops and ability to climb trees from DDA (
Browse files Browse the repository at this point in the history
#5167)

* couple three things

* push through changes to terrain-roofs.json and mapdata

* adjust treetop roofs

* unstable implementation of tree climbing

* change trees to use CLIMBABLE rather than CLIMBABLE_ADJACENT

* make treetop collapse if tree is cut down

* make neighboring treetops not automatically self-destruct on tree destroy

* Updates `collapse_at()` function

Collapses can no longer collapse roof's that are supported by walls. This means that roof collapse propagation will be contained within rooms. unless the walls are given `COLLAPSES` as a flag.

Makes `SINGLE_SUPPORT` flag unnecessary, the only edge case possible if that chopping down a tree will propagate collapse to any unsupported roofs nearby, which is easily explained by the tree hitting things on the way down and thus may be considered expected behaviour.

* Changes to fit my suggestions

Given that the PR OP doesn't seem to be around at the moment and they are fairly simple fixes.

* Updated format

Moves "roof" before "flag" on all trees

Removed unused giant fern treetop.

---------

Co-authored-by: fairyarmadillo <94415528+fairyarmadillo@users.noreply.github.com>
Co-authored-by: Ethan Meade <ethanmeade@ucsb.edu>
Co-authored-by: KheirFerrum <102964889+KheirFerrum@users.noreply.github.com>
  • Loading branch information
4 people authored Nov 15, 2024
1 parent cf30576 commit 71e6f0c
Show file tree
Hide file tree
Showing 5 changed files with 149 additions and 65 deletions.
Loading

0 comments on commit 71e6f0c

Please sign in to comment.