IPC will no longer take damage from walking in glass. Not sure why this was happening beforehand.

This commit is contained in:
Zuhayr
2014-05-03 20:08:45 +09:30
parent 5586439dc8
commit 0dfe70fe2b
@@ -285,11 +285,14 @@
playsound(src.loc, 'sound/effects/glass_step.ogg', 50, 1)
if(ishuman(M))
var/mob/living/carbon/human/H = M
if(H.flags & IS_SYNTHETIC)
return
if( !H.shoes && ( !H.wear_suit || !(H.wear_suit.body_parts_covered & FEET) ) )
var/datum/organ/external/affecting = H.get_organ(pick("l_foot", "r_foot"))
if(affecting.status & ORGAN_ROBOT)
return
H.Weaken(3)
if(affecting.take_damage(5, 0))
H.UpdateDamageIcon()