| | |
| | | }
|
| | | break;
|
| | | case TaskFeedbackType.SkyTowerFightPoint:
|
| | | {
|
| | | if (!string.IsNullOrEmpty(config.reikiRoot))
|
| | | {
|
| | | var point = 0;
|
| | | int.TryParse(config.reikiRoot, out point);
|
| | | feedback.totalPoints = point;
|
| | | }
|
| | | }
|
| | | break;
|
| | | case TaskFeedbackType.ReikiPoint:
|
| | | {
|
| | | if (!string.IsNullOrEmpty(config.reikiRoot))
|
| | |
| | | var skyTowerConfig = SkyTowerConfig.Get(config.condition);
|
| | | if (skyTowerConfig != null)
|
| | | {
|
| | | if (feedback.reikiRoots != null && PlayerDatas.Instance.baseData.FightPoint < skyTowerConfig.fightPower)
|
| | | if (feedback.totalPoints > 0 && PlayerDatas.Instance.baseData.FightPoint < skyTowerConfig.fightPower)
|
| | | {
|
| | | var job = PlayerDatas.Instance.baseData.Job;
|
| | | var reikiRoots = feedback.reikiRoots[job];
|
| | | foreach (var reikiRoot in reikiRoots)
|
| | | {
|
| | | if (reikiRootModel.GetReikiRootPoint(reikiRoot[0]) < reikiRoot[1])
|
| | | {
|
| | | condition = 1;
|
| | | }
|
| | | else
|
| | | {
|
| | | condition = 0;
|
| | | }
|
| | | break;
|
| | | }
|
| | | condition = reikiRootModel.GetReikiRootTotalPointWithFree() >= feedback.totalPoints ? 0 : 1;
|
| | | return false;
|
| | | }
|
| | | else
|
| | |
| | | public List<Item> items;
|
| | | public Dictionary<int, List<int[]>> reikiRoots;
|
| | | public List<int[]> failFuns;
|
| | | public int totalPoints;
|
| | |
|
| | | public int IndexOfSideTasks(int taskId)
|
| | | {
|