mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-04-13 20:05:01 +08:00
* 分解圣遗物基础设施建设 * 分解圣遗物独立任务基本功能完成:单独的启动按钮,正则表达式逐一筛选;代码文件整理到单独的文件夹 * 自动分解5星圣遗物功能初步完成 * 修复上次修改快速分解产生的问题,主要点击分解按钮时的bug,还有与五星分解步骤衔接的问题 * 针对切换队伍时,多语言识别效果不佳的情况,将用户设定的队伍名作为正则表达式进行模糊匹配,并在LogInfo输出相关提示;传送任务对任务取消进行单独的异常处理 * 一个便于测试分解圣遗物OCR识别和正则匹配结果的弹窗
45 lines
1.2 KiB
C#
45 lines
1.2 KiB
C#
using BetterGenshinImpact.GameTask.Model;
|
|
using System.Threading;
|
|
|
|
namespace BetterGenshinImpact.GameTask.AutoDomain;
|
|
|
|
public class AutoDomainParam : BaseTaskParam
|
|
{
|
|
public int DomainRoundNum { get; set; }
|
|
|
|
public string CombatStrategyPath { get; set; }
|
|
|
|
// 刷副本使用的队伍名称
|
|
public string PartyName { get; set; } = string.Empty;
|
|
|
|
// 需要刷取的副本名称
|
|
public string DomainName { get; set; } = string.Empty;
|
|
|
|
// 结束后是否自动分解圣遗物
|
|
public bool AutoArtifactSalvage { get; set; } = false;
|
|
|
|
// 分解圣遗物的最大星级
|
|
// 1~4
|
|
public string MaxArtifactStar { get; set; } = "4";
|
|
|
|
public AutoDomainParam(int domainRoundNum, string path)
|
|
{
|
|
DomainRoundNum = domainRoundNum;
|
|
if (domainRoundNum == 0)
|
|
{
|
|
DomainRoundNum = 9999;
|
|
}
|
|
|
|
CombatStrategyPath = path;
|
|
SetDefault();
|
|
}
|
|
|
|
public void SetDefault()
|
|
{
|
|
var config = TaskContext.Instance().Config.AutoDomainConfig;
|
|
PartyName = config.PartyName;
|
|
DomainName = config.DomainName;
|
|
AutoArtifactSalvage = config.AutoArtifactSalvage;
|
|
MaxArtifactStar = TaskContext.Instance().Config.AutoArtifactSalvageConfig.MaxArtifactStar;
|
|
}
|
|
} |