Skip to content

Commit

Permalink
fix create
Browse files Browse the repository at this point in the history
  • Loading branch information
pur1fying committed Feb 16, 2024
1 parent 8447b44 commit 204bc28
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 86 deletions.
88 changes: 5 additions & 83 deletions module/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def implement(self):
status = receive_objects_and_check_crafting_list_status(self, use_acceleration_ticket)
y_position = {
'CN': [312, 452, 594],
'Global': [312, 452, 594],
'Global': [288, 407, 534],
'JP': [288, 407, 534]
}
y_position = y_position[self.server]
Expand Down Expand Up @@ -53,84 +53,7 @@ def implement(self):


def common_create_judge(self):
pri = ["花",
"MomoFriends咖啡厅",
"果冻游戏中心",
"情人节",
"夏日",
"万圣节",
"温泉浴场",
"新年",
"色彩",
"灿烂",
"武器部件",
"铜",
"光芒",
"玲珑",
"白金",
"黄金",
"白银",
"金属",
"隐然"]
# pri = [
# "Flower",
# "Momo Friends Cafe Set",
# "Jellies Arcade Set",
# "Valentine's Set",
# "Summer Pool Party Set",
# "Jack-O-Lantern Cafe Set",
# "Hot Springs Resort Set",
# "New Year's House Set",
# "Military Campground Set",
# "Beachside Set",
# "Field Day Set",
# "Abydos Classroom Set",
# "Game Development Department Set",
# "Sunshine Resort Set",
# "Department Store Set",
# "Gehenna Party Set",
# "Colorful",
# "Radiant",
# "Platinum",
# "Weapon Parts",
# "Gold",
# "Silver",
# "Metal",
# "Copper",
# "Shiny",
# "Brilliant",
# "Subtle"
# ],
# pri = [
# "花弁",
# "モモフレンズのカフェシリーズ",
# "ゼリーズゲーセンシリーズ",
# "バレンタインシリーズ",
# "サマーリゾートシリーズ",
# "ハロウィーンカフェシリーズ",
# "伝統的な温泉郷シリーズ",
# "お正月シリーズ",
# "ミリタリーアウトドア",
# "ビーチサイドシリーズ",
# "大運動会シリーズ",
# "アビドス教室シリーズ",
# "ゲーム開発部シリーズ",
# "サンシャインリゾートシリーズ",
# "デパートシリーズ",
# "ゲヘナパーティーシリーズ",
# "色彩",
# "煌めき",
# "パーツ",
# "輝き",
# "铜",
# "金属",
# "銀",
# "金",
# "プラチナ",
# "明かり",
# "瞬き"
# ]
# pri = self.config['createPriority']
pri = self.config['createPriority']
for i in range(0, len(pri)):
pri[i] = preprocess_node_info(pri[i], self.server)
node_x = [839, 508, 416, 302, 174]
Expand Down Expand Up @@ -190,7 +113,7 @@ def to_manufacture_store(self, skip_first_screenshot=False):
def check_crafting_list_status(self):
y_position = {
'CN': [312, 452, 594],
'Global': [312, 452, 594],
'Global': [288, 407, 534],
'JP': [288, 407, 534]
}
y_position = y_position[self.server]
Expand All @@ -217,7 +140,7 @@ def receive_objects_and_check_crafting_list_status(self, use_acceleration_ticket


def collect(self, status, use_acceleration_ticket):
if self.server == 'JP':
if self.server == 'JP' or self.server == 'Global':
if "finished" in status:
self.click(1126, 617, wait_over=True, duration=1.5)
self.click(640, 100, wait_over=True, count=2)
Expand All @@ -232,7 +155,6 @@ def collect(self, status, use_acceleration_ticket):
return
y_position = {
'CN': [312, 452, 594],
'Global': [312, 452, 594],
}
y_position = y_position[self.server]
for i in range(0, 3):
Expand Down Expand Up @@ -287,7 +209,7 @@ def check_order_of_materials(self):
img_possibles = {"create_unlock-no1-grey": (1109, 106)}
img_ends = "create_sort"
picture.co_detect(self, None, None, img_ends, img_possibles, True)
if self.server == 'JP':
if self.server == 'JP' or self.server == 'Global':
self.click(138, 217, wait_over=True, duration=0.3)
self.click(299, 186, wait_over=True, duration=0.3)
else:
Expand Down
Binary file modified src/images/Global/create/basic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/images/Global/create/crafting-list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/images/Global/create/sort.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions src/images/Global/x_y_range/create.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
prefix = "create"
path = "create"
x_y_range = {
'crafting-list': (865, 168, 1073, 195),
'crafting-list': (865, 158, 1073, 185),
'unlock-no1-grey': (1000, 630, 1240, 677),
'unlock-no1-bright': (1000, 630, 1240, 677),
'select-sub-node': (403, 91, 445, 129),
'select-node': (1000, 630, 1240, 677),
'start-crafting': (1000, 630, 1240, 677),
'start-crafting-notice': (451, 296, 854, 328),
'basic': (1063, 89, 1144, 114),
'basic': (1043, 89, 1144, 114),
'point-up': (1222, 90,1246, 117),
'point-down': (1222, 90,1246, 117),
'complete-instantly': (448, 261, 790, 311),
'sort': (604, 83, 681, 116)
'sort': (504, 63, 761, 110)
}

0 comments on commit 204bc28

Please sign in to comment.