From e34150d62b1125e7712ccc77d4847d4786318878 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期三, 03 七月 2019 15:15:44 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 System/Skill/SkillModel.cs |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/System/Skill/SkillModel.cs b/System/Skill/SkillModel.cs
index f7d942d..400b259 100644
--- a/System/Skill/SkillModel.cs
+++ b/System/Skill/SkillModel.cs
@@ -57,7 +57,18 @@
         public int minTaskHole { get; private set; }
         public int maxTaskHole { get; private set; }
 
+        public bool skillMatchRedpointable
+        {
+            get { return LocalSave.GetBool("SkillMatchRedpointable_" + PlayerDatas.Instance.baseData.PlayerID); }
+            set
+            {
+                LocalSave.SetBool("SkillMatchRedpointable_" + PlayerDatas.Instance.baseData.PlayerID, value);
+                UpdateSkillMatchRedpoint();
+            }
+        }
+
         public readonly Redpoint redpoint = new Redpoint(103, 10301);
+        public readonly Redpoint skillMatchRedpoint = new Redpoint(10301, 1030101);
 
         void ParseConfig()
         {
@@ -632,6 +643,7 @@
             playerLoginOk = true;
             UpdateRedpoint();
             VerifyQuickSkillExistXp();
+            UpdateSkillMatchRedpoint();
             //UpdateTaskHoleRedpoint();
         }
 
@@ -746,6 +758,11 @@
             }
         }
 
+        void UpdateSkillMatchRedpoint()
+        {
+            skillMatchRedpoint.state = skillMatchRedpointable ? RedPointState.Simple : RedPointState.None;
+        }
+
         public void SetDayRemind()
         {
             DayRemind.Instance.SetDayRemind(DayRemind.PASS_SKILL_REDPOINT, true);

--
Gitblit v1.8.0