Moved same code into single organ helper to handle embedding.

Conflicts:
	code/modules/mob/living/carbon/human/human_damage.dm
	code/modules/mob/living/carbon/human/human_defense.dm
	code/modules/organs/organ_external.dm
This commit is contained in:
Chinsky
2014-06-24 11:46:56 -04:00
committed by ZomgPonies
parent 0626abe799
commit d1932f7045
4 changed files with 38 additions and 39 deletions
@@ -1642,7 +1642,7 @@
surprise.icon_state = "skrellkey1"
specie = "neaera"
surprise.name = "malformed [specie]"
surprise.desc = "Looks like \a very deformed [specie], a little small for its kind."
surprise.desc = "Looks like \a very deformed [specie], a little small for its kind. It shows no signs of life."
surprise.transform *= 0.6
surprise.add_blood(M)
@@ -1658,10 +1658,7 @@
E.cavity = 0
else //someone is having a bad day
E.createwound(CUT, 30)
E.implants += surprise
H.visible_message("<span class='danger'>Something that looks like \a [surprise] sticks out of a wound!</span>")
H.embedded_flag = 1
H.verbs += /mob/proc/yank_out_object
E.embed(surprise)
else if (ismonkey(M))
M.visible_message("<span class='danger'>[M] suddenly tears in half!</span>")
surprise.loc = M.loc