hch
2025-09-03 11fadb0258e89d0559df46aec23493354bfe8248
0312 公式支持 取整  int(xxx)  格式
2个文件已修改
47 ■■■■ 已修改文件
Main/System/KnapSack/Logic/ItemLogicUtility.cs 46 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Main/FightPowerManager.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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()));
        //     }
        // }
Main/System/Main/FightPowerManager.cs
@@ -31,6 +31,7 @@
        fightPropertyFormula = config.Numerical2;
        fightPowerFormula = config.Numerical3;
        skillFightPowerFormula = config.Numerical4;
        JaceCalculator.Init();
    }
    #region 初始化战力计算的信息