| | |
| | | public static int achievementEarlierStageLevel { get; private set; } |
| | | public static int DemonJarAutoTime { get; private set; } |
| | | |
| | | public static Dictionary<int, Dictionary<int, GA_NpcFightSgzcZZ.EquipRandomInfo>> SgzzRobotEquipDict { get; private set; } |
| | | |
| | | public static void Init() |
| | | { |
| | | try |
| | |
| | | PreloadSkillEffect[0] = GetIntArray("PreloadSkillEffect"); |
| | | PreloadSkillEffect[1] = GetIntArray("PreloadSkillEffect", 2); |
| | | DemonJarAutoTime = GetInt("DemonJarAutoTime"); |
| | | |
| | | if (SgzzRobotEquipDict == null) |
| | | { |
| | | SgzzRobotEquipDict = new Dictionary<int, Dictionary<int, GA_NpcFightSgzcZZ.EquipRandomInfo>>(); |
| | | |
| | | for (int job = 1; job <= 3; ++job) |
| | | { |
| | | string _jsonString = GetInputString("SGZCHelpBattleEquip", job); |
| | | |
| | | if (string.IsNullOrEmpty(_jsonString)) |
| | | { |
| | | continue; |
| | | } |
| | | |
| | | 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"]; |
| | | |
| | | 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.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.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]; |
| | | } |
| | | |
| | | _jobDict.Add(_lv, _randEquip); |
| | | } |
| | | } |
| | | SgzzRobotEquipDict.Add(job, _jobDict); |
| | | } |
| | | } |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |