Skip to content

Commit

Permalink
Bone crits are now only rolled for brute damage (shiptest-ss13#3181)
Browse files Browse the repository at this point in the history
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->
<!-- You can view Contributing.MD for a detailed description of the pull
request process. -->

## About The Pull Request


![image](https://github.com/shiptest-ss13/Shiptest/assets/24857008/b6659939-8c1e-4ef0-9c5b-a5bc6399d9ac)

## Why It's Good For The Game

Life or random damage ticks for disabler cat

## Changelog

:cl:
fix: brute damage is now required to break bones
/:cl:

<!-- Both :cl:'s are required for the changelog to work! You can put
your name to the right of the first :cl: if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->

Signed-off-by: Theos <theubernyan@gmail.com>
  • Loading branch information
SomeguyManperson authored and MysticalFaceLesS committed Jul 13, 2024
1 parent 2b54dad commit f3e6fba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/surgery/bodyparts/bodyparts.dm
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
burn *= 2

// Is the damage greater than the threshold, and if so, probability of damage + item force
if((brute_dam > bone_break_threshold) && prob(brute_dam + break_modifier))
if(brute && (brute_dam > bone_break_threshold) && prob(brute_dam + break_modifier))
break_bone()

// Bleeding is applied here
Expand Down

0 comments on commit f3e6fba

Please sign in to comment.