Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/new fishing #1060

Open
wants to merge 22 commits into
base: feat/new_fishing
Choose a base branch
from

Conversation

FishmanTheMurloc
Copy link
Contributor

若干改进

…方法增加筛选,避免画出没有高度的框框导致残留红点在画布上;去掉局部变量_currContent;钓鱼结束不再依据_noRectsCount判断
…ead;Fishpond.TargetRect补上空值处理;去掉_switchBaitContinuouslyFrameNum,目前该段代码有时候会导致发呆;钓鱼结束时多等5秒,避免“获得鱼”的提示图被错误地计入下一次抛竿找鱼的预测
@FishmanTheMurloc
Copy link
Contributor Author

请帮我在这个分支上,添加UI上的新功能启动按键~

Comment on lines 38 to 56
AutoFishingTrigger trigger = new AutoFishingTrigger(); // todo 试试能不能通过复用BehaviourTree的形式来做
trigger.Init();
while (true)
{
if (this.ct is { IsCancellationRequested: true })
{
_logger.LogInformation("取消自动任务");
break;
}

var ra = TaskControl.CaptureToRectArea(forceNew: true);
trigger.OnCapture(new CaptureContent(ra.SrcBitmap, 0, 0));

if (trigger.BehaviourTree.Status == BehaviourTree.BehaviourStatus.Succeeded)
{
_logger.LogInformation("→ 钓鱼任务结束");
break;
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议拷贝代码,毕竟还有鱼池钓鱼钓完了的逻辑判断和时间切换的功能。时间切换我貌似可以直接做一个Task出来

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a288021 封装了一下代码,让Trigger和SoloTask都共用了,一鱼三吃。。。

@huiyadanli
Copy link
Member

huiyadanli commented Jan 29, 2025

UI已新增

FishmanTheMurloc and others added 16 commits January 29, 2025 15:27
…段以避免在选择鱼饵界面时因图标被灰色遮罩而影响图像匹配;抛竿行为添加OnTerminate方法修复合并预抛竿和抛竿行为时产生的bug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants