fixes issue with the blood cap

This commit is contained in:
Timothy Teakettle
2022-06-16 15:51:46 +01:00
parent d1ba124743
commit 0a29f26eba
@@ -93,7 +93,7 @@
// don't allow toxinlover to push blood levels past BLOOD_VOLUME_MAXIMUM, but also don't set it back down to this if it's higher from something else
var/blood_cap = blood_volume > BLOOD_VOLUME_MAXIMUM ? blood_volume : BLOOD_VOLUME_MAXIMUM
if(amount > 0)
blood_volume blood_volume - min((3 * amount), blood_cap) //5x was too much, this is punishing enough.
blood_volume = min((blood_volume - (3 * amount)), blood_cap) //5x was too much, this is punishing enough.
else
blood_volume = min((blood_volume - amount), blood_cap)
return ..()