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/Main/FightPowerManager.cs | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/Main/System/Main/FightPowerManager.cs b/Main/System/Main/FightPowerManager.cs
index f1a254d..ed85d77 100644
--- a/Main/System/Main/FightPowerManager.cs
+++ b/Main/System/Main/FightPowerManager.cs
@@ -492,6 +492,36 @@
#endregion
+ public Dictionary<int, long> GetHeroTotalAttr(HeroInfo hero)
+ {
+
+ Dictionary<int, long> tmpAttrs = new Dictionary<int, long>();
+ hero.RefreshFetterAttrsWhenCalcPower(TeamType.Story); //缇佺粖灞炴�ц瀹炴椂绠�
+
+#if UNITY_EDITOR
+ propertyStrForDebug = "";
+#endif
+
+ foreach (var config in PlayerPropertyConfig.GetValues())
+ {
+ if (config.showType < 1 || config.showType > 4)
+ {
+ continue;
+ }
+ if (config.showType == 1)
+ {
+ tmpAttrs[config.ID] = (long)GetPropertyVaule(config.ID, hero, propertyFormula);
+ }
+ else
+ {
+ tmpAttrs[config.ID] = (long)GetPropertyVaule(config.ID, hero, fightPropertyFormula);
+ }
+ }
+#if UNITY_EDITOR
+ Debug.Log($"鎴樺姏锛氭灏咺D {hero.heroId} 灞炴�т俊鎭� {propertyStrForDebug}");
+#endif
+ return tmpAttrs;
+ }
}
--
Gitblit v1.8.0