Liver Tweaks (#6874)

The liver's ability to deal with toxins was super ultra giga-bad. This lead to damage that was pretty annoying to deal with, and definite round-enders for Vaurca.
This PR adds a tolerance level to livers, and gives Vaurca and Vox livers a higher tolerance to toxins, that being up to 20 toxins. It also minorly boosts all the other species' tolerance to 5 toxins, rather than 3.
Vaurca get the toxin chemical added to their bloodstream when they breathe in oxygen, so damage will persist if you start breathing phoron after having no oxygen for a bit. Get to medical ASAP if this happens, anti-toxin will nullify the liver damaging process completely.
With this update, you have slightly more leeway with lag and mask switches.
This commit is contained in:
Geeves
2019-08-16 22:11:12 +02:00
committed by Erki
parent d16ef77e50
commit b2fb039ee3
4 changed files with 47 additions and 2 deletions

View File

@@ -120,6 +120,7 @@
parent_organ = "groin"
robotic_name = "toxin filter"
robotic_sprite = "liver-prosthetic"
var/tolerance = 5
/obj/item/organ/liver/process()
@@ -138,9 +139,9 @@
if(owner.life_tick % PROCESS_ACCURACY == 0)
//A liver's duty is to get rid of toxins
if(owner.getToxLoss() > 0 && owner.getToxLoss() <= 3)
if(owner.getToxLoss() > 0 && owner.getToxLoss() <= tolerance)
owner.adjustToxLoss(-0.2) //there isn't a lot of toxin damage, so we're going to be chill and slowly filter it out
else if(owner.getToxLoss() > 3)
else if(owner.getToxLoss() > tolerance)
if(is_bruised())
//damaged liver works less efficiently
owner.adjustToxLoss(-0.5)

View File

@@ -54,9 +54,11 @@
robotic = 2
robotic_name = null
robotic_sprite = null
tolerance = 20
/obj/item/organ/liver/vaurca
icon_state = "liver_vaurca"
tolerance = 20
/obj/item/organ/brain/vaurca
icon_state = "brain_vaurca"

View File

@@ -55,3 +55,4 @@
name = "waste tract"
parent_organ = "chest"
color = "#0033cc"
tolerance = 20