예제 #1
0
        public override bool CanUse(State state)
        {
            if (!base.CanUse(state))
            {
                return(false);
            }

            return(!SteadyHand.IsActive(state));
        }
예제 #2
0
 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);
 }