Cuts down shard spam

This commit is contained in:
Kelenius
2016-03-14 14:46:43 +03:00
parent c2aa0d72bb
commit 25e7dbb86f
@@ -68,7 +68,6 @@
if(M.buckled) //wheelchairs, office chairs, rollerbeds
return
M << "<span class='danger'>You step on \the [src]!</span>"
playsound(src.loc, 'sound/effects/glass_step.ogg', 50, 1) // not sure how to handle metal shards with sounds
if(ishuman(M))
var/mob/living/carbon/human/H = M
@@ -79,6 +78,8 @@
if( H.shoes || ( H.wear_suit && (H.wear_suit.body_parts_covered & FEET) ) )
return
M << "<span class='danger'>You step on \the [src]!</span>"
var/list/check = list("l_foot", "r_foot")
while(check.len)
var/picked = pick(check)