少年修仙传客户端代码仓库
client_Zxw
2018-08-27 5eeceabd1c4050aa62e26e47854a743731b6a719
[2614]神兽开发
1个文件已修改
30 ■■■■ 已修改文件
System/Strengthening/GodBeastAttributes.cs 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Strengthening/GodBeastAttributes.cs
@@ -92,7 +92,20 @@
        }
        private void OnClickStrengthBtn()
        {
            Dictionary<int, int> DicAb = m_GodBeastSlidingList.Absorption_Dic;
            List<int> List = new List<int>();
            foreach (var key in DicAb.Keys)
            {
                List.Add(key);
            }
            if (m_DoubleToggle.isOn)
            {
                dogz_model.SendDogzEquipStrength(m_DogZItemModel.itemInfo.ItemPlace, List,1);
            }
            else
            {
                dogz_model.SendDogzEquipStrength(m_DogZItemModel.itemInfo.ItemPlace, List, 0);
            }
        }
        private void ChooseToModify(int locationMarker)
        {
@@ -265,7 +278,7 @@
            }
            else
            {
                m_Slider.gameObject.SetActive(true);
                m_Slider.gameObject.SetActive(true);
                if (DogZExp + ToExpTotal >= DogzEquipConfig.upExpTotal)
                {
                    m_Slider.value = 1f;
@@ -279,7 +292,7 @@
                int[] AttTypeTo = ConfigParse.GetMultipleStr<int>(DogzEquipToConfig.attType);
                int[] AttValueTo = ConfigParse.GetMultipleStr<int>(DogzEquipToConfig.attValue);
                string strColor = string.Format(Language.Get("DogzGreenText"), ToExpTotal);
                m_ExpNum.text = DogZExp +strColor+ "/" + DogzEquipConfig.upExpTotal;
                m_ExpNum.text = DogZExp + strColor + "/" + DogzEquipConfig.upExpTotal;
                if (AttType.Length > 1)
                {
                    m_TextAttributes1.gameObject.SetActive(true);
@@ -290,7 +303,7 @@
                    string StrName2 = Config.Instance.Get<PlayerPropertyConfig>(AttType[1]).Name;
                    m_TextAttributes1.text = StrName1 + ":" + AttValue[0];
                    m_TextAttributes2.text = StrName2 + ":" + AttValue[1];
                    m_TextAttributesAdd1.text = "+" +( AttValueTo[0] - AttValue[0]);
                    m_TextAttributesAdd1.text = "+" + (AttValueTo[0] - AttValue[0]);
                    m_TextAttributesAdd2.text = "+" + (AttValueTo[1] - AttValue[1]);
                }
                else
@@ -304,6 +317,15 @@
                    m_TextAttributesAdd1.text = "+" + (AttValueTo[0] - AttValue[0]);
                }
            }
            if (ToExpTotal == 0)
            {
                m_StrengthenBtn.interactable = false;
            }
            else
            {
                m_StrengthenBtn.interactable = true;
            }
        }
        private int ToLv(int ToExpTotal)//获取等到达的熟练度等级