From 11fadb0258e89d0559df46aec23493354bfe8248 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期三, 03 九月 2025 10:37:40 +0800
Subject: [PATCH] 0312 公式支持 取整  int(xxx)  格式

---
 Main/System/Main/FightPowerManager.cs          |    1 +
 Main/System/KnapSack/Logic/ItemLogicUtility.cs |   46 +++++++++++++++++++++++-----------------------
 2 files changed, 24 insertions(+), 23 deletions(-)

diff --git a/Main/System/KnapSack/Logic/ItemLogicUtility.cs b/Main/System/KnapSack/Logic/ItemLogicUtility.cs
index 1d33e2b..7ede547 100644
--- a/Main/System/KnapSack/Logic/ItemLogicUtility.cs
+++ b/Main/System/KnapSack/Logic/ItemLogicUtility.cs
@@ -7,11 +7,11 @@
 
 public class ItemLogicUtility : Singleton<ItemLogicUtility>
 {
-    private string normalGSFormula;
+    // private string normalGSFormula;
 
 
-    private List<int> equipBaseProperties = new List<int>();
-    Dictionary<int, int> equipSkillScores = new Dictionary<int, int>();
+    // private List<int> equipBaseProperties = new List<int>();
+    // Dictionary<int, int> equipSkillScores = new Dictionary<int, int>();
 
     PackManager packModel { get { return PackManager.Instance; } }
     // BuffModel buffDatas { get { return ModelCenter.Instance.GetModel<BuffModel>(); } }
@@ -25,28 +25,28 @@
 
     public void Init()
     {
-        var GSFormulaConfig = FuncConfigConfig.Get("EquipGSFormula");
-        normalGSFormula = GSFormulaConfig.Numerical1;
+        // var GSFormulaConfig = FuncConfigConfig.Get("EquipGSFormula");
+        // normalGSFormula = GSFormulaConfig.Numerical1;
 
-        var equipSkillScoreJson = JsonMapper.ToObject(GSFormulaConfig.Numerical4);
-        foreach (var key in equipSkillScoreJson.Keys)
-        {
-            var skillId = 0;
-            int.TryParse(key, out skillId);
-            if (skillId != 0)
-            {
-                equipSkillScores[skillId] = (int)equipSkillScoreJson[key];
-            }
-        }
+        // var equipSkillScoreJson = JsonMapper.ToObject(GSFormulaConfig.Numerical4);
+        // foreach (var key in equipSkillScoreJson.Keys)
+        // {
+        //     var skillId = 0;
+        //     int.TryParse(key, out skillId);
+        //     if (skillId != 0)
+        //     {
+        //         equipSkillScores[skillId] = (int)equipSkillScoreJson[key];
+        //     }
+        // }
 
-        var baseAttr = JsonMapper.ToObject(GSFormulaConfig.Numerical2);
-        if (baseAttr.IsArray)
-        {
-            for (int i = 0; i < baseAttr.Count; i++)
-            {
-                equipBaseProperties.Add(int.Parse(baseAttr[i].ToString()));
-            }
-        }
+        // var baseAttr = JsonMapper.ToObject(GSFormulaConfig.Numerical2);
+        // if (baseAttr.IsArray)
+        // {
+        //     for (int i = 0; i < baseAttr.Count; i++)
+        //     {
+        //         equipBaseProperties.Add(int.Parse(baseAttr[i].ToString()));
+        //     }
+        // }
 
 
 
diff --git a/Main/System/Main/FightPowerManager.cs b/Main/System/Main/FightPowerManager.cs
index ed85d77..9554382 100644
--- a/Main/System/Main/FightPowerManager.cs
+++ b/Main/System/Main/FightPowerManager.cs
@@ -31,6 +31,7 @@
         fightPropertyFormula = config.Numerical2;
         fightPowerFormula = config.Numerical3;
         skillFightPowerFormula = config.Numerical4;
+        JaceCalculator.Init();
     }
 
     #region 鍒濆鍖栨垬鍔涜绠楃殑淇℃伅

--
Gitblit v1.8.0