| | |
| | | |
| | | } |
| | | |
| | | public static int GetPassedLevel() |
| | | { |
| | | var keys = GetKeys(); |
| | | keys.Sort(); |
| | | var curLevel = PlayerDatas.Instance.baseData.ExAttr1 / 100; |
| | | var curLevelIndex = keys.IndexOf(curLevel); |
| | | if (curLevelIndex == -1 || curLevelIndex == 0) |
| | | { |
| | | return 0; |
| | | } |
| | | else |
| | | { |
| | | return keys[curLevelIndex - 1]; |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | } |
| | | case BattlePassType.MainLine: |
| | | { |
| | | totalValue = PlayerDatas.Instance.baseData.ExAttr1 / 100; |
| | | //通关的 找上一关值 |
| | | totalValue = MainLevelConfig.GetPassedLevel(); |
| | | break; |
| | | } |
| | | case BattlePassType.GuBao: |
| | |
| | | } |
| | | case BattlePassType.MainLine: |
| | | { |
| | | return PlayerDatas.Instance.baseData.ExAttr1 / 100; |
| | | //通关的 找上一关值 |
| | | return MainLevelConfig.GetPassedLevel(); |
| | | } |
| | | case BattlePassType.GuBao: |
| | | { |