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