dist_mod = 0;
dist_mod = this.MinRanges[range];
  public double getModifiedDamage(int arc, int range, int modifier) {    if (range > this.MAX_RANGE) return 0;    double damage = this.damages[arc][range];    int base = this.gunnery;    int dist_mod = 0;    if (range < 7) {      dist_mod = 0;    } else if (range < 13) {      dist_mod = 2;    } else if (range < this.MAX_RANGE) {      dist_mod = 4;    } else { //will need to be changed for extended range weapons      dist_mod = 20;    }    if (base + dist_mod + modifier > TestBot.Ignore) return 0;    if (base + dist_mod + modifier == TestBot.Ignore) damage *= .5;    return (damage/Compute.oddsAbove(base+dist_mod)*Compute.oddsAbove(dist_mod+modifier+base));  }