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