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

Unconditionally use material thickness for armor #36613

Merged
merged 1 commit into from
Jan 2, 2020

Conversation

ymber
Copy link
Member

@ymber ymber commented Jan 1, 2020

Summary

SUMMARY: Balance "Unconditionally use material thickness for armor"

Purpose of change

When I was dealing with horse armor I found thickness was not being used properly for cut armor calculations. Any item should be considering the thickness of its materials to calculate armor values.

Describe the solution

Unconditionally use material thickness in calculations in item::bash_resist and item::cut_resist.

Testing

Game compiles, affected armor items now have normal armor values.

@ymber ymber added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Items / Item Actions / Item Qualities Items and how they work and interact labels Jan 1, 2020
@kevingranade kevingranade merged commit eab27aa into CleverRaven:master Jan 2, 2020
@ymber ymber deleted the armor branch January 2, 2020 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Items / Item Actions / Item Qualities Items and how they work and interact
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants