yyl
2025-05-19 b118ece3db250a5a257b60713da92234d8d5a57a
Main/System/GeneralConfig/GeneralDefine.cs
@@ -320,7 +320,7 @@
                }
                else
                {
                    DebugEx.LogError("EquipArea : 装备位置重复");
                    Debug.LogError("EquipArea : 装备位置重复");
                }
            }
            var _trailBossJson = LitJson.JsonMapper.ToObject(GetInputString("MuneKadoTrialBossHead", 1));
@@ -733,11 +733,11 @@
                var itemArray = LitJson.JsonMapper.ToObject<int[][]>(ancientKingAwradConfig.Numerical1);
                for (int k = 0; k < itemArray.Length; k++)
                {
                    ancientKingAwards.Add(new Item()
                    {
                        id = itemArray[k][0],
                        count = itemArray[k][1],
                    });
                    // ancientKingAwards.Add(new Item()
                    // {
                    //     id = itemArray[k][0],
                    //     count = itemArray[k][1],
                    // });
                }
            }
@@ -776,70 +776,70 @@
            PreloadSkillEffect[1] = GetIntArray("PreloadSkillEffect", 2);
            demonJarAutoTime = GetInt("DemonJarAutoTime");
            if (SgzzRobotEquipDict == null)
            {
                SgzzRobotEquipDict = new Dictionary<int, Dictionary<int, GA_NpcFightSgzcZZ.EquipRandomInfo>>();
            // if (SgzzRobotEquipDict == null)
            // {
            //     SgzzRobotEquipDict = new Dictionary<int, Dictionary<int, GA_NpcFightSgzcZZ.EquipRandomInfo>>();
                for (int job = 1; job <= 3; ++job)
                {
                    string _jsonString = GetInputString("SGZCHelpBattleEquip", job);
            //     for (int job = 1; job <= 3; ++job)
            //     {
            //         string _jsonString = GetInputString("SGZCHelpBattleEquip", job);
                    if (string.IsNullOrEmpty(_jsonString))
                    {
                        continue;
                    }
            //         if (string.IsNullOrEmpty(_jsonString))
            //         {
            //             continue;
            //         }
                    var _jsonData = LitJson.JsonMapper.ToObject(_jsonString);
                    var _jobDict = new Dictionary<int, GA_NpcFightSgzcZZ.EquipRandomInfo>();
            //         var _jsonData = LitJson.JsonMapper.ToObject(_jsonString);
            //         var _jobDict = new Dictionary<int, GA_NpcFightSgzcZZ.EquipRandomInfo>();
                    for (i = 0; i < _jsonData.Count; ++i)
                    {
                        var _lvJson = _jsonData[i];
                        var _lv = (int)_lvJson["LV"];
                        if (!_jobDict.ContainsKey(_lv))
                        {
                            var _equips = _lvJson["Equips"];
            //         for (i = 0; i < _jsonData.Count; ++i)
            //         {
            //             var _lvJson = _jsonData[i];
            //             var _lv = (int)_lvJson["LV"];
            //             if (!_jobDict.ContainsKey(_lv))
            //             {
            //                 var _equips = _lvJson["Equips"];
                            var _randEquip = new GA_NpcFightSgzcZZ.EquipRandomInfo();
            //                 var _randEquip = new GA_NpcFightSgzcZZ.EquipRandomInfo();
                            _randEquip.randClothesItemIDs = new int[_equips[0].Count];
                            for (int j = 0; j < _equips[0].Count; ++j)
                            {
                                _randEquip.randClothesItemIDs[j] = (int)_equips[0][j];
                            }
            //                 _randEquip.randClothesItemIDs = new int[_equips[0].Count];
            //                 for (int j = 0; j < _equips[0].Count; ++j)
            //                 {
            //                     _randEquip.randClothesItemIDs[j] = (int)_equips[0][j];
            //                 }
                            _randEquip.randWeaponItemIDs = new int[_equips[1].Count];
                            for (int j = 0; j < _equips[1].Count; ++j)
                            {
                                _randEquip.randWeaponItemIDs[j] = (int)_equips[1][j];
                            }
            //                 _randEquip.randWeaponItemIDs = new int[_equips[1].Count];
            //                 for (int j = 0; j < _equips[1].Count; ++j)
            //                 {
            //                     _randEquip.randWeaponItemIDs[j] = (int)_equips[1][j];
            //                 }
                            _randEquip.randSecondaryItemIDs = new int[_equips[2].Count];
                            for (int j = 0; j < _equips[2].Count; ++j)
                            {
                                _randEquip.randSecondaryItemIDs[j] = (int)_equips[2][j];
                            }
            //                 _randEquip.randSecondaryItemIDs = new int[_equips[2].Count];
            //                 for (int j = 0; j < _equips[2].Count; ++j)
            //                 {
            //                     _randEquip.randSecondaryItemIDs[j] = (int)_equips[2][j];
            //                 }
                            _randEquip.randWingItemIDs = new int[_equips[3].Count];
                            for (int j = 0; j < _equips[3].Count; ++j)
                            {
                                _randEquip.randWingItemIDs[j] = (int)_equips[3][j];
                            }
            //                 _randEquip.randWingItemIDs = new int[_equips[3].Count];
            //                 for (int j = 0; j < _equips[3].Count; ++j)
            //                 {
            //                     _randEquip.randWingItemIDs[j] = (int)_equips[3][j];
            //                 }
                            _randEquip.godWeaponIDs = new int[_equips[4].Count];
                            for (int j = 0; j < _equips[4].Count; ++j)
                            {
                                _randEquip.godWeaponIDs[j] = (int)_equips[4][j];
                            }
            //                 _randEquip.godWeaponIDs = new int[_equips[4].Count];
            //                 for (int j = 0; j < _equips[4].Count; ++j)
            //                 {
            //                     _randEquip.godWeaponIDs[j] = (int)_equips[4][j];
            //                 }
                            _jobDict.Add(_lv, _randEquip);
                        }
                    }
            //                 _jobDict.Add(_lv, _randEquip);
            //             }
            //         }
                    SgzzRobotEquipDict.Add(job, _jobDict);
            //         SgzzRobotEquipDict.Add(job, _jobDict);
                }
            }
            //     }
            // }
            if (SgzcRealm == null)
@@ -911,15 +911,15 @@
                for (i = 0; i < _jsonData.Count; ++i)
                {
                    var _child = _jsonData[i];
                    var _lookAtData = new CameraController.LookAtData();
                    _lookAtData.position = new Vector3(MathUtility.GetFloatFromLitJson(_child[1][0]),
                                                       MathUtility.GetFloatFromLitJson(_child[1][1]),
                                                       MathUtility.GetFloatFromLitJson(_child[1][2]));
                    _lookAtData.rotX = (int)_child[2];
                    _lookAtData.rotY = (int)_child[3];
                    _lookAtData.lastTime = MathUtility.GetFloatFromLitJson(_child[4]);
                    // var _lookAtData = new CameraController.LookAtData();
                    // _lookAtData.position = new Vector3(MathUtility.GetFloatFromLitJson(_child[1][0]),
                    //                                    MathUtility.GetFloatFromLitJson(_child[1][1]),
                    //                                    MathUtility.GetFloatFromLitJson(_child[1][2]));
                    // _lookAtData.rotX = (int)_child[2];
                    // _lookAtData.rotY = (int)_child[3];
                    // _lookAtData.lastTime = MathUtility.GetFloatFromLitJson(_child[4]);
                    NpcDieSetCamera[(int)_child[0]] = _lookAtData;
                    // NpcDieSetCamera[(int)_child[0]] = _lookAtData;
                }
            }
            WorkForEnemySkills = GetIntArray("ArenaSetSkills", 1);