From 5a3d9369c15df8e410cdae197def3c2cfd2a6622 Mon Sep 17 00:00:00 2001 From: morrowwolf Date: Sun, 13 Aug 2023 15:28:46 -0400 Subject: [PATCH] Rounds oxyloss from bloodloss (#4172) # 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
Screenshots & Videos Put screenshots and videos here with an empty line between the screenshots and the `
` tags.
# Changelog :cl: Morrow add: Rounded oxyloss from bloodloss /:cl: --- code/modules/mob/living/blood.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/blood.dm b/code/modules/mob/living/blood.dm index 72a95074e574..a6062276bd8e 100644 --- a/code/modules/mob/living/blood.dm +++ b/code/modules/mob/living/blood.dm @@ -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)