Merge pull request #6437 from Citadel-Station-13/upstream-merge-37214

[MIRROR] Fixes adjusting brain damage.
This commit is contained in:
LetterJay
2018-04-22 02:42:13 -05:00
committed by GitHub
+1 -1
View File
@@ -144,7 +144,7 @@
/obj/item/organ/brain/proc/get_brain_damage()
var/brain_damage_threshold = max_integrity * BRAIN_DAMAGE_INTEGRITY_MULTIPLIER
var/offset_integrity = obj_integrity - (max_integrity - brain_damage_threshold)
. = (1 - (offset_integrity / brain_damage_threshold)) * BRAIN_DAMAGE_DEATH
. = round((1 - (offset_integrity / brain_damage_threshold)) * BRAIN_DAMAGE_DEATH,0.1)
/obj/item/organ/brain/proc/adjust_brain_damage(amount, maximum)
var/adjusted_amount