-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix: 优化低心情处理与活动困难图编队流程 #5759
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
Open
wan300
wants to merge
3
commits into
LmeSzinc:dev
Choose a base branch
from
wan300:dev/emotion-control
base: dev
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
Fix: 优化低心情处理与活动困难图编队流程 #5759
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -118,7 +118,7 @@ def handle_popup_cancel(self, name='', offset=None, interval=2): | |
| return True | ||
| if self.appear(POPUP_CANCEL_WHITE, offset=offset, interval=interval): | ||
| POPUP_CANCEL_WHITE.name = POPUP_CANCEL_WHITE.name + '_' + name | ||
| self.device.click(POPUP_CONFIRM_WHITE) | ||
| self.device.click(POPUP_CANCEL_WHITE) | ||
| POPUP_CANCEL_WHITE.name = POPUP_CANCEL_WHITE.name[:-len(name) - 1] | ||
| return True | ||
| return False | ||
|
|
@@ -184,14 +184,22 @@ def handle_urgent_commission(self, drop=None): | |
|
|
||
| return appear | ||
|
|
||
| def handle_combat_low_emotion(self): | ||
| if not self.emotion.is_ignore: | ||
| def handle_combat_low_emotion(self, fleet_index=None): | ||
| if self.emotion.is_ignore: | ||
| result = self.handle_popup_confirm('IGNORE_LOW_EMOTION') | ||
| if result: | ||
| # Avoid clicking AUTO_SEARCH_MAP_OPTION_OFF | ||
| self.interval_reset(AUTO_SEARCH_MAP_OPTION_OFF) | ||
| return result | ||
|
|
||
| if not self.emotion.is_calculate: | ||
| return False | ||
|
|
||
| result = self.handle_popup_confirm('IGNORE_LOW_EMOTION') | ||
| result = self.handle_popup_cancel('LOW_EMOTION_CONTROL') | ||
| if result: | ||
| # Avoid clicking AUTO_SEARCH_MAP_OPTION_OFF | ||
| self.interval_reset(AUTO_SEARCH_MAP_OPTION_OFF) | ||
| self.emotion.delay_after_low_emotion(fleet_index=fleet_index) | ||
| return result | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. handle 系方法不应该有修改配置文件的行为 |
||
|
|
||
| def handle_use_data_key(self): | ||
|
|
||
This file contains hidden or 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
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.
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.
不是,ai写的代码自己审一下啊,弹低心情就把心情设置为最大,那计算心情的意义是什么呢
设置为0,然后让 Emotion.wait() 在图内等待,然后等到下一场战斗的心情再继续,结束关卡之后等待下一把的预期心情消耗再进图
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.
抱歉这个是我记错了,我记成心情40点以下就出现弹窗,所以max(fleet.limit - 1, 0)这设成出现弹窗就默认心情到了39点