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();
|
}
|
}
|