From 8a580647d1fdc3e84c30b5f372bcc749eff899a5 Mon Sep 17 00:00:00 2001 From: "johnsonmt88@gmail.com" Date: Wed, 28 Nov 2012 00:29:50 +0000 Subject: [PATCH] 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 --- code/modules/clothing/clothing.dm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/modules/clothing/clothing.dm b/code/modules/clothing/clothing.dm index bce450f3b7b..71dfed33be6 100644 --- a/code/modules/clothing/clothing.dm +++ b/code/modules/clothing/clothing.dm @@ -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