|
|
@@ -10,6 +10,17 @@ from module.atom.list import RuleList
|
|
|
class ActivityShikigamiAssets:
|
|
|
|
|
|
|
|
|
+ # Click Rule Assets
|
|
|
+ # description
|
|
|
+ C_CLICK1 = RuleClick(roi_front=(120,138,130,75), roi_back=(120,138,130,75), name="click1")
|
|
|
+ # description
|
|
|
+ C_CLICK2 = RuleClick(roi_front=(121,234,125,81), roi_back=(121,234,125,81), name="click2")
|
|
|
+ # description
|
|
|
+ C_CLICK3 = RuleClick(roi_front=(126,337,118,77), roi_back=(126,337,118,77), name="click3")
|
|
|
+ # description
|
|
|
+ C_CLICK4 = RuleClick(roi_front=(124,438,126,77), roi_back=(124,438,126,77), name="click4")
|
|
|
+
|
|
|
+
|
|
|
# Image Rule Assets
|
|
|
# description
|
|
|
I_N_BATTLE = RuleImage(roi_front=(131,164,86,86), roi_back=(119,50,1075,635), threshold=0.8, method="Template matching", file="./tasks/ActivityShikigami/0110/0110_n_battle.png")
|
|
|
@@ -34,11 +45,11 @@ class ActivityShikigamiAssets:
|
|
|
|
|
|
# Image Rule Assets
|
|
|
# 进入活动
|
|
|
- I_SHI = RuleImage(roi_front=(545,254,33,34), roi_back=(64,115,1110,427), threshold=0.7, method="Template matching", file="./tasks/ActivityShikigami/as/as_shi.png")
|
|
|
+ I_SHI = RuleImage(roi_front=(519,223,33,34), roi_back=(64,115,1110,427), threshold=0.7, method="Template matching", file="./tasks/ActivityShikigami/as/as_shi.png")
|
|
|
# 左上角返回
|
|
|
I_BACK_GREEN = RuleImage(roi_front=(23,27,44,44), roi_back=(23,27,44,44), threshold=0.8, method="Template matching", file="./tasks/ActivityShikigami/as/as_back_green.png")
|
|
|
# 进入爬塔
|
|
|
- I_BATTLE = RuleImage(roi_front=(1080,229,35,145), roi_back=(1028,155,138,315), threshold=0.8, method="Template matching", file="./tasks/ActivityShikigami/as/as_battle.png")
|
|
|
+ I_BATTLE = RuleImage(roi_front=(668,377,35,145), roi_back=(613,296,138,315), threshold=0.8, method="Template matching", file="./tasks/ActivityShikigami/as/as_battle.png")
|
|
|
# 归鹿之途
|
|
|
I_DRUM = RuleImage(roi_front=(885,310,29,145), roi_back=(860,244,87,232), threshold=0.8, method="Template matching", file="./tasks/ActivityShikigami/as/as_drum.png")
|
|
|
# 上锁图标
|
|
|
@@ -46,13 +57,13 @@ class ActivityShikigamiAssets:
|
|
|
# 还未上锁图片
|
|
|
I_UNLOCK = RuleImage(roi_front=(823,654,28,28), roi_back=(776,610,112,87), threshold=0.8, method="Template matching", file="./tasks/ActivityShikigami/as/as_unlock.png")
|
|
|
# 点击战斗
|
|
|
- I_FIRE = RuleImage(roi_front=(1134,579,84,78), roi_back=(1107,522,142,174), threshold=0.8, method="Template matching", file="./tasks/ActivityShikigami/as/as_fire.png")
|
|
|
+ I_FIRE = RuleImage(roi_front=(1133,566,84,78), roi_back=(1099,522,150,174), threshold=0.8, method="Template matching", file="./tasks/ActivityShikigami/as/as_fire.png")
|
|
|
# 体力按钮
|
|
|
- I_AP = RuleImage(roi_front=(1127,509,23,24), roi_back=(1092,487,103,71), threshold=0.8, method="Template matching", file="./tasks/ActivityShikigami/as/as_ap.png")
|
|
|
+ I_AP = RuleImage(roi_front=(1130,526,23,24), roi_back=(1092,497,103,71), threshold=0.8, method="Template matching", file="./tasks/ActivityShikigami/as/as_ap.png")
|
|
|
# 活动体力
|
|
|
- I_AP_ACTIVITY = RuleImage(roi_front=(1124,514,21,21), roi_back=(1090,500,84,54), threshold=0.8, method="Template matching", file="./tasks/ActivityShikigami/as/as_ap_activity.png")
|
|
|
+ I_AP_ACTIVITY = RuleImage(roi_front=(1129,529,21,21), roi_back=(1101,509,84,54), threshold=0.8, method="Template matching", file="./tasks/ActivityShikigami/as/as_ap_activity.png")
|
|
|
# 切换按键
|
|
|
- I_SWITCH = RuleImage(roi_front=(1212,514,23,23), roi_back=(1200,497,69,56), threshold=0.8, method="Template matching", file="./tasks/ActivityShikigami/as/as_switch.png")
|
|
|
+ I_SWITCH = RuleImage(roi_front=(1217,527,23,23), roi_back=(1199,507,69,56), threshold=0.8, method="Template matching", file="./tasks/ActivityShikigami/as/as_switch.png")
|
|
|
# 购买活动的体力
|
|
|
I_BUY_JADE = RuleImage(roi_front=(1004,192,38,42), roi_back=(836,619,38,42), threshold=0.8, method="Template matching", file="./tasks/ActivityShikigami/as/as_buy_jade.png")
|
|
|
# 增加到最大
|
|
|
@@ -63,9 +74,9 @@ class ActivityShikigamiAssets:
|
|
|
|
|
|
# Ocr Rule Assets
|
|
|
# 体力的数量检测
|
|
|
- O_REMAIN_AP = RuleOcr(roi=(1150,673,88,25), area=(1150,673,88,25), mode="DigitCounter", method="Default", keyword="", name="remain_ap")
|
|
|
+ O_REMAIN_AP = RuleOcr(roi=(1139,680,97,25), area=(1139,680,97,25), mode="DigitCounter", method="Default", keyword="", name="remain_ap")
|
|
|
# 活动体力的剩余检测
|
|
|
- O_REMAIN_AP_ACTIVITY = RuleOcr(roi=(909,25,95,30), area=(909,25,95,30), mode="DigitCounter", method="Default", keyword="", name="remain_ap_activity")
|
|
|
+ O_REMAIN_AP_ACTIVITY = RuleOcr(roi=(717,25,95,30), area=(717,25,95,30), mode="DigitCounter", method="Default", keyword="", name="remain_ap_activity")
|
|
|
# 还有多少次购买体力的机会
|
|
|
O_REMAIN_BUY = RuleOcr(roi=(808,531,39,42), area=(808,531,39,42), mode="DigitCounter", method="Default", keyword="", name="remain_buy")
|
|
|
|