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

fix computation of melee and ranged coverage #158

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

pizzasgood
Copy link
Contributor

Armors which define multiple coverage values for different sublocations weren't falling back on the default coverage value for that location when no cover_melee and cover_ranged values were set. This could be seen in the tshirt, where it would display separate and bogus values for melee and ranged coverage even though no such coverages were defined in the JSON.

Copy link
Owner

@nornagon nornagon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh wow, thanks for this! Do you mind if I add you to the contributors list in the README?

@pizzasgood
Copy link
Contributor Author

I guess that's fine, sure.

@nornagon nornagon merged commit f096203 into nornagon:main Nov 17, 2023
@nornagon
Copy link
Owner

Does this fix #96...?

@pizzasgood
Copy link
Contributor Author

Only part of it. It gets rid of those Melee and Ranged values, but it doesn't address the 150% coverage down in the materials section of the output.

@pizzasgood pizzasgood deleted the fix_coverages branch December 5, 2023 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants