lcn 3 hónapja
szülő
commit
d2ed708107

+ 10 - 1
Assets/Scripts/GameLogic/Equipment/EquipmentController.cs

@@ -169,6 +169,8 @@ namespace GameLogic.Equipment
             {
                 UpdateAllBestEqs();
             }
+
+            int count = 0;
             
             foreach (KeyValuePair<int,Dictionary<int,ItemInfo>> keyValuePair in allBestEqDic)
             {
@@ -176,10 +178,17 @@ namespace GameLogic.Equipment
                 Dictionary<int, ItemInfo> bwDic = keyValuePair.Value;
                 if (bwDic.Count > 0)
                 {
-                    return true;
+                    // return true;
+                    count++;
                 }
             }
 
+            //有2个以上的职业,有更好准备是再显示最外层的小红点.
+            if (count > 2)
+            {
+                return true;
+            }
+
             return false;
         }
 

+ 1 - 1
Assets/Scripts/GameUI/UI/Hero/HeroUITools.cs

@@ -219,7 +219,7 @@ namespace Fort23.Mono
             for (int i = 1; i < 10; i++)
             {
                 HeroPowerUpConfig powerUpConfig =
-                    ConfigComponent.Instance.Get<HeroPowerUpConfig>(heroInfo.promoteConfig.ID + i);
+                    ConfigComponent.Instance.Get<HeroPowerUpConfig>(heroInfo.powerUpConfig.ID + i);
                 
                 totalExp += powerUpConfig.levelUpExp;
             }

+ 7 - 7
Assets/Scripts/GameUI/UI/MainUIPanel.cs

@@ -26,7 +26,7 @@ namespace Fort23.Mono
             InitBattleHeroWidget();
             LevelUpdate(null);
 
-            CheckEquipAlterPoint(null);
+            CheckEquipRedPoint(null);
         }
 
         protected override void AddEvent()
@@ -44,8 +44,8 @@ namespace Fort23.Mono
             EventManager.Instance.AddEventListener(CustomEventType.PlayerUseSkill, PlayerUseSkill);
             EventManager.Instance.AddEventListener(CustomEventType.OnCloseHeroPanel, OnHeroPanelClose);
             
-            EventManager.Instance.AddEventListener(CustomEventType.Combat_EquipFall, CheckEquipAlterPoint);
-            EventManager.Instance.AddEventListener(CustomEventType.HeroEquip, CheckEquipAlterPoint);
+            EventManager.Instance.AddEventListener(CustomEventType.Combat_EquipFall, CheckEquipRedPoint);
+            EventManager.Instance.AddEventListener(CustomEventType.HeroEquip, CheckEquipRedPoint);
         }
 
  
@@ -63,20 +63,20 @@ namespace Fort23.Mono
             EventManager.Instance.RemoveEventListener(CustomEventType.AlterCombatHero, AlterCombatHero);
             EventManager.Instance.RemoveEventListener(CustomEventType.OnCloseHeroPanel, OnHeroPanelClose);
             
-            EventManager.Instance.RemoveEventListener(CustomEventType.Combat_EquipFall, CheckEquipAlterPoint);
-            EventManager.Instance.RemoveEventListener(CustomEventType.HeroEquip, CheckEquipAlterPoint);
+            EventManager.Instance.RemoveEventListener(CustomEventType.Combat_EquipFall, CheckEquipRedPoint);
+            EventManager.Instance.RemoveEventListener(CustomEventType.HeroEquip, CheckEquipRedPoint);
         }
         
         /// <summary>
         /// 检查装备小红点
         /// </summary>
         /// <param name="e"></param>
-        private void CheckEquipAlterPoint(IEventData e)
+        private void CheckEquipRedPoint(IEventData e)
         {
             // Combat_EquipFallEventData data = e as Combat_EquipFallEventData;
             bool betterEqs = PlayerManager.Instance.eqController.IsBetterEqs();
 
-            if (betterEqs)
+            if (betterEqs && PlayerManager.Instance.heroController.allHeroDic.Count > 1)
             {
                 alterObj1.SetActive(true);
             }