예제 #1
0
        private string GetDes(HeroAttr attr, AttrType type)
        {
            string result    = string.Empty;
            float  basicAttr = attr.GetBasicAttr(type);
            float  num       = attr.GetAttr(type) - basicAttr;

            if (type == AttrType.HitProp || type == AttrType.DodgeProp || type == AttrType.PhysicCritProp)
            {
                result = basicAttr.ToString("P0");
            }
            else
            {
                result = basicAttr.ToString("f2");
            }
            return(result);
        }