Fix: Expand search area of MISSION_WEEKLY_RED_DOT

This commit is contained in:
LmeSzinc 2025-01-01 21:39:54 +08:00
parent 3d112b4c6c
commit b23ff47c50
6 changed files with 3 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -9,5 +9,5 @@ EXP = Button(area={'cn': (449, 31, 477, 49), 'en': (455, 51, 490, 71), 'jp': (44
MISSION_MULTI = Button(area={'cn': (1041, 8, 1101, 39), 'en': (1041, 8, 1101, 39), 'jp': (1041, 7, 1102, 36), 'tw': (1040, 6, 1102, 39)}, color={'cn': (226, 192, 142), 'en': (221, 179, 96), 'jp': (219, 178, 110), 'tw': (223, 184, 121)}, button={'cn': (1041, 8, 1101, 39), 'en': (1041, 8, 1101, 39), 'jp': (1041, 7, 1102, 36), 'tw': (1040, 6, 1102, 39)}, file={'cn': './assets/cn/reward/MISSION_MULTI.png', 'en': './assets/en/reward/MISSION_MULTI.png', 'jp': './assets/jp/reward/MISSION_MULTI.png', 'tw': './assets/tw/reward/MISSION_MULTI.png'})
MISSION_NOTICE = Button(area={'cn': (940, 670, 945, 681), 'en': (940, 670, 945, 681), 'jp': (940, 670, 945, 681), 'tw': (940, 670, 945, 681)}, color={'cn': (183, 83, 66), 'en': (183, 83, 66), 'jp': (183, 83, 66), 'tw': (183, 83, 66)}, button={'cn': (940, 670, 945, 681), 'en': (940, 670, 945, 681), 'jp': (940, 670, 945, 681), 'tw': (940, 670, 945, 681)}, file={'cn': './assets/cn/reward/MISSION_NOTICE.png', 'en': './assets/en/reward/MISSION_NOTICE.png', 'jp': './assets/jp/reward/MISSION_NOTICE.png', 'tw': './assets/tw/reward/MISSION_NOTICE.png'})
MISSION_SINGLE = Button(area={'cn': (1093, 118, 1179, 177), 'en': (1093, 118, 1179, 177), 'jp': (1102, 120, 1166, 149), 'tw': (1090, 115, 1181, 166)}, color={'cn': (115, 155, 218), 'en': (106, 147, 215), 'jp': (136, 176, 226), 'tw': (108, 149, 216)}, button={'cn': (1093, 118, 1179, 177), 'en': (1093, 118, 1179, 177), 'jp': (1102, 120, 1166, 149), 'tw': (1090, 115, 1181, 166)}, file={'cn': './assets/cn/reward/MISSION_SINGLE.png', 'en': './assets/en/reward/MISSION_SINGLE.png', 'jp': './assets/jp/reward/MISSION_SINGLE.png', 'tw': './assets/tw/reward/MISSION_SINGLE.png'})
MISSION_WEEKLY_RED_DOT = Button(area={'cn': (82, 506, 96, 525), 'en': (82, 506, 96, 525), 'jp': (82, 506, 96, 525), 'tw': (82, 506, 96, 525)}, color={'cn': (209, 107, 89), 'en': (209, 107, 89), 'jp': (209, 107, 89), 'tw': (209, 107, 89)}, button={'cn': (82, 506, 96, 525), 'en': (82, 506, 96, 525), 'jp': (82, 506, 96, 525), 'tw': (82, 506, 96, 525)}, file={'cn': './assets/cn/reward/MISSION_WEEKLY_RED_DOT.png', 'en': './assets/en/reward/MISSION_WEEKLY_RED_DOT.png', 'jp': './assets/jp/reward/MISSION_WEEKLY_RED_DOT.png', 'tw': './assets/tw/reward/MISSION_WEEKLY_RED_DOT.png'})
MISSION_WEEKLY_RED_DOT = Button(area={'cn': (25, 500, 103, 531), 'en': (25, 500, 103, 531), 'jp': (25, 500, 103, 531), 'tw': (25, 500, 103, 531)}, color={'cn': (74, 58, 62), 'en': (74, 58, 62), 'jp': (74, 58, 62), 'tw': (74, 58, 62)}, button={'cn': (25, 500, 103, 531), 'en': (25, 500, 103, 531), 'jp': (25, 500, 103, 531), 'tw': (25, 500, 103, 531)}, file={'cn': './assets/cn/reward/MISSION_WEEKLY_RED_DOT.png', 'en': './assets/cn/reward/MISSION_WEEKLY_RED_DOT.png', 'jp': './assets/cn/reward/MISSION_WEEKLY_RED_DOT.png', 'tw': './assets/cn/reward/MISSION_WEEKLY_RED_DOT.png'})
OIL = Button(area={'cn': (114, 65, 152, 78), 'en': (114, 59, 149, 79), 'jp': (114, 65, 152, 78), 'tw': (114, 65, 152, 78)}, color={'cn': (75, 77, 80), 'en': (70, 72, 72), 'jp': (75, 77, 80), 'tw': (75, 77, 80)}, button={'cn': (114, 65, 152, 78), 'en': (114, 59, 149, 79), 'jp': (114, 65, 152, 78), 'tw': (114, 65, 152, 78)}, file={'cn': './assets/cn/reward/OIL.png', 'en': './assets/en/reward/OIL.png', 'jp': './assets/jp/reward/OIL.png', 'tw': './assets/tw/reward/OIL.png'})

View File

@ -176,7 +176,8 @@ class Reward(UI):
Returns:
bool, if handled
"""
if not self.appear(MISSION_WEEKLY_RED_DOT):
if not self.image_color_count(MISSION_WEEKLY_RED_DOT, color=(206, 81, 66), threshold=221, count=20):
logger.info('No MISSION_WEEKLY_RED_DOT')
return False
self.reward_side_navbar_ensure(upper=5)