Exotic blood other than water will work now, and slime people will now

absorb water as blood
This commit is contained in:
Crazylemon
2016-03-10 17:13:29 -08:00
parent 1eba9a6df1
commit d9d0fff5a2
+10 -7
View File
@@ -41,14 +41,19 @@ var/const/BLOOD_VOLUME_SURVIVE = 122
return
if(stat != DEAD && bodytemperature >= 170) //Dead or cryosleep people do not pump the blood.
if(species.exotic_blood)
blood_volume = round(vessel.get_reagent_amount(species.exotic_blood))
var/blood_reagent = species.exotic_blood // This is a string of the name of the species' blood reagent
blood_volume = round(vessel.get_reagent_amount(blood_reagent))
if(blood_volume < 560 && blood_volume)
var/datum/reagent/water/W = locate() in vessel.reagent_list //Grab some blood
if(W) // Make sure there's some blood at all
W.volume += 0.1 // regenerate blood VERY slowly
var/datum/reagent/R = vessel.reagent_list[blood_reagent] //Grab some blood
if(R) // Make sure there's some blood at all
R.volume += 0.1 // regenerate blood VERY slowly
if (reagents.has_reagent("nutriment")) //Getting food speeds it up
W.volume += 0.4
R.volume += 0.4
reagents.remove_reagent("nutriment", 0.1)
else if (reagents.has_reagent(blood_reagent))
R.volume += 0.4
reagents.remove_reagent(blood_reagent, 0.4)
else
blood_volume = round(vessel.get_reagent_amount("blood"))
//Blood regeneration if there is some space
@@ -191,8 +196,6 @@ var/const/BLOOD_VOLUME_SURVIVE = 122
B.holder = container
B.volume += amount
//set reagent data
B.data["donor"] = src
if (!B.data["virus2"])