| | |
| | | public float treasureBackPercent { get; private set; }
|
| | | public int treasureExitLvLimit { get; private set; }
|
| | | public int exitRecord { get; set; }
|
| | | public int entranceOpenCondition { get; private set; }
|
| | |
|
| | | public List<int> cacheGotAchievements {
|
| | | get { return m_CacheGotAchievements; }
|
| | |
| | |
|
| | | funcConfig = Config.Instance.Get<FuncConfigConfig>("TreasureNoOpen");
|
| | | treasureUnOpens.AddRange(ConfigParse.GetMultipleStr<int>(funcConfig.Numerical1));
|
| | |
|
| | | funcConfig = Config.Instance.Get<FuncConfigConfig>("OpenFabao");
|
| | | entranceOpenCondition = int.Parse(funcConfig.Numerical1);
|
| | | }
|
| | |
|
| | | const string pattern = "\\\"[0-9]+\\\":\\[[0-9|,]*\\]";
|
| | |
| | | }
|
| | | return 0;
|
| | | }
|
| | |
|
| | | public bool SatisfyEntranceOpen()
|
| | | {
|
| | | var list = GetTreasureCategory(TreasureCategory.Human);
|
| | | if (list != null && list.Count > 1)
|
| | | {
|
| | | if (treasures.ContainsKey(list[1]))
|
| | | {
|
| | | if (treasures[list[1]].state != TreasureState.Locked)
|
| | | {
|
| | | return true;
|
| | | }
|
| | | }
|
| | | }
|
| | | var taskModel = ModelCenter.Instance.GetModel<PlayerTaskDatas>();
|
| | | var missions = taskModel.MainTaskDic;
|
| | | if (missions != null)
|
| | | {
|
| | | foreach (var missionId in missions.Keys)
|
| | | {
|
| | | if (missionId > entranceOpenCondition)
|
| | | {
|
| | | return true;
|
| | | }
|
| | | else if (missionId == entranceOpenCondition)
|
| | | {
|
| | | return missions[missionId].MissionState == 3;
|
| | | }
|
| | | }
|
| | | return false;
|
| | | }
|
| | | return true;
|
| | | }
|
| | |
|
| | | public void DisplayEntranceLimitHint()
|
| | | {
|
| | | var taskConfig = Config.Instance.Get<PyTaskConfig>(entranceOpenCondition);
|
| | | if (taskConfig != null)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("OpenFabaoHint", taskConfig.lv);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | }
|