Skip to content

Commit

Permalink
Normalises the HUD damage overlay so synths and predators HUD overlay…
Browse files Browse the repository at this point in the history
…s 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
<details>
<summary>Screenshots & Videos</summary>

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

</details>


# 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 <[email protected]>
  • Loading branch information
TheGamerdk and vero5123 committed Jun 16, 2024
1 parent cb6fe0c commit 2f7b912
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2f7b912

Please sign in to comment.