Fix for borg batons running out of charge. Thanks Invisty for reporting this.

They now consume 50 charge per stun.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3814 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
petethegoat@gmail.com
2012-06-13 22:50:34 +00:00
parent be39fe38a1
commit c27676e0e1
+6 -1
View File
@@ -67,7 +67,12 @@
H.apply_effect(10, STUTTER, 0)
user.lastattacked = M
H.lastattacker = user
charges--
if(isrobot(src.loc))
var/mob/living/silicon/robot/R = src.loc
if(R && R.cell)
R.cell.use(50)
else
charges--
H.visible_message("<span class='danger'>[M] has been stunned with the [src] by [user]!</span>")
playsound(src.loc, "sparks", 75, 1, -1)
if(charges < 1)