少年修仙传客户端代码仓库
client_Zxw
2019-03-16 0b963d74cb5aba22ad98f9dceac41aa6f917c572
3335 旧强化相关
10个文件已删除
12个文件已修改
2536 ■■■■■ 已修改文件
Core/GameEngine/Model/Player/PlayerDatas.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/NetworkPackage/DTCFile/ServerPack/HA3_Function/DTCA3B3_tagMCEquipPartStarLVInfo.cs 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/NetworkPackage/DTCFile/ServerPack/HA3_Function/DTCA3B3_tagMCEquipPartStarLVInfo.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/NetworkPackage/ServerPack/HA3_Function/HA3B3_tagMCEquipPartStarLVInfo.cs 63 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/NetworkPackage/ServerPack/HA3_Function/HA3B3_tagMCEquipPartStarLVInfo.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/Logic/ItemOperateUtility.cs 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/Logic/ItemTipsModel.cs 74 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/Logic/PackModel.cs 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/Logic/PlayerStrengtheningLVWin.cs 256 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/Logic/PlayerStrengtheningLVWin.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/New/RoleEquipStrengthTips.cs 149 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/New/RoleEquipStrengthTips.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Message/RichTableEvent.cs 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/RoleParticulars/RoleParticularsWin.cs 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/RoleParticulars/ViewFuncCell.cs 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/RolePromote/RolePromoteModel.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Strengthening/EquipReinforceWin.cs 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Strengthening/StrengthenModel.cs 546 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Strengthening/StrengtheningSripts.cs 1238 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Strengthening/StrengtheningSripts.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Treasure/TreasureSoulModel.cs 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Treasure/TreasureSoulWin.cs 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/Player/PlayerDatas.cs
@@ -21,8 +21,6 @@
    PlayerSkillDatas m_Skill = new PlayerSkillDatas();
    public PlayerSkillDatas skill { get { return m_Skill; } }
    StrengthenModel strengthengmodel { get { return ModelCenter.Instance.GetModel<StrengthenModel>(); } }
    PlayerMethodData method { get { return ModelCenter.Instance.GetModel<PlayerMethodData>(); } }
    StoreModel StoreModel { get { return ModelCenter.Instance.GetModel<StoreModel>(); } }
@@ -283,7 +281,6 @@
                break;
            case PlayerDataType.Silver:
                baseData.copper = value;
                strengthengmodel.MoneyData();
                break;
            case PlayerDataType.SilverPaper:
                break;
@@ -619,7 +616,6 @@
                break;
            case PlayerDataType.ExAttr6:
                baseData.copperExtend = value;
                strengthengmodel.MoneyData();
                break;
            case PlayerDataType.ExAttr7:
                baseData.sp = value;
Core/NetworkPackage/DTCFile/ServerPack/HA3_Function/DTCA3B3_tagMCEquipPartStarLVInfo.cs
File was deleted
Core/NetworkPackage/DTCFile/ServerPack/HA3_Function/DTCA3B3_tagMCEquipPartStarLVInfo.cs.meta
File was deleted
Core/NetworkPackage/ServerPack/HA3_Function/HA3B3_tagMCEquipPartStarLVInfo.cs
File was deleted
Core/NetworkPackage/ServerPack/HA3_Function/HA3B3_tagMCEquipPartStarLVInfo.cs.meta
File was deleted
System/KnapSack/Logic/ItemOperateUtility.cs
@@ -152,21 +152,21 @@
                return;
            }
            var equipStrengthDic = strengthModel._EqInfo;
            var isPrompt = strengthModel.TheRatingPrompt(item.itemId);
            if (isPrompt && !PlayerPrefs.HasKey(PackModel.StrengthAttrShift_RecordKey))
            {
                LocalSave.SetBool(PackModel.StrengthAttrShift_RecordKey, true);
                ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"), Language.Get("SwitchEquip_Strengthen"));
            }
            //var equipStrengthDic = strengthModel._EqInfo;
            //var isPrompt = strengthModel.TheRatingPrompt(item.itemId);
            //if (isPrompt && !PlayerPrefs.HasKey(PackModel.StrengthAttrShift_RecordKey))
            //{
            //    LocalSave.SetBool(PackModel.StrengthAttrShift_RecordKey, true);
            //    ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"), Language.Get("SwitchEquip_Strengthen"));
            //}
            if (equipStrengthDic.ContainsKey(equipPlace))
            {
                if (equipStrengthDic[equipPlace].EquipPartStarLV >= 1)
                {
                    SysNotifyMgr.Instance.ShowTip("SwitchEquip_Strengthen2");
                }
            }
            //if (equipStrengthDic.ContainsKey(equipPlace))
            //{
            //    if (equipStrengthDic[equipPlace].EquipPartStarLV >= 1)
            //    {
            //        SysNotifyMgr.Instance.ShowTip("SwitchEquip_Strengthen2");
            //    }
            //}
            int[] stones = null;
            equipGemModel.TryGetEquipGems(equipPlace, out stones);
System/KnapSack/Logic/ItemTipsModel.cs
@@ -2026,38 +2026,38 @@
        private Dictionary<int, int> GetStrengthAttrDict()
        {
            Dictionary<int, int> attrDict = new Dictionary<int, int>();
            var strengthDict = strengthengmodel._EqInfo;
            foreach (var index in strengthDict.Keys)
            {
                var itemModel = playerPack.GetItemByIndex(PackType.Equip, index);
                if (itemModel != null)
                {
                    int lv = strengthengmodel.StrengthenTheCeiling(index);
                    int type = strengthengmodel.GameDefineIndex(index);
                    //var itemPlus = ItemPlusConfig.GetItemPlusData(type, lv);
                    //if (itemPlus != null)
                    //{
                    //    int[] attrIDs = itemPlus.attrIds;
                    //    int[] attrValues = itemPlus.attrValues;
                    //    for (int i = 0; i < attrIDs.Length; i++)
                    //    {
                    //        var attrId = attrIDs[i];
                    //        var attrValue = attrValues[i];
                    //        if (attrValue > 0)
                    //        {
                    //            if (!attrDict.ContainsKey(attrId))
                    //            {
                    //                attrDict.Add(attrId, attrValue);
                    //            }
                    //            else
                    //            {
                    //                attrDict[attrId] += attrValue;
                    //            }
                    //        }
                    //    }
                    //}
                }
            }
            //var strengthDict = strengthengmodel._EqInfo;
            //foreach (var index in strengthDict.Keys)
            //{
            //    var itemModel = playerPack.GetItemByIndex(PackType.Equip, index);
            //    if (itemModel != null)
            //    {
            //        int lv = strengthengmodel.StrengthenTheCeiling(index);
            //        int type = strengthengmodel.GameDefineIndex(index);
            //        //var itemPlus = ItemPlusConfig.GetItemPlusData(type, lv);
            //        //if (itemPlus != null)
            //        //{
            //        //    int[] attrIDs = itemPlus.attrIds;
            //        //    int[] attrValues = itemPlus.attrValues;
            //        //    for (int i = 0; i < attrIDs.Length; i++)
            //        //    {
            //        //        var attrId = attrIDs[i];
            //        //        var attrValue = attrValues[i];
            //        //        if (attrValue > 0)
            //        //        {
            //        //            if (!attrDict.ContainsKey(attrId))
            //        //            {
            //        //                attrDict.Add(attrId, attrValue);
            //        //            }
            //        //            else
            //        //            {
            //        //                attrDict[attrId] += attrValue;
            //        //            }
            //        //        }
            //        //    }
            //        //}
            //    }
            //}
            return attrDict;
        }
        #endregion
@@ -2400,11 +2400,11 @@
                    if (type == PackType.Equip)
                    {
                        Dictionary<int, EquipmentInitialization> p_strengInfoDict = strengthengmodel._EqInfo;
                        if (p_strengInfoDict.ContainsKey(index))
                        {
                            SetStrengthData(strengthengmodel.StrengthenTheCeiling(index), strengthengmodel.GameDefineIndex(index));
                        }
                        //Dictionary<int, EquipmentInitialization> p_strengInfoDict = strengthengmodel._EqInfo;
                        //if (p_strengInfoDict.ContainsKey(index))
                        //{
                        //    SetStrengthData(strengthengmodel.StrengthenTheCeiling(index), strengthengmodel.GameDefineIndex(index));
                        //}
                    }
                    switch (type)
System/KnapSack/Logic/PackModel.cs
@@ -1167,15 +1167,15 @@
            List<string> strenlist = ItemPlusSumAttrConfig.GetKeys();
            if (strenlist == null || strenlist.Count < 1) return false;
            int playerSumSTR = 0;
            Dictionary<int, EquipmentInitialization> strenInfoDict = ModelCenter.Instance.GetModel<StrengthenModel>()._EqInfo;
            foreach (var value in strenInfoDict.Values)
            {
                ItemModel itemModel = GetItemByIndex(PackType.Equip, value.EquipIndex);
                if (itemModel != null)
                {
                    playerSumSTR += value.EquipPartStarLV;
                }
            }
            //Dictionary<int, EquipmentInitialization> strenInfoDict = ModelCenter.Instance.GetModel<StrengthenModel>()._EqInfo;
            //foreach (var value in strenInfoDict.Values)
            //{
            //    ItemModel itemModel = GetItemByIndex(PackType.Equip, value.EquipIndex);
            //    if (itemModel != null)
            //    {
            //        playerSumSTR += value.EquipPartStarLV;
            //    }
            //}
            int cnt = GetActiveCntByType(0);
            int nextActiveSTR = 0;
            for (int i = 0; i < strenlist.Count; i++)
System/KnapSack/Logic/PlayerStrengtheningLVWin.cs
File was deleted
System/KnapSack/Logic/PlayerStrengtheningLVWin.cs.meta
File was deleted
System/KnapSack/New/RoleEquipStrengthTips.cs
File was deleted
System/KnapSack/New/RoleEquipStrengthTips.cs.meta
File was deleted
System/Message/RichTableEvent.cs
@@ -557,8 +557,7 @@
    public static int GetStrengthenType(int _id)
    {
        var _itemCfg = ItemConfig.Get(_id);
        var _type = ModelCenter.Instance.GetModel<StrengthenModel>().GameDefineIndex(_itemCfg.EquipPlace);
        var _type =1;
        return _type;
    }
System/RoleParticulars/RoleParticularsWin.cs
@@ -29,7 +29,6 @@
        RoleParticularModel model { get { return ModelCenter.Instance.GetModel<RoleParticularModel>(); } }
        FriendsModel friendsModel { get { return ModelCenter.Instance.GetModel<FriendsModel>(); } }
        StrengthenModel strengthengmodel { get { return ModelCenter.Instance.GetModel<StrengthenModel>(); } }
        ItemTipsModel itemTipsModel { get { return ModelCenter.Instance.GetModel<ItemTipsModel>(); } }
        #region Built-in
@@ -63,7 +62,7 @@
                RoleParticularModel.ViewPlayerData viewPlayerData = model.GetViewPlayerData(model.viewPlayer);
                ItemAttrData attrData = new ItemAttrData(itemData.ItemID, false, 1, -1, false, PackType.Deleted,
                    "", itemData.useDataDict);
                attrData.SetStrengthData(viewPlayerData.rolePlusData.GetEquipStarLv((int)type), strengthengmodel.GameDefineIndex((int)type));
                attrData.SetStrengthData(viewPlayerData.rolePlusData.GetEquipStarLv((int)type),1);
                attrData.SetGemModel(viewPlayerData.rolePlusData.GetEquipStone((int)type));
                itemTipsModel.SetItemTipsModel(attrData);
            }
System/RoleParticulars/ViewFuncCell.cs
@@ -44,15 +44,6 @@
                return m_HorseModel ?? (m_HorseModel = ModelCenter.Instance.GetModel<MountModel>());
            }
        }
        StrengthenModel m_StrengthengModel;
        StrengthenModel strengthengmodel
        {
            get
            {
                return m_StrengthengModel ?? (m_StrengthengModel = ModelCenter.Instance.GetModel<StrengthenModel>());
            }
        }
        PackModel _playerPack;
        PackModel playerPack
        {
@@ -121,7 +112,7 @@
                                break;
                            foreach (var itemPlace in packTypeModel.GetAllItems().Keys)
                            {
                                selfValue += strengthengmodel.StrengthenTheCeiling(itemPlace);
                                selfValue += 0;
                            }
                        }
                        break;
System/RolePromote/RolePromoteModel.cs
@@ -438,7 +438,7 @@
        private void RedpointValueChangeEvent(int _id)
        {
            if (_id == strengthengmodel.StrengthRedpoint.id ||
            if (_id ==999999 /*strengthengmodel.StrengthRedpoint.id*/ ||
                _id == MainRedDot.RedPoint_MountPackKey ||
                _id == MainRedDot.Instance.redPonintPetFunc2.id ||
                _id == MainRedDot.Instance.redPointWashFunc.id ||
@@ -463,7 +463,7 @@
                case PromoteDetailType.AddPoint:
                    return rolePointModel.redpoint.state == RedPointState.Simple;
                case PromoteDetailType.EquipStrength:
                    return strengthengmodel.StrengthRedpoint.state == RedPointState.Simple;
                    return false;
                case PromoteDetailType.Mount:
                    return MainRedDot.Instance.redPointMountFunc.state == RedPointState.Simple;
                case PromoteDetailType.Pet:
System/Strengthening/EquipReinforceWin.cs
@@ -10,9 +10,7 @@
    {
        private WingsRedDotModel W_ModelRedDit;
        private WingsRedDotModel model { get { return W_ModelRedDit ?? (W_ModelRedDit = ModelCenter.Instance.GetModel<WingsRedDotModel>()); } }
        private StrengthenModel M_Strengtheng;
        private StrengthenModel strengtheng { get { return M_Strengtheng ?? (M_Strengtheng = ModelCenter.Instance.GetModel<StrengthenModel>()); } }
        private WingsRedDotModel model { get { return W_ModelRedDit ?? (W_ModelRedDit = ModelCenter.Instance.GetModel<WingsRedDotModel>()); } }
        private Button _closeBtn;
        //private StrengtheningSripts _strengtheningPanel;
@@ -80,12 +78,8 @@
            if (!WindowJumpMgr.Instance.IsJumpState)
            {
                if (functionOrder == 0)
                {
                    if (strengtheng.redPointStre.state == RedPointState.Simple)
                    {
                        functionOrder = _strengthTitle.order;
                    }
                    else if (wingsRedDot.redPointStre.state == RedPointState.Simple)
                {
                     if (wingsRedDot.redPointStre.state == RedPointState.Simple)
                    {
                        functionOrder = _wingsRefineTitle.order;
                    }
System/Strengthening/StrengthenModel.cs
@@ -6,537 +6,29 @@
using System;
using Snxxz.UI;
public class EquipmentInitialization
{
    private int _equipIndex;//装备位置
    private int _equipPartStarLV;//装备强化等级
    private int _proficiency;//熟练度
    public int EquipIndex
    {
        get { return _equipIndex; }
        set { _equipIndex = value; }
    }
    public int EquipPartStarLV
    {
        get { return _equipPartStarLV; }
        set { _equipPartStarLV = value; }
    }
    public int Proficiency
    {
        get { return _proficiency; }
        set { _proficiency = value; }
    }
    public EquipmentInitialization() { }
    public EquipmentInitialization(int equipIndex, int equipPartStarLV, int proficiency)
    {
        this._equipIndex = equipIndex;
        this._equipPartStarLV = equipPartStarLV;
        this._proficiency = proficiency;
    }
}
public class StrengthenModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
{
    public Dictionary<int, EquipmentInitialization> _EqInfo = new Dictionary<int, EquipmentInitialization>();//接收服务器下发的数值
    Dictionary<int, int> DefineIndexDic = new Dictionary<int, int>();//装备强化类型
    Dictionary<int, int> EquipMaxDic = new Dictionary<int, int>();//装备强化最大上限强化类型
    List<string> listStrengtheningAll = new List<string>();//用于全身装备属性
    public Dictionary<int, Redpoint> StrengthengRedPoint = new Dictionary<int, Redpoint>();//强化部位红点
    public delegate void Delegate_Ha3b3(HA3B3_tagMCEquipPartStarLVInfo info);
    public static event Delegate_Ha3b3 Event_Ha3b3;     //事件刷新的委托
    public static event Action<int> RefreshEquipUpgradLvAct;
    public int MoneyMax = 0;//所需最大的钱数
    public bool LevelAstrictBool = true;
    public int equipmentA = 0;
{
    PackModel _playerPack;
    PackModel playerPack
    {
        get { return _playerPack ?? (_playerPack = ModelCenter.Instance.GetModel<PackModel>()); }
    PackModel playerPack { get { return _playerPack ?? (_playerPack = ModelCenter.Instance.GetModel<PackModel>()); } }
    public void OnBeforePlayerDataInitialize()
    {
    }
    StrengthenModel m_StrengthengModel;
    StrengthenModel strengthengmodel { get { return m_StrengthengModel ?? (m_StrengthengModel = ModelCenter.Instance.GetModel<StrengthenModel>()); } }
    public class EquipRedDot
    {
        public int CurrentLevel;//当前等级
        public int Money;//所需的钱数
    }
    Dictionary<int, EquipRedDot> DicEquip = new Dictionary<int, EquipRedDot>();
    public override void Init()
    {
        listStrengtheningAll = ItemPlusSumAttrConfig.GetKeys();
        FuncConfigConfig funConfig = FuncConfigConfig.Get("StrengthenLevelLimit");
        DefineIndexDic = ConfigParse.GetDic<int, int>(funConfig.Numerical2);
        EquipMaxDic = ConfigParse.GetDic<int, int>(funConfig.Numerical1);
    {
    }
    public override void UnInit()
    {
    {
    }
    public void OnPlayerLoginOk()
    {
        playerPack.refreshItemCountEvent -= OnItemRefreshEvent;
        playerPack.itemCntAddEvent -= OnEquipRefreshEvent;
        FuncOpen.Instance.OnFuncStateChangeEvent -= OnFuncStateChange;
        playerPack.refreshItemCountEvent += OnItemRefreshEvent;//背包刷新
        playerPack.itemCntAddEvent += OnEquipRefreshEvent;//角色装备刷新
        FuncOpen.Instance.OnFuncStateChangeEvent += OnFuncStateChange;
        FuncConfigConfig StrengthenRedPointLevel = FuncConfigConfig.Get("StrengthenRedPointLevel");//强化红点规则
        string[] strStrengthenRedPointLevel = ConfigParse.GetMultipleStr(StrengthenRedPointLevel.Numerical1);
        StrengthengRedPointAdd();
        ClassList.Clear();
        for (int i = 0; i < strStrengthenRedPointLevel.Length; i++)
        {
            ClassList.Add(int.Parse(strStrengthenRedPointLevel[i]));
        }
        ClassList.Add(600);
        MoneyData();
        int playerLv = PlayerDatas.Instance.baseData.LV;
        ulong copper = UIHelper.GetMoneyCnt(3);
        if (playerLv >= 150 && MoneyMax > (int)copper)
        {
            LevelAstrictBool = false;
        }
    }
    private void OnFuncStateChange(int obj)
    {
        if (obj == 1)
        {
            MoneyData();
        }
    }
    public void OnBeforePlayerDataInitialize()
    {
        _EqInfo.Clear();
        MoneyMax = 0;
     //   LevelAstrictBool = true;
    }
    private void OnEquipRefreshEvent(PackType type, int index, int id)
    {
        MoneyData();
    }
    private void OnItemRefreshEvent(PackType type, int index, int id)
    {
        if (type == PackType.Equip)
        {
            MoneyData();
        }
    }
    private const int RedPoint_key2 = 10601;
    public Redpoint redPointStre = new Redpoint(MainRedDot.RedPoint_key1, RedPoint_key2);
    public Redpoint StrengthRedpoint
    {
        get
        {
            return redPointStre;
        }
    }
    public void MoneyRequired(int EquippedWith, int EquipmentLevel)//获取最高阶所需的钱数
    {
        //int Type = GameDefineIndex(EquippedWith);
        ////ItemPlusConfig _tagItemPlue = ItemPlusConfig.GetTypeAndGrade(Type, EquipmentLevel);
        //if (_tagItemPlue == null)
        //{
        //    return;
        //}
        //if (DicEquip.ContainsKey(EquippedWith))
        //{
        //    DicEquip[EquippedWith].CurrentLevel = EquipmentLevel;
        //    DicEquip[EquippedWith].Money = _tagItemPlue.costCount;
        //}
        //else
        //{
        //    EquipRedDot _EquipRedDot = new EquipRedDot();
        //    _EquipRedDot.CurrentLevel = EquipmentLevel;
        //    _EquipRedDot.Money = _tagItemPlue.costCount;
        //    DicEquip.Add(EquippedWith, _EquipRedDot);
        //}
        MoneyData();
    }
    public void MoneyData()//获取金钱数据
    {
        equipmentA = 0;
        MoneyMax = ContrastObtain();
        ulong copper = UIHelper.GetMoneyCnt(3);
        //redPointStre.state = RedPointState.None;
        foreach (int key in StrengthengRedPoint.Keys)
        {
            StrengthengRedPoint[key].state = RedPointState.None;
        }
        if (!FuncOpen.Instance.IsFuncOpen(1))
            return;
        if (copper != 0 && MoneyMax != 0 && copper >= (ulong)MoneyMax)
        {
            // redPointStre.state = RedPointState.Simple;
            Lowest();
        }
    }
    private int ContrastObtain()
    {
        MoneyMax = 0;
        SinglePack singlePack = playerPack.GetSinglePack(PackType.Equip);
        if (singlePack == null)
            return MoneyMax;
        foreach (var key in DicEquip.Keys)
        {
            ItemModel itemModel = singlePack.GetItemByIndex(key);
            if (itemModel != null)
            {
                ItemConfig _Item = ItemConfig.Get((int)itemModel.itemId);
                ItemPlusMaxConfig _itemPM = new ItemPlusMaxConfig();
                if (EquipMax(_Item.EquipPlace) != 3)
                {
                    //_itemPM = ItemPlusMaxConfig.GetEquipTypeAndPhaseColor(EquipMax(_Item.EquipPlace), _Item.LV, _Item.ItemColor);
                }
                else
                {
                    //_itemPM = ItemPlusMaxConfig.GetEquipTypeAndPhaseColor(EquipMax(_Item.EquipPlace), 0, 0);
                }
                if (_itemPM.levelMax > DicEquip[key].CurrentLevel)
                {
                    if (DicEquip[key].Money > MoneyMax)
                    {
                        MoneyMax = DicEquip[key].Money;
                    }
                }
            }
        }
        return MoneyMax;
    }
    public void OnEquipmentToStrengthen(HA3B3_tagMCEquipPartStarLVInfo info)
    {
        for (int i = 0; i < info.Count; i++)
        {
            if ((int)info.InfoList[i].EquipIndex > 0 && (int)info.InfoList[i].EquipIndex <= 10)
            {
                AddInfo(i, info);
            }
        }
    }
    public bool TheRatingPrompt(int ItemID)//评级提示
    {
        ItemConfig _Item = ItemConfig.Get(ItemID);
        if (_EqInfo.ContainsKey(_Item.EquipPlace))
        {
            int EqInfoLV = _EqInfo[_Item.EquipPlace].EquipPartStarLV;//装备等级
            ItemPlusMaxConfig _itemPM = new ItemPlusMaxConfig();
            if (EquipMax(_Item.EquipPlace) != 3)
            {
                //_itemPM = ItemPlusMaxConfig.GetEquipTypeAndPhaseColor(EquipMax(_Item.EquipPlace), _Item.LV, _Item.ItemColor);
            }
            else
            {
                //_itemPM = ItemPlusMaxConfig.GetEquipTypeAndPhaseColor(EquipMax(_Item.EquipPlace), 0, 0);
            }
            int MaxLV = _itemPM.levelMax;
            if (EqInfoLV >= MaxLV)
                return true;
            else
                return false;
        }
        return false;
    }
    public void AddInfo(int equipPlace, HA3B3_tagMCEquipPartStarLVInfo info)//装备位置
    {
        int index = (int)info.InfoList[equipPlace].EquipIndex;
        MoneyRequired(index, (int)info.InfoList[equipPlace].EquipPartStarLV);
        if (_EqInfo.ContainsKey(index))
        {
            _EqInfo[index].EquipIndex = index;
            bool isUpgrad = false;
            if ((int)info.InfoList[equipPlace].EquipPartStarLV > _EqInfo[index].EquipPartStarLV)
            {
                isUpgrad = true;
            }
            _EqInfo[index].EquipPartStarLV = (int)info.InfoList[equipPlace].EquipPartStarLV;
            _EqInfo[index].Proficiency = (int)info.InfoList[equipPlace].Proficiency;
            if (Event_Ha3b3 != null)
                Event_Ha3b3(info);
            if (isUpgrad && RefreshEquipUpgradLvAct != null)
            {
                RefreshEquipUpgradLvAct(index);
            }
        }
        else
        {
            EquipmentInitialization equip = new EquipmentInitialization();
            equip.EquipIndex = index;
            equip.EquipPartStarLV = (int)info.InfoList[equipPlace].EquipPartStarLV;
            equip.Proficiency = (int)info.InfoList[equipPlace].Proficiency;
            _EqInfo.Add(index, equip);
        }
    }
    public int GameDefineIndex(int _location)//强化类型返回
    {
        if (DefineIndexDic.ContainsKey(_location))
        {
            return DefineIndexDic[_location];
        }
        else
        {
            return 0;
        }
    }
    public int EquipMax(int _location)//强化最大上限返回类型
    {
        if (EquipMaxDic.ContainsKey(_location))
        {
            return EquipMaxDic[_location];
        }
        else
        {
            return 0;
        }
    }
    public int StrengthenTheCeiling(int _equippedWith = 1)//装备位
    {
        if (!_EqInfo.ContainsKey(_equippedWith))
        {
            return 0;
        }
        int EquipPartStarLV = _EqInfo[_equippedWith].EquipPartStarLV;
        ItemModel itemModel = playerPack.GetItemByIndex(PackType.Equip, _equippedWith);
        ;
        ItemConfig _Item = ItemConfig.Get((int)itemModel.itemId);
        ItemPlusMaxConfig _itemPM = new ItemPlusMaxConfig();
        if (EquipMax(_Item.EquipPlace) != 3)
        {
            //_itemPM = ItemPlusMaxConfig.GetEquipTypeAndPhaseColor(EquipMax(_Item.EquipPlace), _Item.LV, _Item.ItemColor);
        }
        else
        {
            //_itemPM = ItemPlusMaxConfig.GetEquipTypeAndPhaseColor(EquipMax(_Item.EquipPlace), 0, 0);
        }
        if (_itemPM.levelMax >= EquipPartStarLV)
        {
            return EquipPartStarLV;
        }
        else
        {
            return _itemPM.levelMax;
        }
    }
    public Dictionary<int, Dictionary<int, int>> StrengtheningAll()//全身属性
    {
        Dictionary<int, Dictionary<int, int>> _dic = new Dictionary<int, Dictionary<int, int>>();
        int _wholeBodyLevel = 0;
        foreach (int key in _EqInfo.Keys)
        {
            _wholeBodyLevel += _EqInfo[key].EquipPartStarLV;
        }
        for (int i = 0; i < listStrengtheningAll.Count; i++)
        {
            if (int.Parse(listStrengtheningAll[i]) > _wholeBodyLevel)
            {
                int _index = listStrengtheningAll.IndexOf(listStrengtheningAll[i]);
                _dic = GeneralProperties(_index, int.Parse(listStrengtheningAll[i]));
                return _dic;
            }
        }
        return null;
    }
    Dictionary<int, Dictionary<int, int>> GeneralProperties(int _index, int key)
    {
        Dictionary<int, Dictionary<int, int>> _dic = new Dictionary<int, Dictionary<int, int>>();
        if (_index <= 0)
        {
            Dictionary<int, int> _dic1 = new Dictionary<int, int>();
            _dic.Add(0, _dic1);
            Dictionary<int, int> _dic2 = new Dictionary<int, int>();
            var config = ItemPlusSumAttrConfig.Get(key);
            _dic2.Add(config.attType[0], config.attValue[0]);
            _dic2.Add(config.attType[1], config.attValue[1]);
            _dic.Add(key, _dic2);
            return _dic;
        }
        else
        {
            Dictionary<int, int> _dic1 = new Dictionary<int, int>();
            var config = ItemPlusSumAttrConfig.Get(listStrengtheningAll[(_index - 1)]);
            _dic1.Add(config.attType[0], config.attValue[0]);
            _dic1.Add(config.attType[1], config.attValue[1]);
            _dic.Add(int.Parse(listStrengtheningAll[(_index - 1)]), _dic1);
            Dictionary<int, int> _dic2 = new Dictionary<int, int>();
            config = ItemPlusSumAttrConfig.Get(key);
            _dic2.Add(config.attType[0], config.attValue[0]);
            _dic2.Add(config.attType[1], config.attValue[1]);
            _dic.Add(key, _dic2);
            return _dic;
        }
    }
    //==========装备红点
    List<int> StrengthList = new List<int>();
     private bool IsFairyDevice(int Index)
    {
        if (Index == 9 || Index == 10)
        {
            SinglePack singlePack = playerPack.GetSinglePack(PackType.Equip);
            if (singlePack != null && singlePack.GetAllItems().ContainsKey(Index))
            {
                ItemModel item = singlePack.GetItemByIndex(Index);
                ItemPlusMaxConfig _itemPM = new ItemPlusMaxConfig();
                //_itemPM = ItemPlusMaxConfig.GetEquipTypeAndPhaseColor(strengthengmodel.EquipMax(Index), 0, 0);
                if (_itemPM.levelMax > strengthengmodel._EqInfo[Index].EquipPartStarLV)//最大可升阶等级和服务端对比
                {
                    return true;
                }
            }
        }
        return false;
    }
    private int Compare(string x, string y)//数组排列
    {
        var _index_x = int.Parse(x);
        var _index_y = int.Parse(y);
        bool havex = IsFairyDevice(_index_x);
        bool havey = IsFairyDevice(_index_y);
        if (havex.CompareTo(havey) != 0)
        {
            return -havex.CompareTo(havey);
        }
        var _sort_x = StrengthList.IndexOf(_index_x);
        var _sort_y = StrengthList.IndexOf(_index_y);
        return _sort_x.CompareTo(_sort_y);
    }
    private void StrengthengRedPointAdd()
    {
        string str = FuncConfigConfig.Get("EquipArea").Numerical1;
        int[] intList = ConfigParse.GetMultipleStr<int>(str);
        if (StrengthList.Count <= 0)
        {
            for (int i = 0; i < intList.Length; i++)
            {
                StrengthList.Add(intList[i]);
            }
        }
        List<string> SortList = new List<string>();
        for (int i = 0; i < intList.Length; i++)
        {
            SortList.Add((intList[i]).ToString());
        }
        SortList.Sort(Compare);
        string[] StrengthenDisplay = SortList.ToArray();
        for (int i = 0; i < StrengthenDisplay.Length; i++)
        {
            int equippedWith = int.Parse(StrengthenDisplay[i]);
            if (!StrengthengRedPoint.ContainsKey(equippedWith))
            {
                int RedPoint_Strength = RedPoint_key2 * 10 + equippedWith;
                Redpoint redPoint = new Redpoint(RedPoint_key2, RedPoint_Strength);
                StrengthengRedPoint.Add(equippedWith, redPoint);
            }
        }
    }
    List<int> ClassList = new List<int>();//红点阶级
    List<int> equipmentRed = new List<int>();//当前存在的装备
    int LowestZbw = 0;
    private void Lowest()//筛选强化部位上最低阶级装备
    {
        equipmentRed.Clear();
        int LowestLV = 0;
        var StrengthengRedPointAllKey = StrengthengRedPoint.Keys;
        foreach (int key in StrengthengRedPointAllKey)
        {
            ItemModel itemModel = playerPack.GetItemByIndex(PackType.Equip, key);
            if (itemModel != null)
            {
                ItemConfig _Item = ItemConfig.Get((int)itemModel.itemId);
                ItemPlusMaxConfig _itemPM = new ItemPlusMaxConfig();
                if (EquipMax(_Item.EquipPlace) != 3)
                {
                    //_itemPM = ItemPlusMaxConfig.GetEquipTypeAndPhaseColor(EquipMax(_Item.EquipPlace), _Item.LV, _Item.ItemColor);
                }
                else
                {
                    //_itemPM = ItemPlusMaxConfig.GetEquipTypeAndPhaseColor(EquipMax(_Item.EquipPlace), 0, 0);
                }
                if (_itemPM.levelMax > DicEquip[key].CurrentLevel)
                {
                    if (LowestLV == 0)
                    {
                        LowestLV = DicEquip[key].CurrentLevel;
                        LowestZbw = key;
                    }
                    if (DicEquip[key].CurrentLevel < LowestLV)
                    {
                        LowestLV = DicEquip[key].CurrentLevel;
                        LowestZbw = key;
                    }
                    equipmentRed.Add(key);
                }
            }
        }
        //DesignDebug.LogError(LowestZbw);
        //DesignDebug.LogError(DicEquip[LowestZbw].CurrentLevel);
        if (!DicEquip.ContainsKey(LowestZbw))
        {
            return;
        }
        int Lv = ClassifyJudge(DicEquip[LowestZbw].CurrentLevel);
        RedPointPart(Lv);
    }
    private int ClassifyJudge(int Lv)
    {
        for (int i = 0; i < ClassList.Count; i++)
        {
            if (Lv < ClassList[i])
            {
                return ClassList[i];
            }
        }
        return 0;
    }
    private void RedPointPart(int Lv)
    {
        //DesignDebug.LogError("得到限制等级"+ Lv);
        for (int i = 0; i < equipmentRed.Count; i++)
        {
            if (_EqInfo.ContainsKey(equipmentRed[i]) && _EqInfo[(equipmentRed[i])].EquipPartStarLV < Lv && LevelAstrictBool)
            {
                equipmentA = equipmentRed[i];
                StrengthengRedPoint[(equipmentRed[i])].state = RedPointState.Simple;
                //  DesignDebug.LogError("得到装备位" + (equipmentRed[i]));
                return;
            }
        }
    {
    }
    //===========羽翼精炼
    Dictionary<int, WingRefineAttrModel> _DicWingRe = new Dictionary<int, WingRefineAttrModel>();
@@ -553,7 +45,7 @@
    {
        if (tegWing.Count <= 0)
        {
            tegWing= WingRefineAttrConfig.GetValues();
            tegWing = WingRefineAttrConfig.GetValues();
        }
        //var tegWing = WingRefineAttrConfig.GetValues();
        foreach (var values in tegWing)
@@ -582,8 +74,8 @@
        if (tegWing.Count <= 0)
        {
            tegWing = WingRefineAttrConfig.GetValues();
        }
      //  var configs = WingRefineAttrConfig.GetValues();
        }
        //  var configs = WingRefineAttrConfig.GetValues();
        foreach (var values in tegWing)
        {
            if (Item.LV == values.wingsPhase)
@@ -620,8 +112,8 @@
            if (tegWing.Count <= 0)
            {
                tegWing = WingRefineAttrConfig.GetValues();
            }
          //  var wingRefineAttrConfigs = WingRefineAttrConfig.GetValues();
            }
            //  var wingRefineAttrConfigs = WingRefineAttrConfig.GetValues();
            foreach (var value in tegWing)
            {
                if (itemModel.config.LV == value.wingsPhase)
@@ -642,6 +134,8 @@
        {
            return false;
        }
    }
    }
}
System/Strengthening/StrengtheningSripts.cs
File was deleted
System/Strengthening/StrengtheningSripts.cs.meta
File was deleted
System/Treasure/TreasureSoulModel.cs
@@ -47,7 +47,6 @@
        public override void Init()
        {
            packModel.refreshItemCountEvent += RefreshItemCountAct;
            StrengthenModel.RefreshEquipUpgradLvAct += RefreshEquipSTRLv;
            FuncOpen.Instance.OnFuncStateChangeEvent += OnFuncStateChangeEvent;
            ParseConfig();
        }
@@ -74,7 +73,6 @@
        public override void UnInit()
        {
            packModel.refreshItemCountEvent -= RefreshItemCountAct;
            StrengthenModel.RefreshEquipUpgradLvAct -= RefreshEquipSTRLv;
            FuncOpen.Instance.OnFuncStateChangeEvent -= OnFuncStateChangeEvent;
        }
@@ -439,17 +437,8 @@
                    state = itemGet ? TreasurePrivilegeState.Doing : TreasurePrivilegeState.Reward;
                    break;
                case TreasurePrivilege.StrengthenAdd:
                    var strengthen = ModelCenter.Instance.GetModel<StrengthenModel>();
                    var playerpack = ModelCenter.Instance.GetModel<PackModel>();
                    presentGetCount = 0;
                    foreach (var value in strengthen._EqInfo.Values)
                    {
                        ItemModel itemModel = playerpack.GetItemByIndex(PackType.Equip, value.EquipIndex);
                        if (itemModel != null)
                        {
                            presentGetCount += value.EquipPartStarLV;
                        }
                    }
                    presentGetCount = 0;
                    var configs = ItemPlusSumAttrConfig.GetValues();
                    bool contains = configs.FindIndex((x) =>
                    {
System/Treasure/TreasureSoulWin.cs
@@ -45,14 +45,6 @@
        }
        PackModel pack { get { return ModelCenter.Instance.GetModel<PackModel>(); } }
        public StrengthenModel strengthengmodel
        {
            get
            {
                return ModelCenter.Instance.GetModel<StrengthenModel>();
            }
        }
        TreasureModel treasureModel
        {
            get { return ModelCenter.Instance.GetModel<TreasureModel>(); }
@@ -341,14 +333,7 @@
                    if (itemModel != null)
                    {
                        var itemConfig = ItemConfig.Get(itemModel.itemId);
                        float value = 0;
                        if (ContainsProperty(itemConfig, 6, out value))
                        {
                            if (itemModel.GetUseData(42) != null)
                            {
                                value += strengthengmodel.BackpackWings(itemModel.itemId, itemModel.GetUseData(42)[0])[1];
                            }
                        }
                        float value = 0;
                        m_PreviewPropretys[0].gameObject.SetActive(true);
                        m_PreviewPropretys[0].DisplayUpper(6, (int)(value * percentWing));
                    }
@@ -376,15 +361,7 @@
                    var configs = ItemPlusSumAttrConfig.GetValues();
                    var present = -1;
                    var next = 0;
                    var presentGetCount = 0;
                    foreach (var value in strengthengmodel._EqInfo.Values)
                    {
                        ItemModel equip = pack.GetItemByIndex(PackType.Equip, value.EquipIndex);
                        if (equip != null)
                        {
                            presentGetCount += value.EquipPartStarLV;
                        }
                    }
                    var presentGetCount = 0;
                    for (int i = 0; i < configs.Count; i++)
                    {
                        if (presentGetCount >= configs[i].countNeed)