Fixes low-yield EMP grenades

This commit is contained in:
Anewbe
2016-10-08 19:38:49 -05:00
parent 426659c1d2
commit dacbca746c
2 changed files with 41 additions and 7 deletions
@@ -3,10 +3,12 @@
icon_state = "emp"
item_state = "empgrenade"
origin_tech = list(TECH_MATERIAL = 2, TECH_MAGNET = 3)
var/emp_heavy = 4
var/emp_light = 10
prime()
..()
if(empulse(src, 4, 10))
if(empulse(src, emp_heavy, emp_light))
qdel(src)
return
@@ -15,9 +17,5 @@
desc = "A weaker variant of the EMP grenade"
icon_state = "lyemp"
origin_tech = list(TECH_MATERIAL = 2, TECH_MAGNET = 3)
prime()
..()
if(empulse(src, 4, 1))
qdel(src)
return
emp_heavy = 1
emp_light = 4