diff --git a/assets/cn/combat/MOVE_LEFT_UP.png b/assets/cn/combat/MOVE_LEFT_UP.png new file mode 100644 index 000000000..93a4efff5 Binary files /dev/null and b/assets/cn/combat/MOVE_LEFT_UP.png differ diff --git a/module/combat/assets.py b/module/combat/assets.py index aa4c25109..142b65e71 100644 --- a/module/combat/assets.py +++ b/module/combat/assets.py @@ -39,6 +39,7 @@ LOADING_BAR = Button(area={'cn': (33, 676, 1247, 680), 'en': (33, 676, 1247, 680 MAIN_FLEET_POWER_ZERO = Button(area={'cn': (131, 151, 232, 206), 'en': (131, 151, 232, 206), 'jp': (131, 151, 232, 206), 'tw': (131, 151, 232, 206)}, color={'cn': (63, 79, 98), 'en': (63, 79, 98), 'jp': (63, 79, 98), 'tw': (63, 79, 98)}, button={'cn': (131, 151, 232, 206), 'en': (131, 151, 232, 206), 'jp': (131, 151, 232, 206), 'tw': (131, 151, 232, 206)}, file={'cn': './assets/cn/combat/MAIN_FLEET_POWER_ZERO.png', 'en': './assets/en/combat/MAIN_FLEET_POWER_ZERO.png', 'jp': './assets/jp/combat/MAIN_FLEET_POWER_ZERO.png', 'tw': './assets/tw/combat/MAIN_FLEET_POWER_ZERO.png'}) MOVE_DOWN = Button(area={'cn': (148, 647, 155, 669), 'en': (148, 647, 155, 669), 'jp': (148, 647, 155, 669), 'tw': (148, 647, 155, 669)}, color={'cn': (21, 28, 57), 'en': (21, 28, 57), 'jp': (21, 28, 57), 'tw': (21, 28, 57)}, button={'cn': (148, 647, 155, 669), 'en': (148, 647, 155, 669), 'jp': (148, 647, 155, 669), 'tw': (148, 647, 155, 669)}, file={'cn': './assets/cn/combat/MOVE_DOWN.png', 'en': './assets/en/combat/MOVE_DOWN.png', 'jp': './assets/jp/combat/MOVE_DOWN.png', 'tw': './assets/tw/combat/MOVE_DOWN.png'}) MOVE_LEFT_DOWN = Button(area={'cn': (67, 668, 112, 707), 'en': (67, 668, 112, 707), 'jp': (67, 668, 112, 707), 'tw': (67, 668, 112, 707)}, color={'cn': (65, 80, 100), 'en': (65, 80, 100), 'jp': (65, 80, 100), 'tw': (65, 80, 100)}, button={'cn': (67, 668, 112, 707), 'en': (67, 668, 112, 707), 'jp': (67, 668, 112, 707), 'tw': (67, 668, 112, 707)}, file={'cn': './assets/cn/combat/MOVE_LEFT_DOWN.png', 'en': './assets/en/combat/MOVE_LEFT_DOWN.png', 'jp': './assets/jp/combat/MOVE_LEFT_DOWN.png', 'tw': './assets/tw/combat/MOVE_LEFT_DOWN.png'}) +MOVE_LEFT_UP = Button(area={'cn': (101, 539, 136, 574), 'en': (101, 539, 136, 574), 'jp': (101, 539, 136, 574), 'tw': (101, 539, 136, 574)}, color={'cn': (255, 255, 255), 'en': (255, 255, 255), 'jp': (255, 255, 255), 'tw': (255, 255, 255)}, button={'cn': (101, 539, 136, 574), 'en': (101, 539, 136, 574), 'jp': (101, 539, 136, 574), 'tw': (101, 539, 136, 574)}, file={'cn': './assets/cn/combat/MOVE_LEFT_UP.png', 'en': './assets/cn/combat/MOVE_LEFT_UP.png', 'jp': './assets/cn/combat/MOVE_LEFT_UP.png', 'tw': './assets/cn/combat/MOVE_LEFT_UP.png'}) NEW_SHIP = Button(area={'cn': (206, 87, 213, 93), 'en': (206, 87, 213, 93), 'jp': (206, 87, 213, 93), 'tw': (206, 87, 213, 93)}, color={'cn': (235, 171, 60), 'en': (235, 171, 60), 'jp': (235, 171, 60), 'tw': (235, 171, 60)}, button={'cn': (206, 87, 213, 93), 'en': (206, 87, 213, 93), 'jp': (206, 87, 213, 93), 'tw': (206, 87, 213, 93)}, file={'cn': './assets/cn/combat/NEW_SHIP.png', 'en': './assets/en/combat/NEW_SHIP.png', 'jp': './assets/jp/combat/NEW_SHIP.png', 'tw': './assets/tw/combat/NEW_SHIP.png'}) OPTS_INFO_D = Button(area={'cn': (602, 151, 703, 179), 'en': (565, 143, 692, 179), 'jp': (512, 154, 605, 176), 'tw': (602, 152, 702, 177)}, color={'cn': (157, 115, 123), 'en': (171, 116, 110), 'jp': (201, 187, 191), 'tw': (164, 130, 137)}, button={'cn': (583, 605, 677, 628), 'en': (590, 587, 627, 647), 'jp': (574, 596, 685, 635), 'tw': (583, 604, 676, 627)}, file={'cn': './assets/cn/combat/OPTS_INFO_D.png', 'en': './assets/en/combat/OPTS_INFO_D.png', 'jp': './assets/jp/combat/OPTS_INFO_D.png', 'tw': './assets/tw/combat/OPTS_INFO_D.png'}) QUIT_RECONFIRM = Button(area={'cn': (749, 501, 828, 540), 'en': (761, 495, 818, 523), 'jp': (746, 490, 830, 530), 'tw': (754, 491, 825, 522)}, color={'cn': (207, 140, 133), 'en': (208, 147, 141), 'jp': (203, 138, 132), 'tw': (211, 158, 152)}, button={'cn': (749, 501, 828, 540), 'en': (761, 495, 818, 523), 'jp': (746, 490, 830, 530), 'tw': (754, 491, 825, 522)}, file={'cn': './assets/cn/combat/QUIT_RECONFIRM.png', 'en': './assets/en/combat/QUIT_RECONFIRM.png', 'jp': './assets/jp/combat/QUIT_RECONFIRM.png', 'tw': './assets/tw/combat/QUIT_RECONFIRM.png'}) diff --git a/module/combat/combat_manual.py b/module/combat/combat_manual.py index 3857d9477..fb1f30191 100644 --- a/module/combat/combat_manual.py +++ b/module/combat/combat_manual.py @@ -42,6 +42,20 @@ class CombatManual(ModuleBase): self.device.long_click(MOVE_LEFT_DOWN, duration=(3.5, 5.5)) return True + def handle_combat_stand_still_upper_left(self, auto): + """ + Args: + auto (str): Combat auto mode. + + Returns: + bool: If executed + """ + if auto != 'hide_in_upper_left': + return False + + self.device.long_click(MOVE_LEFT_UP, duration=(1.5, 3.5)) + return True + def handle_combat_weapon_release(self): if self.appear_then_click(READY_AIR_RAID, interval=10): return True @@ -67,5 +81,8 @@ class CombatManual(ModuleBase): if self.handle_combat_stand_still_bottom_left(auto): self.manual_executed = True return True + if self.handle_combat_stand_still_upper_left(auto): + self.manual_executed = True + return True return False diff --git a/module/config/argument/args.json b/module/config/argument/args.json index 258890f0b..8bbb44bbb 100644 --- a/module/config/argument/args.json +++ b/module/config/argument/args.json @@ -563,7 +563,8 @@ "combat_auto", "combat_manual", "stand_still_in_the_middle", - "hide_in_bottom_left" + "hide_in_bottom_left", + "hide_in_upper_left" ] }, "Fleet1Step": { @@ -605,7 +606,8 @@ "combat_auto", "combat_manual", "stand_still_in_the_middle", - "hide_in_bottom_left" + "hide_in_bottom_left", + "hide_in_upper_left" ] }, "Fleet2Step": { @@ -940,7 +942,8 @@ "combat_auto", "combat_manual", "stand_still_in_the_middle", - "hide_in_bottom_left" + "hide_in_bottom_left", + "hide_in_upper_left" ] }, "Fleet1Step": { @@ -982,7 +985,8 @@ "combat_auto", "combat_manual", "stand_still_in_the_middle", - "hide_in_bottom_left" + "hide_in_bottom_left", + "hide_in_upper_left" ] }, "Fleet2Step": { @@ -1317,7 +1321,8 @@ "combat_auto", "combat_manual", "stand_still_in_the_middle", - "hide_in_bottom_left" + "hide_in_bottom_left", + "hide_in_upper_left" ] }, "Fleet1Step": { @@ -1359,7 +1364,8 @@ "combat_auto", "combat_manual", "stand_still_in_the_middle", - "hide_in_bottom_left" + "hide_in_bottom_left", + "hide_in_upper_left" ] }, "Fleet2Step": { @@ -1755,7 +1761,8 @@ "combat_auto", "combat_manual", "stand_still_in_the_middle", - "hide_in_bottom_left" + "hide_in_bottom_left", + "hide_in_upper_left" ] }, "Fleet1Step": { @@ -1797,7 +1804,8 @@ "combat_auto", "combat_manual", "stand_still_in_the_middle", - "hide_in_bottom_left" + "hide_in_bottom_left", + "hide_in_upper_left" ] }, "Fleet2Step": { @@ -2025,7 +2033,8 @@ "combat_auto", "combat_manual", "stand_still_in_the_middle", - "hide_in_bottom_left" + "hide_in_bottom_left", + "hide_in_upper_left" ] }, "Fleet1Step": { @@ -2067,7 +2076,8 @@ "combat_auto", "combat_manual", "stand_still_in_the_middle", - "hide_in_bottom_left" + "hide_in_bottom_left", + "hide_in_upper_left" ] }, "Fleet2Step": { @@ -2418,7 +2428,8 @@ "combat_auto", "combat_manual", "stand_still_in_the_middle", - "hide_in_bottom_left" + "hide_in_bottom_left", + "hide_in_upper_left" ] }, "Fleet1Step": { @@ -2460,7 +2471,8 @@ "combat_auto", "combat_manual", "stand_still_in_the_middle", - "hide_in_bottom_left" + "hide_in_bottom_left", + "hide_in_upper_left" ] }, "Fleet2Step": { @@ -3735,7 +3747,8 @@ "combat_auto", "combat_manual", "stand_still_in_the_middle", - "hide_in_bottom_left" + "hide_in_bottom_left", + "hide_in_upper_left" ] }, "Fleet1Step": { @@ -3777,7 +3790,8 @@ "combat_auto", "combat_manual", "stand_still_in_the_middle", - "hide_in_bottom_left" + "hide_in_bottom_left", + "hide_in_upper_left" ] }, "Fleet2Step": { @@ -4145,7 +4159,8 @@ "combat_auto", "combat_manual", "stand_still_in_the_middle", - "hide_in_bottom_left" + "hide_in_bottom_left", + "hide_in_upper_left" ] }, "Fleet1Step": { @@ -4187,7 +4202,8 @@ "combat_auto", "combat_manual", "stand_still_in_the_middle", - "hide_in_bottom_left" + "hide_in_bottom_left", + "hide_in_upper_left" ] }, "Fleet2Step": { @@ -4555,7 +4571,8 @@ "combat_auto", "combat_manual", "stand_still_in_the_middle", - "hide_in_bottom_left" + "hide_in_bottom_left", + "hide_in_upper_left" ] }, "Fleet1Step": { @@ -4597,7 +4614,8 @@ "combat_auto", "combat_manual", "stand_still_in_the_middle", - "hide_in_bottom_left" + "hide_in_bottom_left", + "hide_in_upper_left" ] }, "Fleet2Step": { @@ -4965,7 +4983,8 @@ "combat_auto", "combat_manual", "stand_still_in_the_middle", - "hide_in_bottom_left" + "hide_in_bottom_left", + "hide_in_upper_left" ] }, "Fleet1Step": { @@ -5007,7 +5026,8 @@ "combat_auto", "combat_manual", "stand_still_in_the_middle", - "hide_in_bottom_left" + "hide_in_bottom_left", + "hide_in_upper_left" ] }, "Fleet2Step": { @@ -5375,7 +5395,8 @@ "combat_auto", "combat_manual", "stand_still_in_the_middle", - "hide_in_bottom_left" + "hide_in_bottom_left", + "hide_in_upper_left" ] }, "Fleet1Step": { @@ -5417,7 +5438,8 @@ "combat_auto", "combat_manual", "stand_still_in_the_middle", - "hide_in_bottom_left" + "hide_in_bottom_left", + "hide_in_upper_left" ] }, "Fleet2Step": { @@ -5775,7 +5797,8 @@ "combat_auto", "combat_manual", "stand_still_in_the_middle", - "hide_in_bottom_left" + "hide_in_bottom_left", + "hide_in_upper_left" ] }, "Fleet1Step": { @@ -5817,7 +5840,8 @@ "combat_auto", "combat_manual", "stand_still_in_the_middle", - "hide_in_bottom_left" + "hide_in_bottom_left", + "hide_in_upper_left" ] }, "Fleet2Step": { diff --git a/module/config/argument/argument.yaml b/module/config/argument/argument.yaml index 4cc3205db..77fc24e65 100644 --- a/module/config/argument/argument.yaml +++ b/module/config/argument/argument.yaml @@ -175,7 +175,7 @@ Fleet: option: [ line_ahead, double_line, diamond ] Fleet1Mode: value: combat_auto - option: [ combat_auto, combat_manual, stand_still_in_the_middle, hide_in_bottom_left ] + option: [ combat_auto, combat_manual, stand_still_in_the_middle, hide_in_bottom_left, hide_in_upper_left ] Fleet1Step: value: 3 option: [ 2, 3, 4, 5 ] @@ -187,7 +187,7 @@ Fleet: option: [ line_ahead, double_line, diamond ] Fleet2Mode: value: combat_auto - option: [ combat_auto, combat_manual, stand_still_in_the_middle, hide_in_bottom_left ] + option: [ combat_auto, combat_manual, stand_still_in_the_middle, hide_in_bottom_left, hide_in_upper_left ] Fleet2Step: value: 2 option: [ 2, 3, 4, 5 ] diff --git a/module/config/config_generated.py b/module/config/config_generated.py index 7c057779a..e698e9877 100644 --- a/module/config/config_generated.py +++ b/module/config/config_generated.py @@ -93,11 +93,11 @@ class GeneratedConfig: # Group `Fleet` Fleet_Fleet1 = 1 # 1, 2, 3, 4, 5, 6 Fleet_Fleet1Formation = 'double_line' # line_ahead, double_line, diamond - Fleet_Fleet1Mode = 'combat_auto' # combat_auto, combat_manual, stand_still_in_the_middle, hide_in_bottom_left + Fleet_Fleet1Mode = 'combat_auto' # combat_auto, combat_manual, stand_still_in_the_middle, hide_in_bottom_left, hide_in_upper_left Fleet_Fleet1Step = 3 # 2, 3, 4, 5 Fleet_Fleet2 = 2 # 0, 1, 2, 3, 4, 5, 6 Fleet_Fleet2Formation = 'double_line' # line_ahead, double_line, diamond - Fleet_Fleet2Mode = 'combat_auto' # combat_auto, combat_manual, stand_still_in_the_middle, hide_in_bottom_left + Fleet_Fleet2Mode = 'combat_auto' # combat_auto, combat_manual, stand_still_in_the_middle, hide_in_bottom_left, hide_in_upper_left Fleet_Fleet2Step = 2 # 2, 3, 4, 5 Fleet_FleetOrder = 'fleet1_mob_fleet2_boss' # fleet1_mob_fleet2_boss, fleet1_boss_fleet2_mob, fleet1_all_fleet2_standby, fleet1_standby_fleet2_all diff --git a/module/config/i18n/en-US.json b/module/config/i18n/en-US.json index 153b3f6d9..5e03f102b 100644 --- a/module/config/i18n/en-US.json +++ b/module/config/i18n/en-US.json @@ -913,7 +913,8 @@ "combat_auto": "combat_auto", "combat_manual": "combat_manual", "stand_still_in_the_middle": "stand_still_in_the_middle", - "hide_in_bottom_left": "hide_in_bottom_left" + "hide_in_bottom_left": "hide_in_bottom_left", + "hide_in_upper_left": "hide_in_upper_left" }, "Fleet1Step": { "name": "Fleet 1 Step Number", @@ -947,7 +948,8 @@ "combat_auto": "combat_auto", "combat_manual": "combat_manual", "stand_still_in_the_middle": "stand_still_in_the_middle", - "hide_in_bottom_left": "hide_in_bottom_left" + "hide_in_bottom_left": "hide_in_bottom_left", + "hide_in_upper_left": "hide_in_upper_left" }, "Fleet2Step": { "name": "Fleet 2 Step Number", diff --git a/module/config/i18n/ja-JP.json b/module/config/i18n/ja-JP.json index 2de0d9a8b..28561d0c5 100644 --- a/module/config/i18n/ja-JP.json +++ b/module/config/i18n/ja-JP.json @@ -913,7 +913,8 @@ "combat_auto": "combat_auto", "combat_manual": "combat_manual", "stand_still_in_the_middle": "stand_still_in_the_middle", - "hide_in_bottom_left": "hide_in_bottom_left" + "hide_in_bottom_left": "hide_in_bottom_left", + "hide_in_upper_left": "hide_in_upper_left" }, "Fleet1Step": { "name": "Fleet.Fleet1Step.name", @@ -947,7 +948,8 @@ "combat_auto": "combat_auto", "combat_manual": "combat_manual", "stand_still_in_the_middle": "stand_still_in_the_middle", - "hide_in_bottom_left": "hide_in_bottom_left" + "hide_in_bottom_left": "hide_in_bottom_left", + "hide_in_upper_left": "hide_in_upper_left" }, "Fleet2Step": { "name": "Fleet.Fleet2Step.name", diff --git a/module/config/i18n/zh-CN.json b/module/config/i18n/zh-CN.json index 5af93089b..be1b22362 100644 --- a/module/config/i18n/zh-CN.json +++ b/module/config/i18n/zh-CN.json @@ -913,7 +913,8 @@ "combat_auto": "自律战斗", "combat_manual": "手操", "stand_still_in_the_middle": "中路站桩", - "hide_in_bottom_left": "躲左下角" + "hide_in_bottom_left": "躲左下角", + "hide_in_upper_left": "躲左上角" }, "Fleet1Step": { "name": "一队步长", @@ -947,7 +948,8 @@ "combat_auto": "自律战斗", "combat_manual": "手操", "stand_still_in_the_middle": "中路站桩", - "hide_in_bottom_left": "躲左下角" + "hide_in_bottom_left": "躲左下角", + "hide_in_upper_left": "躲左上角" }, "Fleet2Step": { "name": "二队步长", diff --git a/module/config/i18n/zh-TW.json b/module/config/i18n/zh-TW.json index 994f878f3..f9a984146 100644 --- a/module/config/i18n/zh-TW.json +++ b/module/config/i18n/zh-TW.json @@ -913,7 +913,8 @@ "combat_auto": "自律戰鬥", "combat_manual": "手動", "stand_still_in_the_middle": "中路站樁", - "hide_in_bottom_left": "躲左下角" + "hide_in_bottom_left": "躲左下角", + "hide_in_upper_left": "躲左上角" }, "Fleet1Step": { "name": "一隊步幅", @@ -947,7 +948,8 @@ "combat_auto": "自律戰鬥", "combat_manual": "手動", "stand_still_in_the_middle": "中路站樁", - "hide_in_bottom_left": "躲左下角" + "hide_in_bottom_left": "躲左下角", + "hide_in_upper_left": "躲左上角" }, "Fleet2Step": { "name": "二隊步幅",