| | |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | public partial class ActHeroAppearConfig : ConfigBase<int, ActHeroAppearConfig> |
| | | { |
| | | private static List<int> actTreasureTypeList; |
| | | public static List<int> GetActTreasureTypeList() |
| | | /// <summary> |
| | | /// 武将登场的所有招募寻宝类型 |
| | | /// </summary> |
| | | private static HashSet<int> heroDebutActTreasureTypeList = new(); |
| | | public static List<int> GetHeroDebutActTreasureTypeList() |
| | | { |
| | | if (actTreasureTypeList == null) |
| | | if (heroDebutActTreasureTypeList.Count == 0) |
| | | { |
| | | actTreasureTypeList = new(); |
| | | foreach (var item in GetValues()) |
| | | { |
| | | if (!actTreasureTypeList.Contains(item.ActTreasureType)) |
| | | actTreasureTypeList.Add(item.ActTreasureType); |
| | | if (item.ActNum != 10) |
| | | continue; |
| | | heroDebutActTreasureTypeList.Add(item.ActTreasureType); |
| | | } |
| | | } |
| | | return actTreasureTypeList; |
| | | return heroDebutActTreasureTypeList.ToList(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 武将返场的所有招募寻宝类型 |
| | | /// </summary> |
| | | private static HashSet<int> heroReturnActTreasureTypeList = new(); |
| | | public static List<int> GetHeroReturnActTreasureTypeList() |
| | | { |
| | | if (heroReturnActTreasureTypeList.Count == 0) |
| | | { |
| | | foreach (var item in GetValues()) |
| | | { |
| | | if (item.ActNum != 11) |
| | | continue; |
| | | heroReturnActTreasureTypeList.Add(item.ActTreasureType); |
| | | } |
| | | } |
| | | return heroReturnActTreasureTypeList.ToList(); |
| | | } |
| | | } |