少年修仙传客户端代码仓库
client_Zxw
2019-03-15 0fc4acc90c88af935049e93c4b2254a44a7ed738
3335 强化
9个文件已修改
93 ■■■■■ 已修改文件
Core/NetworkPackage/DTCFile/ServerPack/HA3_Function/DTCA3B3_tagMCEquipPartPlusInfo.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Auction/TransactionRecordWin.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/EquipGem/EquipEvolutionWin.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/EquipGem/EquipStrengthFull.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/EquipGem/EquipStrengthModel.cs 57 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/EquipGem/EquipStrengthRein.cs 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/EquipGem/EquipStrengthSelectBehaviour.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/EquipGem/EquipStrengthUpper.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/EquipGem/EquipStrengthWin.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/NetworkPackage/DTCFile/ServerPack/HA3_Function/DTCA3B3_tagMCEquipPartPlusInfo.cs
@@ -16,6 +16,6 @@
        {
            return;
        }
        equipStrengthModel.GetEuipPartPlusInfo(vNetData);
        equipStrengthModel.UpdateEuipPartPlusInfo(vNetData);
    }
}
System/Auction/TransactionRecordWin.cs
@@ -112,12 +112,12 @@
            }
            ItemCell itemCell = cell.transform.Find("ItemCell1").GetComponent<ItemCell>();
            Text textName = cell.transform.Find("ItemName").GetComponent<Text>();
            Text transactionStatusText = cell.transform.Find("TransactionStatusText").GetComponent<Text>();
            RichText transactionStatusText = cell.transform.Find("TransactionStatusText").GetComponent<RichText>();
            Text timeText = cell.transform.Find("TimeText").GetComponent<Text>();
            ItemCellModel cellModel = new ItemCellModel(itemConfig.ID, true, (ulong)1);
            GameObject SuccessfulBiddingObj = cell.transform.Find("SuccessfulBiddingObj").gameObject;//竞拍成功(竞拍成功)
            Text SuccessfulBiddingText= cell.transform.Find("SuccessfulBiddingObj/SuccessfulBiddingText").GetComponent<Text>();
            RichText SuccessfulBiddingText = cell.transform.Find("SuccessfulBiddingObj/SuccessfulBiddingText").GetComponent<RichText>();
            Text JadeMoney= cell.transform.Find("SuccessfulBiddingObj/JadeMoney").GetComponent<Text>();
            GameObject AuctionFailedObj = cell.transform.Find("AuctionFailedObj").gameObject;//竞拍失败
System/EquipGem/EquipEvolutionWin.cs
@@ -123,7 +123,7 @@
            int advancedLv = 0;
            if (strengthModel.EquipStrengthDic.ContainsKey(equipIndex))//获取当前强化等级
            {
                equipLv = strengthModel.EquipStrengthDic[equipIndex].EquipPartStarLV;
                equipLv = strengthModel.EquipStrengthDic[equipIndex].StrengthLevel;
                advancedLv = strengthModel.EquipStrengthDic[equipIndex].EvolveLV;
            }
            int advancedMaxLv = 0;
@@ -149,7 +149,7 @@
            int equipIndex = EquipPlaceMapConfig.GetServerPlace(strengthModel.SelectLevel, strengthModel.SelectEquipPlace);
            if (strengthModel.EquipStrengthDic.ContainsKey(equipIndex))//获取当前强化等级
            {
                equipLv = strengthModel.EquipStrengthDic[equipIndex].EquipPartStarLV;
                equipLv = strengthModel.EquipStrengthDic[equipIndex].StrengthLevel;
                advancedLv = strengthModel.EquipStrengthDic[equipIndex].EvolveLV;
            }
            var equipPlusEvolve = strengthModel.GetEquipPlusEvolve(strengthModel.SelectEquipPlace, advancedLv + 1);
System/EquipGem/EquipStrengthFull.cs
@@ -25,10 +25,10 @@
        {
            int equipIndex = EquipPlaceMapConfig.GetServerPlace(level, equipPlace);
            int equipLv = 0;
            EquipStrengthClass equipStrength = new EquipStrengthClass();
            EquipStrength equipStrength = new EquipStrength();
            if (strengthModel.EquipStrengthDic.ContainsKey(equipIndex))//获取当前强化等级
            {
                equipLv = strengthModel.EquipStrengthDic[equipIndex].EquipPartStarLV;
                equipLv = strengthModel.EquipStrengthDic[equipIndex].StrengthLevel;
                equipStrength = strengthModel.EquipStrengthDic[equipIndex];
            }
            var itemPlus = strengthModel.GetEquipConfig(level, equipPlace);
System/EquipGem/EquipStrengthModel.cs
@@ -8,13 +8,13 @@
using Snxxz.UI;
using System;
//装备强化
public class EquipStrengthClass
public struct EquipStrength
{
    public int EquipIndex;//强化部位
    public int EquipPartStarLV;//等级
    public int Proficiency;//经验
    public int StrengthLevel;//等级
    public int Exp;//经验
    public int EvolveLV;//进化等级
    public int PackType;//强化类型
    public int Type;//强化类型
}
@@ -44,7 +44,7 @@
}
public class EquipStrengthModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
{
    public Dictionary<int, EquipStrengthClass> EquipStrengthDic = new Dictionary<int, EquipStrengthClass>();//强化数据
    public Dictionary<int, EquipStrength> EquipStrengthDic = new Dictionary<int, EquipStrength>();//强化数据
    public Dictionary<int, EquipMaxLvClass> EquipLevelMaxDic = new Dictionary<int, EquipMaxLvClass>();//强化类型的最大等级上限
    public Dictionary<int, int> PartTypeDic = new Dictionary<int, int>();//强化的部位类型
    public Dictionary<int, int> EvolutionTypeMaxDic = new Dictionary<int, int>();
@@ -115,22 +115,22 @@
    }
    public void GetEuipPartPlusInfo(HA3B3_tagMCEquipPartPlusInfo info)
    public void UpdateEuipPartPlusInfo(HA3B3_tagMCEquipPartPlusInfo info)
    {
        for (int i = 0; i < info.Count; i++)
        {
            var equipPartPlus = info.InfoList[i];
            EquipStrengthClass equipStrength = new EquipStrengthClass();
            equipStrength.PackType = equipPartPlus.PackType;
            EquipStrength equipStrength = new EquipStrength();
            equipStrength.Type = equipPartPlus.PackType;
            equipStrength.EquipIndex = equipPartPlus.EquipIndex;
            equipStrength.EquipPartStarLV = equipPartPlus.EquipPartStarLV;
            equipStrength.Proficiency = (int)equipPartPlus.Proficiency;
            equipStrength.StrengthLevel = equipPartPlus.EquipPartStarLV;
            equipStrength.Exp = (int)equipPartPlus.Proficiency;
            equipStrength.EvolveLV = equipPartPlus.EvolveLV;
            if (EquipStrengthDic.ContainsKey(equipPartPlus.EquipIndex))
            {
                var equip = EquipStrengthDic[equipPartPlus.EquipIndex];
                EquipStrengthDic[equipPartPlus.EquipIndex] = equipStrength;
                if (equip.EquipPartStarLV != equipPartPlus.EquipPartStarLV && EquipStrengthLvUpdate!=null)
                if (equip.StrengthLevel != equipPartPlus.EquipPartStarLV && EquipStrengthLvUpdate != null)
                {
                    EquipStrengthLvUpdate();
                }
@@ -161,7 +161,7 @@
    public void SendEquipPlusEvolve(int equipIndex)
    {
        CA316_tagCMEquipPlusEvolve CA316 = new CA316_tagCMEquipPlusEvolve();
        CA316.ItemIndex =(ushort)equipIndex;
        CA316.ItemIndex = (ushort)equipIndex;
        GameNetSystem.Instance.SendInfo(CA316);
    }
    private void GetEquipLevelMax()
@@ -216,7 +216,7 @@
        int equipIndex = EquipPlaceMapConfig.GetServerPlace(level, equipPlace);
        if (EquipStrengthDic.ContainsKey(equipIndex))
        {
            equiplv = EquipStrengthDic[equipIndex].EquipPartStarLV;
            equiplv = EquipStrengthDic[equipIndex].StrengthLevel;
        }
        equiplv += addlv;
        var itemPlus = ItemPlusConfig.GetTypeAndLevel(type, equiplv);
@@ -248,7 +248,7 @@
        int equipIndex = EquipPlaceMapConfig.GetServerPlace(level, equipPlace);
        if (EquipStrengthDic.ContainsKey(equipIndex))
        {
            equiplv = EquipStrengthDic[equipIndex].EquipPartStarLV;
            equiplv = EquipStrengthDic[equipIndex].StrengthLevel;
        }
        itemPlusConfig = ItemPlusConfig.GetTypeAndLevel(type, equiplv);
        return itemPlusConfig;
@@ -290,21 +290,21 @@
                            if (equipLv == 0)
                            {
                                equipPlusEvolve.AttrValue = 0.ToString();
                            }
                            }
                            break;
                        case 1:
                            equipPlusEvolve.AttrValue = (value / 100).ToString() + "%";
                            if (equipLv == 0)
                            {
                                equipPlusEvolve.AttrValue = 0.ToString() + "%";
                            }
                            }
                            break;
                        case 2:
                            equipPlusEvolve.AttrValue = value.ToString() + "%";
                            if (equipLv == 0)
                            {
                                equipPlusEvolve.AttrValue = 0.ToString() + "%";
                            }
                            }
                            break;
                    }
                }
@@ -332,6 +332,29 @@
            }
        }
    }
    public EquipStrength GetEquipStrength(int level, int equipPlace)
    {
        EquipStrength equipStrength = new EquipStrength();
        int equipIndex = EquipPlaceMapConfig.GetServerPlace(level, equipPlace);
        if (EquipStrengthDic.ContainsKey(equipIndex))
        {
            equipStrength = EquipStrengthDic[equipIndex];
        }
        return equipStrength;
    }
    public int GetStrengthLevel(int level, int equipPlace)
    {
        int lv = 0;
        int equipIndex = EquipPlaceMapConfig.GetServerPlace(level, equipPlace);
        if (EquipStrengthDic.ContainsKey(equipIndex))
        {
            lv = EquipStrengthDic[equipIndex].StrengthLevel;
        }
        return lv;
    }
}
System/EquipGem/EquipStrengthRein.cs
@@ -27,11 +27,11 @@
        public void SetEquipStrengthRein(string equipGuid,int level,int equipPlace)
        {          
            int equipIndex = EquipPlaceMapConfig.GetServerPlace(level, equipPlace);
            int equipLv = 0;
            EquipStrengthClass equipStrength=new EquipStrengthClass();
            int equipLv = 0;
            EquipStrength equipStrength = new EquipStrength();
            if (strengthModel.EquipStrengthDic.ContainsKey(equipIndex))//获取当前强化等级
            {
                equipLv = strengthModel.EquipStrengthDic[equipIndex].EquipPartStarLV;
                equipLv = strengthModel.EquipStrengthDic[equipIndex].StrengthLevel;
                equipStrength = strengthModel.EquipStrengthDic[equipIndex];
            }
            var itemPlus = strengthModel.GetEquipConfig(level, equipPlace);
@@ -92,20 +92,20 @@
                }
            }
            m_SliderText.text = equipStrength.Proficiency + "/" + itemPlus.upExpNeed;
            m_SliderText.text = equipStrength.Exp + "/" + itemPlus.upExpNeed;
            if (strengthModel.IsChangeBool)
            {
                strengthModel.IsChangeBool = false;
                m_Slider.delay = 0f;
                m_Slider.stage = equipLv;
                m_Slider.ResetStage();
                m_Slider.value = (float)Math.Round((double)equipStrength.Proficiency/ itemPlus.upExpNeed, 2, MidpointRounding.AwayFromZero);
                m_Slider.value = (float)Math.Round((double)equipStrength.Exp/ itemPlus.upExpNeed, 2, MidpointRounding.AwayFromZero);
            }
            else
            {
                m_Slider.delay = 0.2f;
                m_Slider.stage = equipLv;
                m_Slider.value = (float)Math.Round((double)equipStrength.Proficiency / itemPlus.upExpNeed, 2, MidpointRounding.AwayFromZero);
                m_Slider.value = (float)Math.Round((double)equipStrength.Exp / itemPlus.upExpNeed, 2, MidpointRounding.AwayFromZero);
            }
        }
System/EquipGem/EquipStrengthSelectBehaviour.cs
@@ -65,7 +65,7 @@
            var strengthLv = 0;
            if (strengthModel.EquipStrengthDic.ContainsKey(itemIndex))
            {
                strengthLv = strengthModel.EquipStrengthDic[itemIndex].EquipPartStarLV;
                strengthLv = strengthModel.EquipStrengthDic[itemIndex].StrengthLevel;
            }
            var item = packModel.GetItemByGuid(equipGuid);
            if (item != null)
System/EquipGem/EquipStrengthUpper.cs
@@ -24,10 +24,10 @@
        {
            int equipIndex = EquipPlaceMapConfig.GetServerPlace(level, equipPlace);
            int equipLv = 0;
            EquipStrengthClass equipStrength = new EquipStrengthClass();
            EquipStrength equipStrength = new EquipStrength();
            if (strengthModel.EquipStrengthDic.ContainsKey(equipIndex))//获取当前强化等级
            {
                equipLv = strengthModel.EquipStrengthDic[equipIndex].EquipPartStarLV;
                equipLv = strengthModel.EquipStrengthDic[equipIndex].StrengthLevel;
                equipStrength = strengthModel.EquipStrengthDic[equipIndex];
            }
            var itemPlus = strengthModel.GetEquipConfig(level, equipPlace);
System/EquipGem/EquipStrengthWin.cs
@@ -260,7 +260,7 @@
                int advancedLv = 0;
                if (strengthModel.EquipStrengthDic.ContainsKey(equipIndex))//获取当前强化等级
                {
                    equipLv = strengthModel.EquipStrengthDic[equipIndex].EquipPartStarLV;
                    equipLv = strengthModel.EquipStrengthDic[equipIndex].StrengthLevel;
                    advancedLv = strengthModel.EquipStrengthDic[equipIndex].EvolveLV;
                }
@@ -369,7 +369,7 @@
            int equipLv = 0;
            if (strengthModel.EquipStrengthDic.ContainsKey(equipIndex))//获取当前强化等级
            {
                equipLv = strengthModel.EquipStrengthDic[equipIndex].EquipPartStarLV;
                equipLv = strengthModel.EquipStrengthDic[equipIndex].StrengthLevel;
            }
            int equipType = strengthModel.GetEquipStrengthType(strengthModel.SelectEquipPlace);
            var itemPlusMaxConfig = ItemPlusMaxConfig.GetEquipTypeAndEquipStar(equipType, star);//获取强化等级上限值