少年修仙传客户端代码仓库
client_Wu Xijin
2019-03-28 61e0c679473505b5beca1c65e1c51eed3540989e
3335 洗练修改
1个文件已修改
16 ■■■■■ 已修改文件
System/ItemTip/EquipTipUtility.cs 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/ItemTip/EquipTipUtility.cs
@@ -582,17 +582,21 @@
            var equipPosition = new Int2(item.config.LV, item.config.EquipPlace);
            var trainProperty = new TrainProperty();
            var trainLevel = trainModel.GetTrainLevel(equipPosition);
            var star = Mathf.Min(EquipStarModel.GetMaxStarLevel(item.config.ItemColor, item.config.LV), starModel.GetEquipStarLevel(equipPosition));
            var type = EquipTrainModel.GetTrainType(equipPosition.y);
            var maxConfig = WashLevelMaxConfig.Get(type, star);
            var maxLevel = maxConfig == null ? 1 : maxConfig.levelMax;
            var trainLevel = Mathf.Min(maxLevel, trainModel.GetTrainLevel(equipPosition));
            trainProperty.level = trainLevel;
            var trainConfig = EquipWashConfig.Get(type, trainLevel);
            var trainedProperties = trainModel.GetTrainedProperties(equipPosition);
            var type = EquipTrainModel.GetTrainType(item.config.EquipPlace);
            var dataLevel1 = EquipWashConfig.Get(type, 1);
            trainProperty.properties = new List<Int2>();
            trainProperty.properties.Add(new Int2(dataLevel1.config.attType1, trainedProperties.x));
            trainProperty.properties.Add(new Int2(dataLevel1.config.attType2, trainedProperties.y));
            trainProperty.properties.Add(new Int2(dataLevel1.config.attType3, trainedProperties.z));
            trainProperty.properties.Add(new Int2(trainConfig.config.attType1, Mathf.Min(trainedProperties.x, trainConfig.config.attMax1)));
            trainProperty.properties.Add(new Int2(trainConfig.config.attType2, Mathf.Min(trainedProperties.y, trainConfig.config.attMax2)));
            trainProperty.properties.Add(new Int2(trainConfig.config.attType3, Mathf.Min(trainedProperties.z, trainConfig.config.attMax3)));
            return trainProperty;
        }