少年修仙传客户端代码仓库
Client_PangDeRong
2018-09-04 5f67eaa6c21ff827985414b26e8d57bac4550b85
3128 物品tip合成按钮的显示配置方式修改
4个文件已修改
21 ■■■■■ 已修改文件
Core/GameEngine/Model/Config/ItemConfig.cs 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/Config/ItemConfig.cs.meta 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Compose/New/ComposeWinModel.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/Logic/ItemTipsModel.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/Config/ItemConfig.cs
@@ -1,6 +1,6 @@
//--------------------------------------------------------
//    [Author]:            第二世界
//    [  Date ]:           Friday, August 31, 2018
//    [  Date ]:           Tuesday, September 04, 2018
//--------------------------------------------------------
using UnityEngine;
@@ -21,7 +21,7 @@
        public int UseLV { get ; private set ; }
        public int CanSell { get ; private set ; }
        public int CanTrade { get ; private set ; }
        public int ComposeID { get ; private set ; }
        public int[] JumpComposeCondi;
        public int CanDrop { get ; private set ; }
        public int CanBind { get ; private set ; }
        public int CDType { get ; private set ; }
@@ -110,7 +110,12 @@
            
                CanTrade=IsNumeric(rawContents[9]) ? int.Parse(rawContents[9]):0; 
            
                ComposeID=IsNumeric(rawContents[10]) ? int.Parse(rawContents[10]):0;
                string[] JumpComposeCondiStringArray = rawContents[10].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
                JumpComposeCondi = new int[JumpComposeCondiStringArray.Length];
                for (int i=0;i<JumpComposeCondiStringArray.Length;i++)
                {
                     int.TryParse(JumpComposeCondiStringArray[i],out JumpComposeCondi[i]);
                }
            
                CanDrop=IsNumeric(rawContents[11]) ? int.Parse(rawContents[11]):0; 
            
Core/GameEngine/Model/Config/ItemConfig.cs.meta
@@ -1,6 +1,6 @@
fileFormatVersion: 2
guid: cfc9e4de91b5b6741bf06e2003e353b9
timeCreated: 1535682711
timeCreated: 1536031053
licenseType: Pro
MonoImporter:
  serializedVersion: 2
System/Compose/New/ComposeWinModel.cs
@@ -801,7 +801,9 @@
        ItemConfig itemConfig = Config.Instance.Get<ItemConfig>(itemId);
        if (itemConfig == null) return false;
        ItemCompoundConfig itemCompound = Config.Instance.Get<ItemCompoundConfig>(itemConfig.ComposeID);
        int[] composeCondi = itemConfig.JumpComposeCondi;
        if (composeCondi.Length < 3) return false;
        ItemCompoundConfig itemCompound = GetThirdTypeModellist(composeCondi[0],composeCondi[1],composeCondi[2])[0];
        if(itemCompound.levelNeed <= PlayerDatas.Instance.baseData.LV)
        {
            switch (itemCompound.firstType)
@@ -824,7 +826,7 @@
            }
            this.secondType = itemCompound.secondType;
            if(itemConfig.ComposeID == 223)
            if(itemCompound.firstType == 5 && itemCompound.secondType == 3)
            {
                this.thirdType = PlayerDatas.Instance.baseData.Job;
            }
System/KnapSack/Logic/ItemTipsModel.cs
@@ -612,7 +612,7 @@
            if (!isOverdue)
            {
                if(attrData.itemConfig.ComposeID != 0)
                if(attrData.itemConfig.JumpComposeCondi != null && attrData.itemConfig.JumpComposeCondi.Length > 0)
                {
                    attrData.SetTipsFuncBtn(ItemWinBtnType.compose, (ItemWinBtnType, ItemAttrData) => {
                        int jumpId = 0;