From 2f7b91246147c4b5957bc5cf2904156cb975368a Mon Sep 17 00:00:00 2001 From: TheGamerdk <5618080+TheGamerdk@users.noreply.github.com> Date: Sun, 16 Jun 2024 13:51:35 +0200 Subject: [PATCH] Normalises the HUD damage overlay so synths and predators HUD overlays trigger at the same %-wise damage as humans. (#6452) # About the pull request As human, you get the max damage overlay at 85 damage, i.e 15% health As synth, you get the max damage overlay also at 85 damage, but that's 43% health. Normalises this, so synths get it at 15%, and so on. # Explain why it's good for the game If you've still got gas left in the tank, there's no reason to overlay a large and disturbing overlay. # Testing Photographs and Procedure
Screenshots & Videos Put screenshots and videos here with an empty line between the screenshots and the `
` tags.
# Changelog :cl: fix: The game no longer tricks predators and synths into thinking they're more damaged than they actually are. /:cl: --------- Co-authored-by: Vero <73014819+vero5123@users.noreply.github.com> --- .../living/carbon/human/life/handle_regular_hud_updates.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/carbon/human/life/handle_regular_hud_updates.dm b/code/modules/mob/living/carbon/human/life/handle_regular_hud_updates.dm index 0d850a47f73e..0772d952d082 100644 --- a/code/modules/mob/living/carbon/human/life/handle_regular_hud_updates.dm +++ b/code/modules/mob/living/carbon/human/life/handle_regular_hud_updates.dm @@ -40,9 +40,9 @@ else clear_fullscreen("oxy") - //Fire and Brute damage overlay (BSSR) - var/hurtdamage = src.getBruteLoss() + src.getFireLoss() + damageoverlaytemp + var/max_health_normalisation = (species ? species.total_health : 100) / 100 + var/hurtdamage = (getBruteLoss() + getFireLoss()) / max_health_normalisation + damageoverlaytemp damageoverlaytemp = 0 // We do this so we can detect if someone hits us or not. if(hurtdamage) var/severity = 0