少年修仙传客户端代码仓库
client_Zxw
2018-08-29 57d86f083c93e98a87eb7a78d680c88f2e99c597
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
1个文件已修改
16 ■■■■ 已修改文件
System/Treasure/TreasurePotentialPanel.cs 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Treasure/TreasurePotentialPanel.cs
@@ -468,6 +468,7 @@
            m_SuccessRatio.text = StringUtility.Contact((levelUpConfig.rate * 0.01f).ToString("f0"), "%");
            m_RatioUp.gameObject.SetActive(model.selectedPotentialBook != 0);
            m_SuccessRatio.color = UIHelper.GetUIColor(model.selectedPotentialBook != 0 ? TextColType.DarkGreen : TextColType.LightYellow);
            m_UpgradeImage.gray = !TestPotentialLevelUp();
        }
        private void DisplayAddBookRedpoint()
@@ -565,6 +566,9 @@
                        break;
                    case 4:
                        SysNotifyMgr.Instance.ShowTip("TreasureUnsealed");
                        break;
                    case 6:
                        SysNotifyMgr.Instance.ShowTip("LevelUpZeroRate");
                        break;
                }
@@ -770,7 +774,8 @@
        private bool TestPotentialLevelUp(out int _error)
        {
            //1.人物等级要求不足;2.前置技能等级不足;3.sp不足;4.法宝未获得;5.已经最大等级
            //1.人物等级要求不足;2.前置技能等级不足;3.sp不足;4.法宝未获得;5.已经最大等级;6.概率为0
            _error = 0;
            if (m_Treasure.state != TreasureState.Collected)
            {
                _error = 4;
@@ -806,7 +811,14 @@
            if (m_Treasure.GetPotential(selectedPotential).level >= skillConfig.SkillMaxLV)
            {
                _error = 4;
                _error = 5;
                return false;
            }
            var levelUpConfig = GetPotentialLevelUpConfig();
            if (levelUpConfig.rate == 0)
            {
                _error = 6;
                return false;
            }