Prevents amber slime feeding from healing slimes

This commit is contained in:
Heroman
2019-06-02 17:00:48 +10:00
parent 305ffcb7a7
commit db3b3ef6e4
2 changed files with 8 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
// Handles hunger, starvation, growth, and eatting humans.
// Might be best to make this a /mob/living proc and override.
/mob/living/simple_mob/slime/xenobio/proc/adjust_nutrition(input)
/mob/living/simple_mob/slime/xenobio/proc/adjust_nutrition(input, var/heal = 1)
nutrition = between(0, nutrition + input, get_max_nutrition())
if(input > 0)
@@ -12,11 +12,12 @@
adjustToxLoss(-10)
// Heal 1 point of damage per 5 nutrition coming in.
adjustBruteLoss(-input * 0.2)
adjustFireLoss(-input * 0.2)
adjustToxLoss(-input * 0.2)
adjustOxyLoss(-input * 0.2)
adjustCloneLoss(-input * 0.2)
if(heal)
adjustBruteLoss(-input * 0.2)
adjustFireLoss(-input * 0.2)
adjustToxLoss(-input * 0.2)
adjustOxyLoss(-input * 0.2)
adjustCloneLoss(-input * 0.2)
/mob/living/simple_mob/slime/xenobio/proc/get_max_nutrition() // Can't go above it

View File

@@ -450,7 +450,7 @@
continue
if(istype(L, /mob/living/simple_mob/slime/xenobio))
var/mob/living/simple_mob/slime/xenobio/X = L
X.adjust_nutrition(rand(15, 25))
X.adjust_nutrition(rand(15, 25), 0)
if(ishuman(L))
var/mob/living/carbon/human/H = L
if(H.isSynthetic())