Corgis and mice will now heal when eating

As things stood, they just modified the current registered value of
health, which would immediately be recalculate. This makes this less
stupid.
This commit is contained in:
Crazylemon
2015-12-07 09:42:12 -08:00
parent b8db2dd78d
commit 438f6d9a8c
@@ -245,7 +245,8 @@
M.visible_message("[M] [pick("burps from enjoyment", "yaps for more", "woofs twice", "looks at the area where \the [src] was")].","<span class=\"notice\">You swallow up the last part of \the [src].")
playsound(src.loc,'sound/items/eatfood.ogg', rand(10,50), 1)
var/mob/living/simple_animal/pet/corgi/C = M
C.health = min(C.health + 5, C.maxHealth)
C.adjustBruteLoss(-5)
C.adjustFireLoss(-5)
qdel(src)
else
M.visible_message("[M] takes a bite of \the [src].","<span class=\"notice\">You take a bite of \the [src].")
@@ -257,7 +258,8 @@
if(prob(50))
N.visible_message("[N] nibbles away at [src].", "")
//N.emote("nibbles away at the [src]")
N.health = min(N.health + 1, N.maxHealth)
N.adjustBruteLoss(-1)
N.adjustFireLoss(-1)
////////////////////////////////////////////////////////////////////////////////