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

Proper river shores under bridges #3212

Merged
merged 1 commit into from
Sep 24, 2023

Conversation

Vollch
Copy link
Contributor

@Vollch Vollch commented Sep 23, 2023

Summary

SUMMARY: Bugfixes "Proper river shores under bridges"

Purpose of change

Bridges used to override river shores if they started or traverse next to them. No more.
image

Describe the solution

Added predecessor_mapgen to bridges with new builtin mapgen, which looks around and generates suitable map.
Also there was a bug in mapgen of shore corners, which prevented them from spawning any dirt. Those weird corners always stumbled me. Fixed now.

Describe alternatives you've considered

A lot actually. Adding bunch of new terrains for different bridge\shore variations. Or forbidding bridges from spawning where it'll mess with shore. Or altering river shape. But then i remembered about predecessor_mapgen, which can do the job perfectly.

Testing

Generated bunch of bridges.

Additional context

In theory this mapgen can replace all other river terrains, but that's pretty ambitious task.

@github-actions github-actions bot added src changes related to source code. JSON related to game datas in JSON format. labels Sep 23, 2023
@scarf005 scarf005 requested a review from olanti-p September 23, 2023 02:00
Copy link
Member

@scarf005 scarf005 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
image
LGTM. next time, could you also screenshot before the PR to make it easier to compare changes?

@scarf005 scarf005 merged commit 56d8212 into cataclysmbnteam:upload Sep 24, 2023
18 checks passed
@Vollch Vollch deleted the bridgeshore branch September 24, 2023 15:24
scarf005 pushed a commit to scarf005/Cataclysm-BN that referenced this pull request Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JSON related to game datas in JSON format. src changes related to source code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants