mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user