mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 02:54:41 +01:00
Fixes #3354
If you stab someone who doesn't have eyes in the eyes it now damages their head
This commit is contained in:
@@ -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(2,3), 1) //being stabbed in the head isnt as bad as the eyes
|
||||
return
|
||||
eyes.take_damage(rand(3,4), 1)
|
||||
if(eyes.damage >= eyes.min_bruised_damage)
|
||||
|
||||
Reference in New Issue
Block a user