From b56a853d8b969282e7b583e201f8f77419046efb Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期四, 27 九月 2018 16:25:33 +0800
Subject: [PATCH] 2287【前端】上古战场优化

---
 System/GeneralConfig/GeneralConfig.cs |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/System/GeneralConfig/GeneralConfig.cs b/System/GeneralConfig/GeneralConfig.cs
index 8b4a74f..ffbf913 100644
--- a/System/GeneralConfig/GeneralConfig.cs
+++ b/System/GeneralConfig/GeneralConfig.cs
@@ -5,6 +5,7 @@
 using System;
 using System.Text.RegularExpressions;
 using System.Linq;
+using Snxxz.UI;
 
 public class GeneralConfig : Singleton<GeneralConfig>
 {
@@ -140,6 +141,8 @@
 
     public string teamWorldCall;
     public int teamWorldCallInviteCount;
+
+    public List<Item> ancientKingAwards = new List<Item>();
 
     public void Init()
     {
@@ -492,6 +495,21 @@
 
             teamWorldCall = GetInputString("TeamWorldCall");
             teamWorldCallInviteCount = GetInt("TeamWorldCall", 2);
+
+            var ancientKingAwradConfig = Config.Instance.Get<FuncConfigConfig>("ElderBattlefieldTopAward");
+            if (ancientKingAwradConfig != null)
+            {
+                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],
+                        bind = itemArray[k][2] == 1,
+                    });
+                }
+            }
         }
         catch (Exception ex)
         {

--
Gitblit v1.8.0