Beispiel #1
0
        public override double GetControlChance(Mobile m, bool useBaseSkill)
        {
            AbilityProfile profile = PetTrainingHelper.GetAbilityProfile(this);

            if (profile != null && profile.HasCustomized())
            {
                return(base.GetControlChance(m, useBaseSkill));
            }

            double tamingChance = base.GetControlChance(m, useBaseSkill);

            if (tamingChance >= 0.95)
            {
                return(tamingChance);
            }

            double skill = useBaseSkill ? m.Skills.Bushido.Base : m.Skills.Bushido.Value;

            if (skill < 90.0)
            {
                return(tamingChance);
            }

            double bushidoChance = (skill - 30.0) / 100;

            if (m.Skills.Bushido.Base >= 120)
            {
                bushidoChance += 0.05;
            }

            return(bushidoChance > tamingChance ? bushidoChance : tamingChance);
        }
Beispiel #2
0
        public override double GetControlChance(Mobile m, bool useBaseSkill)
        {
            AbilityProfile profile = PetTrainingHelper.GetAbilityProfile(this);

            if (profile != null && profile.HasCustomized())
            {
                return(base.GetControlChance(m, useBaseSkill));
            }

            return(1.0);
        }