Skip to content

Commit

Permalink
Rounds oxyloss from bloodloss (#4172)
Browse files Browse the repository at this point in the history
# About the pull request

Rounds oxyloss from bloodloss

# Explain why it's good for the game

A ton of decimals is WACK


# 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: Morrow
add: Rounded oxyloss from bloodloss
/:cl:
  • Loading branch information
morrowwolf committed Aug 13, 2023
1 parent 5f4e608 commit 5a3d936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/mob/living/blood.dm
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
/// The limit of the oxyloss gained, ignoring oxyloss from the switch statement
var/maximum_oxyloss = Clamp((100 - blood_percentage) / 2, oxyloss, 100)
if(oxyloss < maximum_oxyloss)
oxyloss += max(additional_oxyloss, 0)
oxyloss += round(max(additional_oxyloss, 0))

//Bloodloss effects on nutrition
if(nutrition >= 300)
Expand Down

0 comments on commit 5a3d936

Please sign in to comment.