Skip to content

buildingplan: link windows to existing zones - #5926

Open
Alistair-Afton wants to merge 1 commit into
DFHack:developfrom
Alistair-Afton:fix-planner-window-room-links
Open

Alistair-Afton wants to merge 1 commit into
DFHack:developfrom
Alistair-Afton:fix-planner-window-room-links

Conversation

@Alistair-Afton

Copy link
Copy Markdown
Contributor

Summary

  • treat glass and gem windows as valid room and zone contents when placing them through the Buildings module
  • populate both the building relations and zone contained buildings links
  • add fortress tests for both window types

Fixes #5693.

Testing

  • reproduced the missing links with a planned gem window in an existing zone
  • test -d C:/Users/Alistair Afton/source/repos/dfhack/test -t 'constructed_.*window'
  • Release build and install

Glass and gem windows cannot create rooms themselves, so canMakeRoom rejects them even though they contribute value to rooms and zones. Treat both window types as zoning candidates and cover the bidirectional links with fortress tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Creating gem windows using the planner don't add value to rooms

1 participant