From 2d3a60767d0cd69c8dec97e39937bcd0c667be1c Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期三, 12 十一月 2025 18:54:57 +0800
Subject: [PATCH] 125 战斗 血条&护盾1护盾2表现

---
 Main/System/Store/StoreModel.cs |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/Main/System/Store/StoreModel.cs b/Main/System/Store/StoreModel.cs
index 8310ac8..d0b8220 100644
--- a/Main/System/Store/StoreModel.cs
+++ b/Main/System/Store/StoreModel.cs
@@ -43,7 +43,6 @@
 
     public override void Init()
     {
-        RedpointCenter.Instance.AddParent(MainRedDot.MainGuildRedpoint, MainRedDot.Store_REDPOINT);
         FuncOpen.Instance.OnFuncStateChangeEvent += FuncStateChange;
         TimeMgr.Instance.OnDayEvent += RefreshDay;
         GuildManager.Instance.EnterOrQuitGuildEvent += EnterOrQuitGuildEvent;
@@ -281,6 +280,11 @@
         for (int i = 0; i < netPack.ShopIDList.Length; i++)
         {
             var config = StoreConfig.Get((int)netPack.ShopIDList[i]);
+            if (config == null)
+            {
+                Debug.LogError("鍓嶅悗绔晢搴楁暟鎹笉涓�鑷�");
+                continue;
+            }
             //UnlockType 2 鐢辨湇鍔$閫氱煡
             StoreData storeData = new StoreData();
             storeData.shopId = config.ID;
@@ -450,6 +454,10 @@
     {
         if (!FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.Store)) return;
 
+        if (FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.Guild) && PlayerDatas.Instance.fairyData.HasFairy)
+        {
+            RedpointCenter.Instance.AddParent(MainRedDot.MainGuildRedpoint, MainRedDot.Store_REDPOINT);
+        }
         normalRedpoint.state = RedPointState.None;
         guildRedpoint.state = RedPointState.None;
 

--
Gitblit v1.8.0