hch
2026-03-31 862aeae51fdc2c8abd8753ac8d72c2ef2f07c03e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System.Collections.Generic;
using System.Linq;
public partial class ActHeroAppearConfig : ConfigBase<int, ActHeroAppearConfig>
{
    /// <summary>
    /// 武将登场的所有招募寻宝类型
    /// </summary>
    private static HashSet<int> heroDebutActTreasureTypeList = new();
    public static List<int> GetHeroDebutActTreasureTypeList()
    {
        if (heroDebutActTreasureTypeList.Count == 0)
        {
            foreach (var item in GetValues())
            {
                if (item.ActNum != 10)
                    continue;
                heroDebutActTreasureTypeList.Add(item.ActTreasureType);
            }
        }
        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();
    }
}