Add: GemsFarming hard mode#5598
Open
guoh064 wants to merge 18 commits into
Open
Conversation
LmeSzinc
reviewed
Apr 8, 2026
This comment was marked as off-topic.
This comment was marked as off-topic.
cfe11ce to
9dd95cb
Compare
9dd95cb to
bdd9d36
Compare
771d781 to
a52a330
Compare
Contributor
Author
|
已测试event_20260625_cn的活动ht1 |
a52a330 to
8f2a802
Compare
LmeSzinc
reviewed
Jul 1, 2026
Comment on lines
+144
to
+146
| # Disable one other enabled IME at a time | ||
| if appear_then_click('(//*[@resource-id="android:id/title" and @text!="FastInputIME"]/following-sibling::*[@resource-id="android:id/switch_widget" and @enabled="true" and @checked="true"])[1]'): | ||
| continue |
Contributor
Author
There was a problem hiding this comment.
需要的,mumu12的v5和bluestacks都会出现adb无法直接切换输入法,且fastinputime默认被禁用的问题,需要跑到设置里面去开启fastinputime和关掉其他输入法(我也不想关其他输入法但是光开fastinputime没有用)
Contributor
Author
There was a problem hiding this comment.
不用ui改设置的话感觉没有更好的办法
之前测试的时候,android.settings.INPUT_METHOD_SETTINGS是能直接到达屏幕键盘设置的(我没有Mac设备,但是我记得测了蓝叠5的Pie64,Mumu12的V4和V5,还有雷电9,都可以到达设置屏幕键盘输入法的修改界面来着;
但对于蓝叠用户,用HierarchyButton检测这个“启用屏幕键盘”也不太现实,因为总有人的系统语言环境不是简体中文(可能是千奇百怪的语言);
这个地方如果蓝叠系列有额外的设置的话可能需要后期手动提示一下?
Comment on lines
+596
to
+612
| except RequestHumanTakeover as e: | ||
| if 'Hard not satisfied' in e.args[0]: | ||
| prepared = False | ||
| if self.appear(self.fleet_backline_1_button, offset=(20, 20)): | ||
| logger.info('Backline is empty, change flagship') | ||
| self.flagship_change() | ||
| prepared = True | ||
| if self.appear(self.fleet_vanguard_1_button, offset=(20, 20)): | ||
| logger.info('Vanguard is empty, change vanguard') | ||
| self.vanguard_change() | ||
| prepared = True | ||
| if prepared: | ||
| continue | ||
| else: | ||
| raise e | ||
| else: | ||
| raise e |
Owner
There was a problem hiding this comment.
用 raise 原样抛出
不在 except 块中执行可能出现二次错误的代码
Contributor
Author
Owner
There was a problem hiding this comment.
覆写 fleet_preparation,在配对缺失的时候上人
仍然没有角色就推迟任务,寄希望其他任务出击的时候会掉落
增加 class HardNotSatisfied(RequestHumanTakeover) 来避免魔法字符串传递
d5b0202 to
f4136f3
Compare
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
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.



优化了GemsFarming类对FleetEquipment的依赖。
添加了紧急委托对困难图模式的支持(比如说EX活动的C2)