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

Critical Hits #2131

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

Critical Hits #2131

wants to merge 2 commits into from

Conversation

Kitsunemitsu
Copy link
Contributor

About The Pull Request

Adds a new Critical hit mechanic, separate from Poise.
You get 0.02% crit chance for every prudence you have
On Crit, get a bonus damage that scales with fortitude.

Adds in the ability for crit multiplier weapons and weapons that give a big bonus on crit.

Why It's Good For The Game

No fucking Clue.
We'll figure that out later.

Changelog

🆑
add: Added Critical Hits
/:cl:

@Kitsunemitsu Kitsunemitsu added the Feature Something new being added. label May 10, 2024
Update he.dm

adds critical hits

Update item_attack.dm
This reverts commit 6e3abc0.
Comment on lines +141 to +149
for(var/mob/living/L in range(1, user))
var/aoe = force
var/userjust = (get_modified_attribute_level(user, JUSTICE_ATTRIBUTE))
var/justicemod = 1 + userjust/100
aoe*=force_multiplier
aoe*=justicemod
if(L == user || ishuman(L))
continue
L.apply_damage(aoe, RED_DAMAGE, null, L.run_armor_check(null, BLACK_DAMAGE), spread_damage = TRUE)
Copy link
Contributor

Choose a reason for hiding this comment

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

Damage here should be calculated outside of the loop (We aren't expecting nor really caring if the user's stats change somehow in the middle of this instantaneous attack). This could also thereby utilize HitInTurf to prevent crits from hitting allies seemingly randomly.

@Kitsunemitsu
Copy link
Contributor Author

Will be pushed into the funny #2669 pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Something new being added.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants