-
Notifications
You must be signed in to change notification settings - Fork 443
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
FishmanTheMurloc
wants to merge
22
commits into
babalae:feat/new_fishing
Choose a base branch
from
FishmanTheMurloc:feat/new_fishing
base: feat/new_fishing
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feat/new fishing #1060
FishmanTheMurloc
wants to merge
22
commits into
babalae:feat/new_fishing
from
FishmanTheMurloc:feat/new_fishing
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…方法增加筛选,避免画出没有高度的框框导致残留红点在画布上;去掉局部变量_currContent;钓鱼结束不再依据_noRectsCount判断
…ead;Fishpond.TargetRect补上空值处理;去掉_switchBaitContinuouslyFrameNum,目前该段代码有时候会导致发呆;钓鱼结束时多等5秒,避免“获得鱼”的提示图被错误地计入下一次抛竿找鱼的预测
…ameRate的引用以方便开新坑;开了个新坑AutoFishingTask
请帮我在这个分支上,添加UI上的新功能启动按键~ |
huiyadanli
reviewed
Jan 29, 2025
huiyadanli
reviewed
Jan 29, 2025
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; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
建议拷贝代码,毕竟还有鱼池钓鱼钓完了的逻辑判断和时间切换的功能。时间切换我貌似可以直接做一个Task出来
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a288021 封装了一下代码,让Trigger和SoloTask都共用了,一鱼三吃。。。
UI已新增 |
…段以避免在选择鱼饵界面时因图标被灰色遮罩而影响图像匹配;抛竿行为添加OnTerminate方法修复合并预抛竿和抛竿行为时产生的bug
…待机动作吃掉钓鱼F键,ChangeView方法改成始终都按S和W键
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
若干改进