Moved definitions around
Added noTargetsOfOpportunity AI setting