public override bool CanUse(State state) { if (!base.CanUse(state)) { return(false); } return(!SteadyHand.IsActive(state)); }
public static double SuccessRate(uint baseSuccessRate, State state) { if (SteadyHand2.IsActive(state)) { baseSuccessRate += 30; } else if (SteadyHand.IsActive(state)) { baseSuccessRate += 20; } baseSuccessRate = Math.Min(100, baseSuccessRate); return((double)baseSuccessRate / 100.0); }