If you use one of the vanilla flags, such as player.ammoCost75 = true or player.ammoCost80 = true in the UpdateEquip, that would be the easiest. For a more specific percentage, you'll need to make your own bool in a ModPlayer, set the bool in UpdateEquip, and use the ConsumeAmmo hook in ModPlayer to reduce with a chance.