少年修仙传客户端代码仓库
client_Wu Xijin
2018-11-15 35a8ea7416dad0bac964800068fab5bd4844803f
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
12个文件已修改
2个文件已添加
420 ■■■■■ 已修改文件
Core/GameEngine/Model/TelPartialConfig/tagEquipWashConfig.cs 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/NetworkPackage/DTCFile/ServerPack/H04_Scene/DTC0406_tagNPCAppear.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/GameActor/GA_Guard.cs 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/GameActor/GActorNpcFight.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/GameActor/GActorNpcNoFight.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Dungeon/DungeonAssistWin.cs 69 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Dungeon/DungeonAssistWin.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/Logic/ItemTipsModel.cs 31 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/OpenServerActivity/OperationWishingWellInfo.cs 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/OpenServerActivity/WishingPoolWin.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Strengthening/EquipWashCell.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Strengthening/EquipWashModel.cs 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Strengthening/WashProModel.cs 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Strengthening/WashTips.cs 220 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/TelPartialConfig/tagEquipWashConfig.cs
@@ -4,16 +4,19 @@
{
    public partial class EquipWashConfig : ConfigBase, IConfigPostProcess
    {
        private StringBuilder _washComposeID = new StringBuilder();
        private static Dictionary<string, EquipWashConfig> equipWashDict = new Dictionary<string, EquipWashConfig>();
        private static Dictionary<string,EquipWashData> equipWashDict = new Dictionary<string, EquipWashData>();
        public void OnConfigParseCompleted()
        {
            _washComposeID.Length = 0;
            _washComposeID.Append(type);
            _washComposeID.Append(level);
            equipWashDict.Add(_washComposeID.ToString(), this);
            string key = StringUtility.Contact(type,level);
            EquipWashData washData = new EquipWashData();
            washData.guid = key;
            washData.washConfig = this;
            washData.mustCosts = ConfigParse.GetMultipleStr<int>(costMoneyList);
            if(!equipWashDict.ContainsKey(key))
            {
                equipWashDict.Add(key,washData);
            }
        }
        /// <summary>
@@ -22,13 +25,19 @@
        /// <param name="level"></param>
        /// <param name="type"></param>
        /// <returns></returns>
        public static EquipWashConfig GetCurrentWashEquipModel(int type, int level)
        public static EquipWashData GetEquipWashData(int type, int level)
        {
            string strId = type + level.ToString();
            EquipWashConfig equipWash = null;
            string strId = StringUtility.Contact(type,level);
            EquipWashData equipWash = null;
            equipWashDict.TryGetValue(strId, out equipWash);
            return equipWash;
        }
        public class EquipWashData
        {
            public string guid;
            public EquipWashConfig washConfig;
            public int[] mustCosts;
        }
    }
}
Core/NetworkPackage/DTCFile/ServerPack/H04_Scene/DTC0406_tagNPCAppear.cs
@@ -55,6 +55,7 @@
            {
                case E_NpcType.Func:
                case E_NpcType.OpenWorldMap:
                case E_NpcType.Defend:
                    _actor = GAMgr.Instance.RequestNpcNoFight<GA_NpcFunc>(vNetData.ObjID, vNetData.NPCID, E_ActorGroup.FuncNpc, vNetData);
                    break;
                case E_NpcType.Collect:
Fight/GameActor/GA_Guard.cs
@@ -313,6 +313,7 @@
            m_Model.transform.SetParent(m_Root);
            m_Model.transform.localPosition = Vector3.zero;
            m_Model.transform.localScale = Vector3.one;
            m_Model.transform.localRotation = Quaternion.identity;
            RequestName();
@@ -505,7 +506,7 @@
                {
                    NextAction = GuardAction_Run;
                }
                GuardRun guardRun = m_Animator.GetBehaviour<GuardRun>();
                GuardRun guardRun = m_Animator.GetBehaviour<GuardRun>();
                guardRun.OnPickUpEnter();
            }
            return true;
Fight/GameActor/GActorNpcFight.cs
@@ -556,6 +556,7 @@
        m_Model.transform.SetParent(m_Root.transform);
        m_Model.transform.localPosition = Vector3.zero;
        m_Model.transform.localRotation = Quaternion.identity;
        m_Model.transform.localScale = Vector3.one;
    }
    /// <summary>
Fight/GameActor/GActorNpcNoFight.cs
@@ -213,6 +213,7 @@
            m_Model.transform.SetParent(m_Root);
            m_Model.transform.localPosition = Vector3.zero;
            m_Model.transform.localScale = Vector3.one;
            m_Model.transform.localRotation = Quaternion.identity;
            RequestName();
System/Dungeon/DungeonAssistWin.cs
New file
@@ -0,0 +1,69 @@
using System;
using UnityEngine;
using UnityEngine.UI;
namespace Snxxz.UI
{
    public class DungeonAssistWin : Window
    {
        [SerializeField] ScrollerController resultCtrl;
        [SerializeField] Text assistNumText;
        [SerializeField] Text dayScoreText;
        [SerializeField] Text dungeonScoreText;
        [SerializeField] Button closeBtn;
        [SerializeField] Button storeBtn;
        [SerializeField] Button registerBtn;
        #region Built-in
        protected override void BindController()
        {
            resultCtrl.OnRefreshCell += RefreshResultCell;
        }
        protected override void AddListeners()
        {
            closeBtn.AddListener(CloseClick);
            storeBtn.AddListener(ClickStore);
            registerBtn.AddListener(ClickAssistRegister);
        }
        protected override void OnPreOpen()
        {
        }
        protected override void OnAfterOpen()
        {
            this.transform.SetAsLastSibling();
        }
        protected override void OnPreClose()
        {
        }
        protected override void OnAfterClose()
        {
        }
        #endregion
        private void RefreshResultCell(ScrollerDataType type, CellView cell)
        {
        }
        private void ClickAssistRegister()
        {
            throw new NotImplementedException();
        }
        private void ClickStore()
        {
            throw new NotImplementedException();
        }
    }
}
System/Dungeon/DungeonAssistWin.cs.meta
New file
@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 89ce153767c4ccb40a9491efb780f620
timeCreated: 1542254377
licenseType: Pro
MonoImporter:
  serializedVersion: 2
  defaultReferences: []
  executionOrder: 0
  icon: {instanceID: 0}
  userData:
  assetBundleName:
  assetBundleVariant:
System/KnapSack/Logic/ItemTipsModel.cs
@@ -2283,7 +2283,7 @@
        /// <param name="type"></param>
        /// <param name="lv"></param>
        /// <param name="values"></param>
        private EquipWashConfig tagWashModel;
        private EquipWashConfig.EquipWashData tagWashModel;
        public void SetWashModel(int type, int lv, int[] values)
        {
            washDataDict = null;
@@ -2304,23 +2304,26 @@
            }
            washDataDict = new Dictionary<int, int>();
            this.tagWashModel = EquipWashConfig.GetCurrentWashEquipModel(type, lv);
            for (i = 0; i < values.Length; i++)
            this.tagWashModel = EquipWashConfig.GetEquipWashData(type, lv);
            if(this.tagWashModel != null)
            {
                switch (i)
                for (i = 0; i < values.Length; i++)
                {
                    case 0:
                        washDataDict.Add(tagWashModel.attType1, values[0]);
                        break;
                    case 1:
                        washDataDict.Add(tagWashModel.attType2, values[1]);
                        break;
                    case 2:
                        washDataDict.Add(tagWashModel.attType3, values[2]);
                        break;
                    switch (i)
                    {
                        case 0:
                            washDataDict.Add(tagWashModel.washConfig.attType1, values[0]);
                            break;
                        case 1:
                            washDataDict.Add(tagWashModel.washConfig.attType2, values[1]);
                            break;
                        case 2:
                            washDataDict.Add(tagWashModel.washConfig.attType3, values[2]);
                            break;
                    }
                }
            }
        }
        //设置弹框的宝石数据
System/OpenServerActivity/OperationWishingWellInfo.cs
@@ -37,9 +37,37 @@
        public int GetActivityDay()
        {
            int dayIndex = IndexOfDays(TimeUtility.ServerNow);
            if(resetType == 0)
            {
                return dayIndex + 1;
            }
            else if(resetType == 1)
            {
                if(IsLastDay)
                {
                    return dayIndex;
                }
                else
                {
                    return dayIndex + 1;
                }
            }
            return dayIndex + 1;
        }
        public int GetActivitySumDay()
        {
           if(resetType == 0)
            {
                return totalDays + 1;
            }
           else if(resetType == 1)
            {
                return totalDays;
            }
            return totalDays;
        }
        public void ParsePackage(HAA19_tagMCActWishingWellInfo package)
        {
            for (int i = 0; i < package.Count; i++)
System/OpenServerActivity/WishingPoolWin.cs
@@ -91,7 +91,7 @@
            UpdateActivityState();
            UpdateDayRemainTime();
            activityDayText.text = Language.Get("WishingPool103", operation.GetActivityDay());
            totalDayText.text = Language.Get("WishingPool101", Language.Get(StringUtility.Contact("Num_CHS_", operation.totalDays + 1)));
            totalDayText.text = Language.Get("WishingPool101", Language.Get(StringUtility.Contact("Num_CHS_", operation.GetActivitySumDay())));
            handImg.gameObject.SetActive(false);
            playTimes = 0;
            handAlpha.DOKill();
System/Strengthening/EquipWashCell.cs
@@ -23,7 +23,7 @@
    public void SetDisplayModel(WashProCount washPro, int repointId, int index, int selectIndex)
    {
        ItemModel itemModel = playerPack.GetItemModelByIndex(PackType.rptEquip, washPro.EquipPlace);
        EquipWashConfig washModel = EquipWashConfig.GetCurrentWashEquipModel(equipWashModel.OnGetWashType(washPro.EquipPlace), washPro.XLAttrLV);
        var washModel = EquipWashConfig.GetEquipWashData(equipWashModel.OnGetWashType(washPro.EquipPlace), washPro.XLAttrLV);
        washRedpoint.redpointId = repointId;
        if (itemModel != null && washModel != null)
        {
@@ -34,7 +34,7 @@
            nameText.text = UIHelper.AppendStringColor(itemModel.chinItemModel.ItemColor, itemModel.chinItemModel.ItemName, true);
            //pdr ToDo
            itemCell.Init(itemModel);
            washLevelText.text = equipWashModel.GetCurWashLvStr(washPro, washModel);
            washLevelText.text = equipWashModel.GetCurWashLvStr(washPro, washModel.washConfig);
        }
        else
        {
System/Strengthening/EquipWashModel.cs
@@ -93,6 +93,7 @@
    public override void Init()
    {
        ParseFuncConfig();
        _equipWashLimitDict.Clear();
        FuncConfigConfig washGroup1Model = Config.Instance.Get<FuncConfigConfig>("EquipWashGroup1");
        FuncConfigConfig washGroup2Model = Config.Instance.Get<FuncConfigConfig>("EquipWashGroup2");
@@ -158,6 +159,15 @@
        PlayerPrefs.DeleteKey(MasterGroup3RaiseKey);
        CheckIsMasterLv();
    }
    #region 解析本地数据
    public int mustWashMatId { get; private set;}
    private void ParseFuncConfig()
    {
        var equipWashMustID = Config.Instance.Get<FuncConfigConfig>("EquipWashMustID");
        mustWashMatId = int.Parse(equipWashMustID.Numerical1);
    }
    #endregion
    public int[] washPlacelist { get; private set; }
    public List<WashProCount> washProlist { get; private set; }
@@ -600,10 +610,12 @@
        for (i = 0; i < orderWashProlist.Count; i++)
        {
            ItemModel model = playerPack.GetItemModelByIndex(PackType.rptEquip, orderWashProlist[i].EquipPlace);
            EquipWashConfig washModel = EquipWashConfig.GetCurrentWashEquipModel(OnGetWashType(orderWashProlist[i].EquipPlace), orderWashProlist[i].XLAttrLV);
            var washModel = EquipWashConfig.GetEquipWashData(OnGetWashType(orderWashProlist[i].EquipPlace), orderWashProlist[i].XLAttrLV);
            if (model != null && washModel != null)
            {
                if (IsCanWash(model) && IsEnoughMat(washModel) && !IsWashFull(model, orderWashProlist[i], washModel)
                if (IsCanWash(model)
                    && IsEnoughMat(washModel.washConfig)
                    && !IsWashFull(model, orderWashProlist[i], washModel.washConfig)
                    && FuncOpen.Instance.IsFuncOpen(91))
                {
                    RedpointWashDict.Add(i, orderWashProlist[i]);
System/Strengthening/WashProModel.cs
@@ -76,7 +76,8 @@
        this.washPro = washPro;
        this.isPerfect = false;
        this.preViewStr = "";
        this._preTagWashModel = EquipWashConfig.GetCurrentWashEquipModel(washModel.type, washPro.XLAttrLV -1);
        var equipWashData = EquipWashConfig.GetEquipWashData(washModel.type, washPro.XLAttrLV - 1);
        this._preTagWashModel = equipWashData == null ? null : equipWashData.washConfig;
        switch (attrType)
        {
            case WashAttrType.attack:
System/Strengthening/WashTips.cs
@@ -42,20 +42,17 @@
    [SerializeField]
    UIEffect washEffect;
    [SerializeField]
    UIEffect mustWashEffect;
    [SerializeField] float offest = 50;
    #endregion
    private WashProCount _washProModel;
    private EquipWashConfig _tagWashModel;
    private EquipWashConfig.EquipWashData _tagWashModel;
    private ItemModel _itemModel; //洗练的装备
    private List<string> _costMoneylist = null;
    private int _costmoney = 0;
    public int CostMoney
    {
        get { return _costmoney; }
        set { _costmoney = value; }
    }
    private int[] _costMoneylist = null;
    private List<WashProCount> _washInfolist;
    private int curWashEquip = 0;
@@ -112,7 +109,7 @@
        _specWashOpenCondition.gameObject.SetActive(true);
        _specWashFullText.gameObject.SetActive(false);
        _equipWashCtrl.OnRefreshCell += RefreshEquipWashCell;
        EquipReinforceEventMgr.Instance.RefreshWashCostMoneyEvent = RefreshCostMoney;
        EquipReinforceEventMgr.Instance.RefreshWashCostMoneyEvent = UpdateMustWash;
        _openSpecWashPro.SetActive(false);
    }
@@ -168,8 +165,10 @@
                    ItemModel itemModel = playerPack.GetItemModelByIndex(PackType.rptEquip,washPro.EquipPlace);
                    if(itemModel != null)
                    {
                        EquipWashConfig washModel = EquipWashConfig.GetCurrentWashEquipModel(equipWashModel.OnGetWashType(washPro.EquipPlace), washPro.XLAttrLV);
                        if (equipWashModel.IsEnoughMat(washModel) && equipWashModel.IsCanWash(itemModel))
                        var washModel = EquipWashConfig.GetEquipWashData(equipWashModel.OnGetWashType(washPro.EquipPlace), washPro.XLAttrLV);
                        if (washModel!= null
                            && equipWashModel.IsEnoughMat(washModel.washConfig)
                            && equipWashModel.IsCanWash(itemModel))
                        {
                            jumpToWashId = washPro.EquipPlace;
                            isWash = true;
@@ -269,13 +268,13 @@
            }
        }
        ItemModel itemModel = playerPack.GetItemModelByIndex(PackType.rptEquip, washPro.EquipPlace);
        EquipWashConfig washModel = EquipWashConfig.GetCurrentWashEquipModel(equipWashModel.OnGetWashType(washPro.EquipPlace), washPro.XLAttrLV);
        var washModel = EquipWashConfig.GetEquipWashData(equipWashModel.OnGetWashType(washPro.EquipPlace), washPro.XLAttrLV);
        _washProModel = washPro;
        _tagWashModel = washModel;
        _costMoneylist = GetToolsList(_tagWashModel.costMoneyList, _costMoneylist);
        washAttrModel.SetUIModel(washModel, washPro, WashAttrType.attack);
        washAttrModel.SetUIModel(washModel, washPro, WashAttrType.life);
        washAttrModel.SetUIModel(washModel, washPro, WashAttrType.ignoredefence);
        _costMoneylist = _tagWashModel.mustCosts;
        washAttrModel.SetUIModel(washModel.washConfig, washPro, WashAttrType.attack);
        washAttrModel.SetUIModel(washModel.washConfig, washPro, WashAttrType.life);
        washAttrModel.SetUIModel(washModel.washConfig, washPro, WashAttrType.ignoredefence);
        _attackWashPro.RefreshUI(WashAttrType.attack);
        _lifeWashPro.RefreshUI(WashAttrType.life);
        _ignoreDefenceWashPro.RefreshUI(WashAttrType.ignoredefence);
@@ -288,14 +287,6 @@
        {
            _washLevelTitle.text = Language.Get("EquipWash108", washPro.XLAttrLV);
        }
        _costMatCell.gameObject.SetActive(true);
        ItemCellModel cellModel = new ItemCellModel(washModel.costItem);
        _costMatCell.Init(cellModel);
        _costMatCell.cellBtn.RemoveAllListeners();
        _costMatCell.cellBtn.onClick.AddListener(() =>
        {
            itemPathModel.SetChinItemModel(washModel.costItem);
        });
        #region 刷新物品UI
        if (itemModel == null)
@@ -306,7 +297,6 @@
        else
        {
            noEquipObj.SetActive(false);
            RefreshCostItem(itemModel.packType, itemModel.itemInfo.ItemPlace, itemModel.itemInfo.ItemID);
            _itemModel = itemModel;
            _washEquipCell.gameObject.SetActive(true);
            _washEquipCell.Init(itemModel);
@@ -315,10 +305,9 @@
            {
                itemTipsModel.SetItemTipsModel(PackType.rptEquip, itemModel.itemInfo.ItemGUID);
            });
            RefreshCostMoney();
        }
        UpdateMustWash();
        #endregion
        RefreshSpecWashUI();
@@ -331,17 +320,15 @@
    //刷新材料
    public void RefreshCostItem(PackType type, int index, int id)
    {
        SinglePackModel singlePack = playerPack.GetSinglePackModel(PackType.rptItem);
        if (singlePack == null)
            return;
        if (type != PackType.rptItem) return;
        UpdateMustWash();
        _costMatCell.countText.gameObject.SetActive(true);
        int bagItemCount = singlePack.GetItemCountByID(_tagWashModel.costItem);
        if (bagItemCount >= _tagWashModel.costCount)
            _costMatCell.countText.text = UIHelper.AppendStringColor(TextColType.Green, bagItemCount.ToString(),true) + "/" + _tagWashModel.costCount;
        else
            _costMatCell.countText.text = UIHelper.AppendStringColor(TextColType.Red, bagItemCount.ToString()) + "/" + _tagWashModel.costCount;
    }
    private void UpdateMustWash()
    {
        UpdateWashMat();
        UpdateMustWashCostMoney();
    }
    public void UpdateWashMat()
@@ -351,11 +338,26 @@
        contain_Default.SetActive(!isMustAdd);
        if (!isMustAdd)
        {
            UpdateItemCell(_tagWashModel.costItem,_costMatCell,_tagWashModel.costCount);
            UpdateItemCell(_tagWashModel.washConfig.costItem,_costMatCell,_tagWashModel.washConfig.costCount);
        }
        else
        {
            UpdateItemCell(_tagWashModel.costItem, contain_Cost_NormalItem, _tagWashModel.costCount);
            UpdateItemCell(_tagWashModel.washConfig.costItem, contain_Cost_NormalItem, _tagWashModel.washConfig.costCount);
            UpdateItemCell(equipWashModel.mustWashMatId, contain_Cost_MustAddItem, GetMustAddCost());
        }
    }
    private void UpdateMustWashCostMoney()
    {
        int goldCount = (int)PlayerDatas.Instance.baseData.Gold;
        int costMoney = GetCostMoney();
        if (goldCount >= costMoney)
        {
            contain_Cost_Money.text = StringUtility.Contact("<color=#109D06>", costMoney, "</color>");
        }
        else
        {
            contain_Cost_Money.text = StringUtility.Contact("<color=#ff0000>", costMoney, "</color>");
        }
    }
@@ -363,7 +365,7 @@
    {
        ItemCellModel cellModel = new ItemCellModel(itemId);
        itemCell.Init(cellModel);
        itemCell.countText.gameObject.SetActive(true);
        itemCell.countText.gameObject.SetActive(_washProModel.isPutOn);
        int haveNum = playerPack.GetItemCountByID(PackType.rptItem,itemId);
        string matNumStr = string.Empty;
        if (haveNum >= needNum)
@@ -382,6 +384,25 @@
        });
    }
    private int GetCostMoney()
    {
        int costMatId = equipWashModel.mustWashMatId;
        int costNum = GetMustAddCost();
        int haveNum = playerPack.GetItemCountByID(PackType.rptItem, costMatId);
        var storeConfig = StoreConfig.GetStoreCfg(costMatId, 1);
        int matPrice = storeConfig == null ? 0 : storeConfig.MoneyNumber;
        int costMoney = 0;
        if (haveNum < costNum)
        {
            costMoney = (costNum - haveNum) * matPrice;
        }
        return costMoney;
    }
    /// <summary>
    /// 获得勾选几条必增数量
    /// </summary>
    /// <returns></returns>
    public int GetMustAddNum()
    {
        int needAddCount = 0;
@@ -402,48 +423,19 @@
        return needAddCount;
    }
    //刷新仙玉
    public void RefreshCostMoney()
    /// <summary>
    /// 获得必增消耗的数量
    /// </summary>
    /// <returns></returns>
    public int GetMustAddCost()
    {
        int needAddCount = 0;
        if (_attackWashPro.toggleIsOn)
            needAddCount += 1;
        int mustAddNum = GetMustAddNum();
        if (_tagWashModel == null || mustAddNum < 1) return 0;
        if (_lifeWashPro.toggleIsOn)
            needAddCount += 1;
        if (_ignoreDefenceWashPro.toggleIsOn)
            needAddCount += 1;
        if (needAddCount == 0)
        {
            CostMoney = 0;
        }
        else if (needAddCount == 1)
        {
            CostMoney = int.Parse(GetCostMoneyList()[0]);
        }
        else if (needAddCount == 2)
        {
            CostMoney = int.Parse(GetCostMoneyList()[1]);
        }
        else if (needAddCount == 3)
        {
            CostMoney = int.Parse(GetCostMoneyList()[2]);
        }
        int goldCount = (int)PlayerDatas.Instance.baseData.Gold;
        if (goldCount >= CostMoney)
        {
            _costMoneyText.text = StringUtility.Contact("<color=#109D06>", CostMoney.ToString(), "</color>");
        }
        else
        {
            _costMoneyText.text = StringUtility.Contact("<color=#ff0000>", CostMoney.ToString(), "</color>");
        }
        int index = mustAddNum - 1;
        return mustAddNum > _tagWashModel.mustCosts.Length ? 0 : _tagWashModel.mustCosts[index];
    }
    //刷新特殊洗练UI
    public void RefreshSpecWashUI()
@@ -530,7 +522,7 @@
            {
                if (equipWashModel.IsSaveWashValue(_washProModel))
                {
                    if (equipWashModel.IsWashFull(_itemModel, _washProModel, _tagWashModel))
                    if (equipWashModel.IsWashFull(_itemModel, _washProModel, _tagWashModel.washConfig))
                    {
                        if(_washProModel.XLAttrLV  >= equipWashModel.GetMaxWashLv(_itemModel.chinItemModel.EquipPlace)
                            && _washProModel.XLAttrLV <= equipWashModel.GetWashFullLv(_itemModel.chinItemModel.EquipPlace, _itemModel.chinItemModel.LV))
@@ -611,54 +603,58 @@
    {
        if (_washProModel.isPutOn)
        {
            int costMoney = GetCostMoney();
            int goldCount = (int)PlayerDatas.Instance.baseData.Gold;
            if (equipWashModel.IsEnoughMat(_tagWashModel))
            int mustAddNum = GetMustAddNum();
            if (equipWashModel.IsEnoughMat(_tagWashModel.washConfig))
            {
                if (CostMoney > 0)
                if (costMoney > 0)
                {
                    if (goldCount >= CostMoney)
                    int costNum = GetMustAddCost();
                    int haveNum = playerPack.GetItemCountByID(PackType.rptItem,equipWashModel.mustWashMatId);
                    string costMat = StringUtility.Contact(haveNum,"/",costNum);
                    if (isOpenPrompting)
                    {
                        if (isOpenPrompting)
                        ConfirmCancel.ToggleConfirmCancel(Language.Get("Mail101"), Language.Get("EquipWash103",costMat,costMoney),
                        Language.Get("ConfirmCancel101"), (bool isOk, bool isToggle) =>
                        {
                            ConfirmCancel.ToggleConfirmCancel(Language.Get("Mail101"), Language.Get("EquipWash103", CostMoney),
                            Language.Get("ConfirmCancel101"), (bool isOk, bool isToggle) =>
                            if (isOk)
                            {
                                if (isOk)
                                if(IsMoneyEnough())
                                {
                                    washEffect.Play();
                                    mustWashEffect.Play();
                                    equipWashModel.SendWashQuest(_washProModel.EquipPlace, GetWashCheckUseGoldAttr());
                                }
                            }
                                isOpenPrompting = !isToggle;
                            });
                        }
                        else
                        {
                            washEffect.Play();
                            equipWashModel.SendWashQuest(_washProModel.EquipPlace, GetWashCheckUseGoldAttr());
                        }
                            isOpenPrompting = !isToggle;
                        });
                    }
                    else
                    {
                        if (VersionConfig.Get().isBanShu)
                        if(IsMoneyEnough())
                        {
                            SysNotifyMgr.Instance.ShowTip("GoldErr");
                            return;
                            mustWashEffect.Play();
                            equipWashModel.SendWashQuest(_washProModel.EquipPlace, GetWashCheckUseGoldAttr());
                        }
                        WindowCenter.Instance.Open<RechargeTipWin>();
                    }
                }
                else
                {
                    washEffect.Play();
                    if(mustAddNum > 0)
                    {
                        mustWashEffect.Play();
                    }
                    else
                    {
                        washEffect.Play();
                    }
                    equipWashModel.SendWashQuest(_washProModel.EquipPlace, GetWashCheckUseGoldAttr());
                }
            }
            else
            {
                itemPathModel.SetChinItemModel(_tagWashModel.costItem);
                itemPathModel.SetChinItemModel(_tagWashModel.washConfig.costItem);
            }
        }
        else
@@ -666,6 +662,18 @@
            SysNotifyMgr.Instance.ShowTip("Wash_NoEquip1");
        }
    }
    private bool IsMoneyEnough()
    {
        int costMoney = GetCostMoney();
        int goldCount = (int)PlayerDatas.Instance.baseData.Gold;
        if(goldCount < costMoney)
        {
            WindowCenter.Instance.Open<RechargeTipWin>();
            return false;
        }
        return true;
    }
    private int GetWashCheckUseGoldAttr()
@@ -737,14 +745,6 @@
    {
    }
    #endregion
    public List<string> GetCostMoneyList()
    {
        if (_costMoneylist != null)
            return _costMoneylist;
        else
            return null;
    }
    private List<string> GetToolsList(string tools, List<string> toolslist)
    {