containment fields no longer shock through windows/border objects

This commit is contained in:
Intigracy
2016-03-15 09:09:05 -07:00
parent fc8295744b
commit 6ad91d2cb8
2 changed files with 11 additions and 6 deletions

View File

@@ -40,12 +40,13 @@
return 0
/obj/machinery/containment_field/HasProximity(atom/movable/AM as mob|obj)
if(istype(AM,/mob/living/silicon) && prob(40))
shock(AM)
return 1
if(istype(AM,/mob/living/carbon) && prob(50))
shock(AM)
return 1
if(Adjacent(AM)) //checking for windows and shit
if(istype(AM,/mob/living/silicon) && prob(40))
shock(AM)
return 1
if(istype(AM,/mob/living/carbon) && prob(50))
shock(AM)
return 1
return 0