The third law, the Law of Promotions and Rewards, set up two distinct rubrics for promotion: one for peacetime and one for wartime. Peacetime promotions were tied directly to military education. Wartime promotions could be granted for heroic actions such as preventing enemy capture of artillery pieces, and could only be given by high-ranking officers. These promotions had to be approved by higher bodies. These reforms were an effort to end the practice of opportunistic and haphazard promotions which had inflated the number of generals in Mexico's officer corps during the Revolution.