Skip to content

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

Open
rx-dev wants to merge 2 commits intoErrorCraft:masterfrom
rx-modules:master
Open

Feature: armor, protection, resistance damage types (Issue: #3)#4
rx-dev wants to merge 2 commits intoErrorCraft:masterfrom
rx-modules:master

Conversation

@rx-dev
Copy link

@rx-dev rx-dev commented Aug 14, 2021

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