Implemented the weapon component in terms of the cooldown component.