From c5a1b1eb5f845f72b0b3e48fc8c7ccf75cee5831 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期二, 09 十月 2018 10:30:32 +0800
Subject: [PATCH] Merge branch 'master' into 3687天赋功能
---
System/Store/StoreModel.cs | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/System/Store/StoreModel.cs b/System/Store/StoreModel.cs
index f45e328..a6d1dbc 100644
--- a/System/Store/StoreModel.cs
+++ b/System/Store/StoreModel.cs
@@ -1059,6 +1059,7 @@
}
}
+
public void ClearPetAndMountRedpoint(StoreConfig storeConfig)
{
ItemConfig itemConfig = Config.Instance.Get<ItemConfig>(storeConfig.ItemID);
@@ -1074,7 +1075,23 @@
}
break;
}
-
+ }
+
+ public void ClearAllPetAndMountRedpoint(StoreFunc storeFunc)
+ {
+ if (storeFuncType == StoreFunc.BindStore && storeFunc != StoreFunc.BindStore)
+ {
+ foreach(var key in shopRedDict.Keys)
+ {
+ if(shopRedDict[key].state != RedPointState.None)
+ {
+ string record = StringUtility.Contact(PlayerDatas.Instance.baseData.PlayerID, "ShopId",key);
+ shopRedDict[key].state = RedPointState.None;
+ LocalSave.SetBool(record, false);
+ }
+ }
+ }
+
}
#endregion
--
Gitblit v1.8.0