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

Extract game::find_stairs from game::find_or_make_stairs #75963

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

CLIDragon
Copy link
Contributor

Summary

None

Purpose of change

Part of #74945. Sometimes we want to find stairs without spontaneously generating them. In addition, we reduce a ~200 line function into an ~50 line function and a ~150 line function.

Describe the solution

Describe alternatives you've considered

Testing

This is a direct refactor - if it builds it will work the same as before.

Additional context

Part of CleverRaven#74945. Sometimes we want to find stairs without spontaneously
generating them.
@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` new contributor json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Aug 26, 2024
@Maleclypse
Copy link
Member

@kevingranade @Procyonae this does pass basic build. I don't believe the clang error is related to this, I don't feel comfortable in my understanding of mapgen to review this. Please review and approve if you feel like it's good to go.

@kevingranade kevingranade merged commit 2430ee4 into CleverRaven:master Aug 27, 2024
20 of 28 checks passed
Knut-Aage-Hofseth pushed a commit to Knut-Aage-Hofseth/Cataclysm-DDA that referenced this pull request Aug 29, 2024
…#75963)

Part of CleverRaven#74945. Sometimes we want to find stairs without spontaneously
generating them.
@CLIDragon CLIDragon deleted the refactor-find-stairs branch November 7, 2024 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions new contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants