public static EquipmentAttrData GetEquipmentAttrDataByID(int equipmentDataID) { EquipmentAttrData equipmentData = null; if (EquipmentAttrDataDictionary.ContainsKey(equipmentDataID)) { equipmentData = EquipmentAttrDataDictionary[equipmentDataID]; } return(equipmentData); }
public EquipmentAttribute GetBaseAttr() { EquipmentAttrData data = EquipmentAttrData.GetFirstDataByAttrId(base_attr_id); if (data == null) { return(null); } return(new EquipmentAttribute((EquipmentAttributeType)data.attr_type, data.value_min)); }