#Fixed all known bugs with ninja voice.

#As an added bonus, voice-changers will protect from flash. Can be easily removed if needed.
#Added more recharge locations for ninjas: cells, smes, and cyborgs.
#Recharge changed so that it takes less time but recharges for less.
#Adamantine sprites per request.
#Updated Ripley sprites per request(?).

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1444 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
noisomehollow@lycos.com
2011-04-14 18:20:20 +00:00
parent ad6a6e42aa
commit e55521799a
25 changed files with 303 additions and 111 deletions

View File

@@ -62,6 +62,30 @@
if(crit_fail)
usr << "\red This power cell seems to be faulty"
/obj/item/weapon/cell/attack_self(mob/user as mob)
src.add_fingerprint(user)
if(ishuman(user))
var/mob/living/carbon/human/U = user
if(istype(U.gloves, /obj/item/clothing/gloves/space_ninja)&&U.gloves:candrain&&!U.gloves:draining)
var/obj/item/clothing/suit/space/space_ninja/S = U.wear_suit
var/obj/item/clothing/gloves/space_ninja/G = U.gloves
if(charge)
user << "\blue Now charging battery..."
G.draining = 1
if (do_after(user,50))
U << "\blue Gained <B>[charge]</B> energy from the cell."
charge = 0
S.charge+=charge
G.draining = 0
corrupt()
updateicon()
else
U << "\red Procedure interrupted. Protocol terminated."
return
else
U << "\red This cell is empty and of no use."
return
//Just because someone gets you occasionally with stun gloves doesn't mean you can put in code to kill everyone who tries to make some.
/obj/item/weapon/cell/attackby(obj/item/W, mob/user)
..()