From 81debef1d511d77a84674bf9fa19b3ef65cfc5d8 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期二, 28 八月 2018 17:40:08 +0800
Subject: [PATCH] 2968 【前端】封魔坛必定掉落、几率掉落根据职业显示不同
---
System/FindPrecious/BossIntroduceBehaviour.cs | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/System/FindPrecious/BossIntroduceBehaviour.cs b/System/FindPrecious/BossIntroduceBehaviour.cs
index 07933f7..18bb249 100644
--- a/System/FindPrecious/BossIntroduceBehaviour.cs
+++ b/System/FindPrecious/BossIntroduceBehaviour.cs
@@ -7,6 +7,7 @@
using System.Collections.Generic;
using UnityEngine.UI;
using TableConfig;
+using LitJson;
namespace Snxxz.UI
{
@@ -120,16 +121,14 @@
break;
case FindPreciousType.DemonJar:
var demonJarConfig = Config.Instance.Get<DemonJarConfig>(bossId);
- switch (PlayerDatas.Instance.baseData.Job)
- {
- case 1:
- undoubtedlyRewards = demonJarConfig.MustItemIDJob1;
- break;
- case 2:
- undoubtedlyRewards = demonJarConfig.MustItemIDJob2;
- break;
- }
+ var json = JsonMapper.ToObject(demonJarConfig.MustItemID);
+ var jobJsonData = json[PlayerDatas.Instance.baseData.Job.ToString()];
+ undoubtedlyRewards = new int[jobJsonData.Count];
+ for (int i = 0; i < undoubtedlyRewards.Length; i++)
+ {
+ undoubtedlyRewards[i] = (int)jobJsonData[i];
+ }
unusualRewards = demonJarConfig.RareItemID;
break;
}
--
Gitblit v1.8.0