E-Swords now have a chance to deflect projectiles when active.

Added missing sprites for the ion rifle charges, and ion rifle on back sprites.

I still cannot into changelog

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2188 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
kortgstation@gmail.com
2011-09-13 01:50:19 +00:00
parent 6cd53a069e
commit 3de9c51123
4 changed files with 10 additions and 1 deletions
@@ -194,6 +194,7 @@
/mob/living/carbon/human/bullet_act(A as obj, var/datum/organ/external/def_zone)
var/shielded = 0
var/parry = 0
//Preparing the var for grabbing the armor information, can't grab the values yet because we don't know what kind of bullet was used. --NEO
var/obj/item/projectile/P = A
@@ -213,6 +214,14 @@
show_message("\red Your shield blocks the blow!", 4)
return
for(var/obj/item/weapon/melee/energy/sword/B in src)
if (B.active)
parry = 1
B.active = 1
if ((parry))
if (prob(50 - round(P.damage / 3)))
visible_message("\red [src] deflects the shot with their blade!", 4)
return
for(var/obj/item/device/shield/S in src)
if (S.active)