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

create item_info_data as parameter for draw_item_info #35428

Merged
merged 4 commits into from
Nov 12, 2019

Conversation

KorGgenT
Copy link
Member

@KorGgenT KorGgenT commented Nov 9, 2019

Summary

SUMMARY: Infrastructure "Change parameters of draw_item_info to a struct"

Purpose of change

For ease of understanding what's going on, for ease of only changing one boolean without writing long string of default bools, for ease of expandability with item info. i'm intending to use this to solve
#28180

Describe the solution

just what it says on the tin.

Describe alternatives you've considered

expanding the parameters of this function indefinitely

Testing

ran the game, did some item compares, crafting recipes.

Additional context

No end user should be the wiser. this change should be functionally identical.

@KorGgenT KorGgenT added [C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style labels Nov 9, 2019
@kevingranade kevingranade merged commit 8a3d96d into CleverRaven:master Nov 12, 2019
AMurkin pushed a commit to AMurkin/Cataclysm-DDA that referenced this pull request Nov 13, 2019
AMurkin added a commit to AMurkin/Cataclysm-DDA that referenced this pull request Nov 13, 2019
@KorGgenT KorGgenT deleted the draw-item-info-refactor branch August 13, 2020 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants