Fixes #3354 and goes with damage suggestion in #3367

If you try to stab someone in the eyes who doesn't have eyes they now
take 10-14 head damage
This commit is contained in:
VampyrBytes
2016-01-24 09:34:41 +00:00
parent d1cdbc3739
commit 1517e716b1
+3 -1
View File
@@ -420,7 +420,9 @@
if(istype(H))
var/obj/item/organ/eyes/eyes = H.internal_organs_by_name["eyes"]
if(!eyes)
if(!eyes) // should still get stabbed in the head
var/obj/item/organ/external/head/head = H.organs_by_name["head"]
head.take_damage(rand(10,14), 1)
return
eyes.take_damage(rand(3,4), 1)
if(eyes.damage >= eyes.min_bruised_damage)