static bool BreakActionPatch_FailureToExtract(BreakActionWeapon __instance, FVRFireArm chamber) { if (!Meatyceiver.enableFirearmFailures.Value) { return(true); } if (MCM.HasFlag(chamber, states.StuckRound)) { return(false); } float chance = Meatyceiver.breakActionFTE.Value * (Meatyceiver.generalMult.Value - 1) * Meatyceiver.breakActionFTEMultAffect.Value; if (Meatyceiver.CalcFail(chance, __instance)) { MCM.AddFlag(chamber, states.StuckRound); return(false); } return(true); }