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

Fixed some issues with displaying item's mods counter #3338

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

Vollch
Copy link
Contributor

@Vollch Vollch commented Oct 1, 2023

Summary

SUMMARY: Bugfixes "Fixed some issues with displaying item's mods counter"

Purpose of change

Fixes #212. Displayed name is formed by checking long else if chain, and because of that mods counter could be processed partially, or skipped, or override later parts.

Describe the solution

Rearranged processing order to make sure game won't skip any of mods check, nor following formatting.

Describe alternatives you've considered

Not fixing this bug.

Testing

Spawned some items, looks good.

Additional context

TOOL_ARMOR with both clothing and tool mods, and scabbard with both clothing mod and content:
image

@github-actions github-actions bot added the src changes related to source code. label Oct 1, 2023
@scarf005 scarf005 self-assigned this Oct 2, 2023
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

@scarf005 scarf005 added this pull request to the merge queue Oct 2, 2023
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.

before

image

after

Cataclysm: Bright Nights - 7e6a7a943526_01

@scarf005 scarf005 removed this pull request from the merge queue due to a manual request Oct 2, 2023
@chaosvolt chaosvolt added this pull request to the merge queue Oct 2, 2023
Merged via the queue into cataclysmbnteam:upload with commit 9d34b99 Oct 2, 2023
@Vollch Vollch deleted the modcnt branch October 3, 2023 00:36
olanti-p pushed a commit to olanti-p/Cataclysm-BN that referenced this pull request Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
src changes related to source code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modded back scabbard hides content name
3 participants