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

Conflicts:
	code/game/objects/items/stacks/sheets/glass.dm
This commit is contained in:
Zuhayr
2014-05-03 17:34:43 -04:00
committed by ZomgPonies
parent 486a919818
commit 9ec5a18e0b
2 changed files with 14 additions and 72 deletions
+10 -9
View File
@@ -304,16 +304,17 @@
playsound(src.loc, 'sound/effects/glass_step.ogg', 50, 1)
if(ishuman(M))
var/mob/living/carbon/human/H = M
if(!H.shoes)
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
if(H.flags & IS_SYNTHETIC)
return
H.Weaken(3)
if(affecting.take_damage(5, 0))
H.UpdateDamageIcon()
H.updatehealth()
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()
H.updatehealth()
..()