From b9723eaf4a35a6b2d2d5ae446eea37461f0d381f Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期三, 26 九月 2018 21:55:13 +0800
Subject: [PATCH] 3687 天赋功能
---
System/Skill/TalentModel.cs | 19 ++++++++++++-------
1 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/System/Skill/TalentModel.cs b/System/Skill/TalentModel.cs
index 6d9c44d..e32545a 100644
--- a/System/Skill/TalentModel.cs
+++ b/System/Skill/TalentModel.cs
@@ -83,6 +83,7 @@
public void OnPlayerLoginOk()
{
serverInited = true;
+ UpdateRedpoint();
}
public override void UnInit()
@@ -147,12 +148,9 @@
}
- var config = Config.Instance.Get<FuncConfigConfig>("");
- if (config != null)
- {
- talentResetBook = int.Parse(config.Numerical1);
- talentResetBookCost = int.Parse(config.Numerical2);
- }
+ var config = Config.Instance.Get<FuncConfigConfig>("TalentResetBook");
+ talentResetBook = int.Parse(config.Numerical1);
+ talentResetBookCost = int.Parse(config.Numerical2);
}
public int GetTalentType(int index)
@@ -257,15 +255,21 @@
return true;
}
- public void ProcessLevelUpError(int error)
+ public void ProcessLevelUpError(int talentId, int error)
{
switch (error)
{
+ case 1:
+ SysNotifyMgr.Instance.ShowTip("TalentHighestLevel");
+ break;
case 2:
+ SysNotifyMgr.Instance.ShowTip("LackTalentPoint");
break;
case 3:
+ SysNotifyMgr.Instance.ShowTip("LackTalentSeriesPoint");
break;
case 4:
+ SysNotifyMgr.Instance.ShowTip("PreTalentLevelLimit");
break;
}
}
@@ -282,6 +286,7 @@
{
talentPointUpdate();
}
+ UpdateRedpoint();
}
}
--
Gitblit v1.8.0