Secborg meleetaser now drains cell charge instead of gun charge.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@990 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
n3ophyt3@gmail.com
2011-02-08 01:42:03 +00:00
parent 29dd777b8f
commit 982b83854b
+5 -1
View File
@@ -751,7 +751,11 @@ obj/item/weapon/gun/revolver/attackby(obj/item/weapon/ammo/a357/A as obj, mob/us
if(M.stat != 2) M.stat = 1
for(var/mob/O in viewers(M, null))
if (O.client) O.show_message("\red <B>[M] has been stunned with the taser gun by [user]!</B>", 1, "\red You hear someone fall", 2)
src.charges--
if(isrobot(user))
var/mob/living/silicon/robot/R = user
R.cell.charge -= 20
else
src.charges--
update_icon()
else // no charges in the gun, so they just wallop the target with it
..()