From 47a71634cc5580de72f7b4a540ceb37b2d9d6481 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 29 十二月 2025 16:31:17 +0800
Subject: [PATCH] 351 【内政】红颜系统 - 战力

---
 Main/System/Main/FightPowerManager.cs   |    5 +++--
 Main/System/BeautyMM/BeautyMMManager.cs |   21 ++++++++++++++++++++-
 2 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/Main/System/BeautyMM/BeautyMMManager.cs b/Main/System/BeautyMM/BeautyMMManager.cs
index ad943fc..58ea35b 100644
--- a/Main/System/BeautyMM/BeautyMMManager.cs
+++ b/Main/System/BeautyMM/BeautyMMManager.cs
@@ -398,7 +398,7 @@
         BeautyQualityLVConfig config;
         for (int i = 1; i <= lv; i++)
         {
-            BeautyQualityLVConfig.TryGetBeautyQualityLVConfig(mmConfig.BeautyQuality, lv, out config);
+            BeautyQualityLVConfig.TryGetBeautyQualityLVConfig(mmConfig.BeautyQuality, i, out config);
             if (config != null)
             {
                 for (int j = 0; j < config.AttrIDList.Length; j++)
@@ -472,6 +472,25 @@
 
     }
 
+    public long GetAttrValue(int attrID)
+    {
+        allMMTalentAttr.TryGetValue(attrID, out long value);
+        return value;
+    }
+
+    public int GetAttrPer(int attrID)
+    {
+        if (PlayerPropertyConfig.baseAttr2perDict.ContainsKey(attrID))
+        {
+            var pertype = PlayerPropertyConfig.baseAttr2perDict[attrID];
+            allMMTalentAttr.TryGetValue(pertype, out long value);
+            return (int)(value);
+        }
+
+        return 0;
+    }
+
+
     #region 绾㈢偣
     Redpoint redpoint = new Redpoint(MainRedDot.MainAffairsRedpoint, MainRedDot.Redpoint_BeautyMM);
     Redpoint redpointMM = new Redpoint(MainRedDot.Redpoint_BeautyMM, MainRedDot.Redpoint_BeautyMM * 10 + 1);
diff --git a/Main/System/Main/FightPowerManager.cs b/Main/System/Main/FightPowerManager.cs
index 79ef913..81c154d 100644
--- a/Main/System/Main/FightPowerManager.cs
+++ b/Main/System/Main/FightPowerManager.cs
@@ -161,6 +161,7 @@
         }
 #if UNITY_EDITOR
         FightPowerDebug("鎴樺姏锛氱瓑绾у睘鎬� " + JsonMapper.ToJson(lvAttrs));
+        FightPowerDebug("鎴樺姏锛氱孩棰滃睘鎬� " + JsonMapper.ToJson(BeautyMMManager.Instance.allMMTalentAttr));
 #endif
 
     }
@@ -316,8 +317,8 @@
         propertyVariables[HJG_PER] = PhantasmPavilionManager.Instance.GetAttrPer(attrType) / 10000.0f;
         propertyVariables[HORSE_VALUE] = HorseManager.Instance.GetAttrValue(attrType);
         propertyVariables[HORSE_PER] = HorseManager.Instance.GetAttrPer(attrType) / 10000.0f;
-        propertyVariables[BEAUTY_VALUE] = 0;
-        propertyVariables[BEAUTY_PER] = 0;
+        propertyVariables[BEAUTY_VALUE] = BeautyMMManager.Instance.GetAttrValue(attrType);
+        propertyVariables[BEAUTY_PER] = BeautyMMManager.Instance.GetAttrPer(attrType) / 10000.0f;
         propertyVariables[FATES_VALUE] = HeroFatesManager.Instance.GetAttrValue(attrType);
         propertyVariables[FATES_PER] = HeroFatesManager.Instance.GetAttrPer(attrType) / 10000.0f;
 

--
Gitblit v1.8.0