Refactors blood regeneration from nutriment (#839)

* Refactors blood regeneration from nutriment

* Update blood.dm

* Delete blood.dm.rej

* Update blood.dm
This commit is contained in:
CitadelStationBot
2017-05-18 00:03:51 -05:00
committed by Poojawa
parent 4740d2fd67
commit cd122501fc
2 changed files with 21 additions and 11 deletions
@@ -29,16 +29,11 @@
var/brute_heal = 1
var/burn_heal = 0
var/blood_gain = 0.4
/datum/reagent/consumable/nutriment/on_mob_life(mob/living/M)
if(prob(50))
M.heal_bodypart_damage(brute_heal,burn_heal, 0)
. = 1
if(iscarbon(M))
var/mob/living/carbon/C = M
if(C.blood_volume < BLOOD_VOLUME_NORMAL)
C.blood_volume += blood_gain
..()
/datum/reagent/consumable/nutriment/on_new(list/supplied_data)
@@ -82,7 +77,6 @@
brute_heal = 1
burn_heal = 1
blood_gain = 0.5
/datum/reagent/consumable/nutriment/vitamin/on_mob_life(mob/living/M)
if(M.satiety < 600)