The percussion cap, introduced circa 1820, was the crucial invention that enabled muzzleloading firearms to fire reliably in any weather.Before this development, firearms used flintlock ignition systems which produced flint-on-steel sparks to ignite a pan of priming powder and thereby fire the gun's main powder charge (the flintlock mechanism replaced older ignition systems such as the matchlock and wheellock).