Added an emp_act() to gloves. Stungloves will lose their charge in the event of an EMP. Fixes issue 1131.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5212 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
johnsonmt88@gmail.com
2012-11-28 00:29:50 +00:00
parent 5bae081fdd
commit 8a580647d1
+9
View File
@@ -55,6 +55,15 @@ BLIND // can't see anything
..()
return
/obj/item/clothing/gloves/emp_act(severity)
if(cell)
cell.charge -= 1000 / severity
if (cell.charge < 0)
cell.charge = 0
if(cell.reliability != 100 && prob(50/severity))
cell.reliability -= 10 / severity
..()
//Head
/obj/item/clothing/head