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

Feature: armor, protection, resistance damage types (Issue: #3) #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

RitikShah
Copy link

Adds 3 new api functions
apply/armor -> applies normal damage that respects armor (like melee attacks)
apply/projectile -> applies projectile damage (proj protection, etc)
apply/explosion -> applies explosive damage (blast protection)

Armor, armor toughness, resistance, and protection are all accounted for
for projectiles and explosions, proj protection and blast protection are accounted for

I've done some testing and the only inconsistencies are half a heart off due to rounding (since score based damage doesn't utilize scale for precision). This system will always truncate instead of rounding which can easily be changed.

See Issue #3 for more info.

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.

1 participant