Skip to content

Commit

Permalink
Merge pull request #5831 from Stutternov/Fixes-Embed-Chance
Browse files Browse the repository at this point in the history
Embed Chance Fix
  • Loading branch information
Trilbyspaceclone authored Nov 11, 2024
2 parents 987f4b2 + 73ef627 commit 677dc8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/human/human_defense.dm
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ uniquic_armor_act
//Shrapnel
if(P.can_embed() && (check_absorb < 2) && !src.stats.getPerk(PERK_IRON_FLESH))
var/armor = getarmor_organ(organ, ARMOR_BULLET)
if(prob((20 + max(P.damage_types[BRUTE] - armor, -10) * P.embed_mult)))
if(prob((20 + max(P.damage_types[BRUTE] - (armor * 4), -10) * P.embed_mult)))
if(!P.shrapnel_type)
var/obj/item/material/shard/shrapnel/SP = new()
SP.name = (P.name != "shrapnel")? "[P.name] shrapnel" : "shrapnel"
Expand Down

0 comments on commit 677dc8e

Please sign in to comment.