| | |
| | |
|
| | | foreach (var achievementGroup in treasure.achievementGroups.Values)
|
| | | {
|
| | | if ((TreasureCategory)config.Category == TreasureCategory.Human)
|
| | | {
|
| | | Achievement doingAchievement;
|
| | | if (achievementModel.TryGetAchievement(achievementGroup.GetDoingAchievement(), out doingAchievement))
|
| | | {
|
| | | var successConfig = ConfigManager.Instance.GetTemplate<SuccessConfig>(doingAchievement.id);
|
| | | if (successConfig.Condition3 > 0 && PlayerDatas.Instance.baseData.LV < successConfig.Condition3)
|
| | | {
|
| | | treasure.achievementRedpoint.state = RedPointState.None;
|
| | | continue;
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | if (achievementGroup.IsAwardable())
|
| | | {
|
| | | treasure.achievementRedpoint.state = RedPointState.Simple;
|