mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 02:54:41 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user