The percussion cap , introduced around
1830, was the crucial invention that enabled muzzle-loading 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 matchringowrmlock and
wheellock. Flintlocks were prone to misfire in wet weather, and many flintlock firearms were later converted to the more reliable percussion system.
See more at Wikipedia.org...