Fix because I'm dumb.

This commit is contained in:
Higgin
2013-11-16 21:21:40 -08:00
parent 057eaba09e
commit f42ac118aa
2 changed files with 11 additions and 14 deletions

View File

@@ -49,7 +49,7 @@
var/eyeblur = 0
var/drowsy = 0
var/agony = 0
var/embed = 0 // whether or not the projectile can embed itself in the mob
proc/on_hit(var/atom/target, var/blocked = 0)
if(blocked >= 2) return 0//Full block
@@ -86,11 +86,8 @@
loc = A.loc
return 0// nope.avi
//Lower accurancy/longer range tradeoff. Distance matters a lot here, so at
// close distance, actually RAISE the chance to hit.
var/distance = get_dist(starting,loc)
var/miss_modifier = -30
if(isorgan(def_zone,M)) //modify chances to hit based on the area you're attacking.
if(def_zone == "l_arm")
miss_modifier += 10
if(def_zone == "r_arm")