From 4752ccc41a084ab10e8caecb5169cdda52d6fe43 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期五, 07 十二月 2018 17:55:18 +0800
Subject: [PATCH] 4632 子 【1.3.0】上古战场调整 / 【前端】【1.3.100】上古战场机器人外观处理
---
System/GeneralConfig/GeneralDefine.cs | 66 +++++++++++++++++++++++++++++++++
1 files changed, 66 insertions(+), 0 deletions(-)
diff --git a/System/GeneralConfig/GeneralDefine.cs b/System/GeneralConfig/GeneralDefine.cs
index 9c0f0dc..4496075 100644
--- a/System/GeneralConfig/GeneralDefine.cs
+++ b/System/GeneralConfig/GeneralDefine.cs
@@ -161,6 +161,8 @@
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
@@ -553,6 +555,70 @@
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)
{
--
Gitblit v1.8.0