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