public static ActiveSkillInfo Load(DataRow row) { ActiveSkillInfo inf = new ActiveSkillInfo { ID = GetDataTypes.GetUshort(row["ID"]), Name = (string)row["InxName"], Step = GetDataTypes.GetByte(row["Step"]), Required = (string)row["DemandSk"], SP = GetDataTypes.GetUshort(row["SP"]), HP = GetDataTypes.GetUshort(row["HP"]), Range = GetDataTypes.GetUshort(row["Range"]), CoolTime = GetDataTypes.GetUint(row["DlyTime"]), CastTime = GetDataTypes.GetUint(row["CastTime"]), DemandType = GetDataTypes.GetByte(row["DemandType"]), MaxTargets = GetDataTypes.GetByte(row["TargetNumber"]), }; uint maxdamage = GetDataTypes.GetUint(row["MaxWC"]); if (maxdamage == 0) { inf.IsMagic = true; inf.MinDamage = GetDataTypes.GetUshort(row["MinMA"]); inf.MaxDamage = GetDataTypes.GetUshort(row["MaxMA"]); } else { inf.MaxDamage = maxdamage; inf.MinDamage = GetDataTypes.GetUint(row["MinWC"]); } return(inf); }
public static ActiveSkillInfo Load(DataRow row) { ActiveSkillInfo inf = new ActiveSkillInfo { ID = GetDataTypes.GetUshort(row["ID"]), Name = (string)row["InxName"], Step = GetDataTypes.GetByte(row["Step"]), Required = (string)row["DemandSk"], SP = GetDataTypes.GetUshort(row["SP"]), HP = GetDataTypes.GetUshort(row["HP"]), Range = GetDataTypes.GetUshort(row["Range"]), CoolTime = GetDataTypes.GetUint(row["DlyTime"]), CastTime = GetDataTypes.GetUint(row["CastTime"]), DemandType = GetDataTypes.GetByte(row["DemandType"]), MaxTargets = GetDataTypes.GetByte(row["TargetNumber"]), }; uint maxdamage = GetDataTypes.GetUint(row["MaxWC"]); if (maxdamage == 0) { inf.IsMagic = true; inf.MinDamage = GetDataTypes.GetUshort(row["MinMA"]); inf.MaxDamage = GetDataTypes.GetUshort(row["MaxMA"]); } else { inf.MaxDamage = maxdamage; inf.MinDamage = GetDataTypes.GetUint(row["MinWC"]); } return inf; }