I'm still in the exploring-the-code stage on this feature.
Right now the logic seems very simple: when you attack an enemy, you pick the *first* weapon that can engage the appropriate field and then, if beyond range, you move towards it, stopping when in range.
The complication with minimum range becomes where to move to if you are trying to engage a target that is too close. Ideas anyone?
Generally when in this particular bit of code it would be tempting to evaluate all available weapons that can engage the enemy, and if at that point multiple ones can be used to pick the most lethal. Or something along those lines. More ideas anyone?