Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalises the HUD damage overlay so synths and predators HUD overlays trigger at the same %-wise damage as humans. #6452

Merged
merged 2 commits into from
Jun 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 = (src.getBruteLoss() + src.getFireLoss()) / max_health_normalisation + damageoverlaytemp
TheGamerdk marked this conversation as resolved.
Show resolved Hide resolved
damageoverlaytemp = 0 // We do this so we can detect if someone hits us or not.
if(hurtdamage)
var/severity = 0
Expand Down
Loading