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

Base crit eligibility on targeted body part hp #39029

Merged
merged 1 commit into from
Mar 26, 2020

Conversation

kevingranade
Copy link
Member

Summary

SUMMARY: None

Purpose of change

Fixes #39008
The crit eligibility code was considering total hp instead of per body part hp, making crits vs NPCs virtually unattainable.

Describe the solution

Base eligibility on head and torso HP respectively. This falls back to total hp in monsters,

Describe alternatives you've considered

Still planning on a more nuance body model based damage system, but not at the moment.

Testing

Get a super good marksman and shoot a NPC with a reasonably damaging rifle, a crit or headshot should result.

@Rivet-the-Zombie Rivet-the-Zombie merged commit d959c76 into CleverRaven:master Mar 26, 2020
fengjixuchui added a commit to fengjixuchui/Cataclysm-DDA that referenced this pull request Mar 26, 2020
Merge pull request CleverRaven#39029 from kevingranade/npc-crit-bugfix
@kevingranade kevingranade deleted the npc-crit-bugfix branch June 28, 2020 21:14
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.

NPCs are impossible to headshot and critically hit.
2 participants