How did the production of military equipment affect the outcome of the battle?