From 0e3029a3dc4375c7eab8de9ccf07b5a2595c0070 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期日, 24 八月 2025 00:05:59 +0800
Subject: [PATCH] 117 【武将】武将系统 - 武将属性查看,非主线上阵武将战力提升显示

---
 Main/System/HeroUI/HeroAllAttrWin.cs |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Main/System/HeroUI/HeroAllAttrWin.cs b/Main/System/HeroUI/HeroAllAttrWin.cs
index cd582d7..a8c650a 100644
--- a/Main/System/HeroUI/HeroAllAttrWin.cs
+++ b/Main/System/HeroUI/HeroAllAttrWin.cs
@@ -107,7 +107,7 @@
         var hero = HeroManager.Instance.GetHero(item.guid);
         if (hero == null)
             return;
-
+        var dict = FightPowerManager.Instance.GetHeroTotalAttr(hero);
         foreach (var kv in attrBtns)
         {
             //姣忎釜鎸夐挳涓嬫湁涓や釜Text锛歯ame 鍜� value
@@ -117,7 +117,8 @@
             Text valueText = button.transform.Find("value").GetComponent<Text>();
 
             nameText.text = PlayerPropertyConfig.Get(id).ShowName;
-            valueText.text = PlayerPropertyConfig.GetValueDescription(id, 123);
+            var value = dict.TryGetValue(id, out long v) ? v : 0;
+            valueText.text = PlayerPropertyConfig.GetValueDescription(id, value);
         }
     }
 

--
Gitblit v1.8.0