Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve place_nested: Fuzzy neighbor matching and an else option #24431

Merged

Conversation

BrianLefler
Copy link
Contributor

@BrianLefler BrianLefler commented Jul 23, 2018

  • "chunks" are placed if neighbors match, and "else_chunks" otherwise.
  • Neighbor now matches a substring ("lab" matches "ice_lab" & "lab_stairs")

This was used to fix-up lab json to better handle non-lab segments.

  • We used to try to match on empty_rock to decide to place border walls.
  • Now we match on "lab", and put border walls via else when there's no lab.
  • As a result, we correctly handle being next to subways, ant hives, etc.
  • The newly created is_ot_subtype() was also used to improve the lab mapgen.cpp.

…se option.

- "chunks" are placed if neighbors match, and "else_chunks" otherwise.
- Neighbor now matches a substring ("lab" matches "ice_lab" & "lab_stairs")

This was used to fix-up lab json to better handle non-lab segments.
- We used to try to match on empty_rock to decide to place border walls.
- Now we match on "lab", and put border walls in the else place.
- As a result, we correctly handle being next to subways, ant hives, etc.
- The newly created is_ot_subtype was also used to improve the lab mapgen.cpp.
@ZhilkinSerg ZhilkinSerg merged commit 56a2166 into CleverRaven:master Jul 23, 2018
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.

None yet

2 participants