weapon priority calculation