public float GetDef(eElemType elemType) { return(GetAttrValue(CommonUtil.ElemTypeTranslate(elemType))); }
/// <summary> /// 将五行属性类型转换为技能属性类型 /// </summary> public static eSkillAttrIndex ElemTypeTranslate(eElemType elemType) { return((eSkillAttrIndex)((int)eSkillAttrIndex.Def_Gold + (int)elemType - 1)); }