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 double material thickness for some armor defs #53881

Merged
merged 1 commit into from
Dec 30, 2021

Conversation

bombasticSlacks
Copy link
Contributor

@bombasticSlacks bombasticSlacks commented Dec 30, 2021

Summary

Bugfixes "Fixed doulbe material thickness for some armor defs"

Purpose of change

I noticed with #53871 that the values for the mantle seemed wrong. I looked into it and there was a bug with materials being added together for items that had multiple separate body part definitions instead of averaged.

This is used very few times in the code currently so I didn't notice it in the original PR it went in

Describe the solution

the values are now properly averaged instead of added.

Describe alternatives you've considered

Testing

Very few items use this specific type of entry.

Easiest item to test is the Thigh-high boots, in current experimental they have 6 bash, cut, ballistic

They are 2mm thick leather, they should have 4, 4, 4

with this change they have 4,4,4

image

Additional context

@bombasticSlacks bombasticSlacks changed the title Fixed doulbe material thickness for some armor defs Fixed double material thickness for some armor defs Dec 30, 2021
@github-actions github-actions bot added astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions labels Dec 30, 2021
@BrettDong BrettDong added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` labels Dec 30, 2021
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Dec 30, 2021
@ZhilkinSerg ZhilkinSerg merged commit 75a01ca into CleverRaven:master Dec 30, 2021
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 <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants