More work done!

This commit is contained in:
Neerti
2016-02-07 23:41:02 -05:00
parent be43fd1d9e
commit a67b544acd
47 changed files with 802 additions and 290 deletions
+12
View File
@@ -124,3 +124,15 @@
//----------------------------
/obj/effect/projectile/bullet/muzzle
icon_state = "muzzle_bullet"
//----------------------------
// Lightning beam
//----------------------------
/obj/effect/projectile/lightning/tracer
icon_state = "lightning"
/obj/effect/projectile/lightning/muzzle
icon_state = "muzzle_lightning"
/obj/effect/projectile/lightning/impact
icon_state = "impact_lightning"
+1 -1
View File
@@ -169,7 +169,7 @@
return
//roll to-hit
miss_modifier = max(15*(distance-2) - round(15*accuracy) + miss_modifier, 0)
miss_modifier = max(15*(distance-2) - round(15*accuracy) + miss_modifier + round(15*target_mob.evasion), 0)
var/hit_zone = get_zone_with_miss_chance(def_zone, target_mob, miss_modifier, ranged_attack=(distance > 1 || original != target_mob)) //if the projectile hits a target we weren't originally aiming at then retain the chance to miss
var/result = PROJECTILE_FORCE_MISS