예제 #1
0
        public static EquipmentAttrData GetEquipmentAttrDataByID(int equipmentDataID)
        {
            EquipmentAttrData equipmentData = null;

            if (EquipmentAttrDataDictionary.ContainsKey(equipmentDataID))
            {
                equipmentData = EquipmentAttrDataDictionary[equipmentDataID];
            }
            return(equipmentData);
        }
예제 #2
0
        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));
        }