예제 #1
0
 public static NpcAbility FindNpcAblity(AblityType type, int level)
 {
     foreach (NpcAbility ablity in mNpcSkills)
     {
         if (ablity.Type == type && ablity.level == level)
         {
             return(ablity);
         }
     }
     return(null);
 }
예제 #2
0
 public NpcAbility GetAblity(AblityType type, SkillLevel level)
 {
     foreach (NpcAbility ablity in mNpcSkills)
     {
         if ((ablity.Type == type) && (ablity.Level == level))
         {
             return(ablity);
         }
     }
     return(null);
 }
예제 #3
0
        public static List <NpcAbility> GetAbilityByType(AblityType type)
        {
            List <NpcAbility> Ablitys = new List <NpcAbility>();

            foreach (NpcAbility ablity in mNpcSkills)
            {
                if (ablity.Type == type)
                {
                    Ablitys.Add(ablity);
                }
            }
            return(Ablitys);
        }
예제 #4
0
        public List <AblityInfo> Cur_GetAblityByType(AblityType type)
        {
            List <AblityInfo> infos = new List <AblityInfo>();

            foreach (int key in AblityInfos.Keys)
            {
                if (AblityInfos[key]._type == type)
                {
                    infos.Add(AblityInfos[key]);
                }
            }
            return(infos);
        }
예제 #5
0
 public List <int> GetProtoIds(AblityType type)
 {
     if (AblityInfos.Count == 0)
     {
         return(null);
     }
     foreach (int key in AblityInfos.Keys)
     {
         if (AblityInfos[key]._type == type)
         {
             return(AblityInfos[key]._ProtoIds);
         }
     }
     return(null);
 }
예제 #6
0
 public float GetCorrectRate(AblityType type)
 {
     if (AblityInfos.Count == 0)
     {
         return(0.0f);
     }
     foreach (int key in AblityInfos.Keys)
     {
         if (AblityInfos[key]._type == type)
         {
             return(AblityInfos[key]._Correctrate);
         }
     }
     return(0.0f);
 }
예제 #7
0
        //Talent fun
        public float GetTalentPercent(AblityType type)
        {
            if (AblityInfos.Count == 0)
            {
                return(0.0f);
            }

            foreach (int key in AblityInfos.Keys)
            {
                if (AblityInfos[key]._type == type)
                {
                    return(AblityInfos[key]._Percent);
                }
            }
            return(0.0f);
        }
예제 #8
0
        public AblityInfo Cur_GetAblityInfoByType(AblityType type)
        {
            if (AblityInfos == null)
            {
                return(null);
            }

            foreach (int key in AblityInfos.Keys)
            {
                if (AblityInfos[key]._type == type)
                {
                    return(AblityInfos[key]);
                }
            }
            return(null);
        }
예제 #9
0
        public bool Cur_ContainsType(AblityType type)
        {
            if (AblityInfos == null)
            {
                return(false);
            }

            foreach (int key in AblityInfos.Keys)
            {
                if (AblityInfos[key]._type == type)
                {
                    return(true);
                }
            }
            return(false);
        }