Skip to content

Commit

Permalink
Instant delimb nerf (#6240)
Browse files Browse the repository at this point in the history
# About the pull request
Limbs can now only be delimbed if they are fractured
<!-- Remove this text and explain what the purpose of your PR is.

Mention if you have tested your changes. If you changed a map, make sure
you used the mapmerge tool.
If this is an Issue Correction, you can type "Fixes Issue #169420" to
link the PR to the corresponding Issue number #169420.

Remember: something that is self-evident to you might not be to others.
Explain your rationale fully, even if you feel it goes without saying.
-->

# Explain why it's good for the game
Instant delimbs based on nothing but rng from one slash are unfun to
play against
# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog
:cl:
balance: Limbs will now only be delimb-able if they are fractured
/:cl:
  • Loading branch information
Git-Nivrak committed May 11, 2024
1 parent ebe178d commit 11a1909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/organs/limbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@
var/no_perma_damage = owner.status_flags & NO_PERMANENT_DAMAGE
var/no_bone_break = owner.chem_effect_flags & CHEM_EFFECT_RESIST_FRACTURE
if(previous_brute > 0 && !is_ff && body_part != BODY_FLAG_CHEST && body_part != BODY_FLAG_GROIN && !no_limb_loss && !no_perma_damage && !no_bone_break)
if(CONFIG_GET(flag/limbs_can_break) && brute_dam >= max_damage * CONFIG_GET(number/organ_health_multiplier))
if(CONFIG_GET(flag/limbs_can_break) && brute_dam >= max_damage * CONFIG_GET(number/organ_health_multiplier) && (status & LIMB_BROKEN))
var/cut_prob = brute/max_damage * 5
if(prob(cut_prob))
limb_delimb(damage_source)
Expand Down

0 comments on commit 11a1909

Please sign in to comment.