Exemple #1
0
        /// <summary>
        /// 获取阶对应的加成
        /// </summary>
        /// <param name="type"></param>
        /// <param name="grade"></param>
        /// <returns></returns>
        public static BaseRoleVo GetGradeProperties(uint type, uint grade)
        {
            BaseRoleVo       gradeVo  = new BaseRoleVo();
            SysPetAdvancedVo gradeAdd = PetLogic.GetPetGradeAdd(type, grade);

            gradeVo.AttPMax = (uint)gradeAdd.att_max;
            gradeVo.Hp      = (uint)gradeAdd.hp;
            gradeVo.DefP    = (uint)gradeAdd.def_p;
            gradeVo.DefM    = (uint)gradeAdd.def_m;
            gradeVo.HurtRe  = (uint)gradeAdd.hurt_re;
            return(gradeVo);
        }